prog.c:1:1: error: unknown type name ‘Jantar’
Jantar dos Filósofos – Implentação em C
^~~~~~
prog.c:1:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Fil’
Jantar dos Filósofos – Implentação em C
^~~
prog.c:1:15: error: stray ‘\303’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:16: error: stray ‘\263’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:12: error: unknown type name ‘Fil’
Jantar dos Filósofos – Implentação em C
^~~
prog.c:1:23: error: stray ‘\342’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:24: error: stray ‘\200’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:25: error: stray ‘\223’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:35: error: stray ‘\303’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:36: error: stray ‘\247’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:37: error: stray ‘\303’ in program
Jantar dos Filósofos – Implentação em C
^
prog.c:1:38: error: stray ‘\243’ in program
Jantar dos Filósofos – Implentação em C
^
In file included from /usr/include/stdio.h:74:0,
from prog.c:3:
/usr/include/libio.h:302:3: error: unknown type name ‘size_t’
size_t __pad5;
^~~~~~
/usr/include/libio.h:305:67: error: ‘size_t’ undeclared here (not in a function)
char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
^~~~~~
/usr/include/libio.h:333:62: error: expected declaration specifiers or ‘...’ before ‘size_t’
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
^~~~~~
/usr/include/libio.h:342:6: error: expected declaration specifiers or ‘...’ before ‘size_t’
size_t __n);
^~~~~~
/usr/include/libio.h:464:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
extern _IO_size_t _IO_sgetn (_IO_FILE *, void *, _IO_size_t);
^~~~~~~~~
In file included from prog.c:3:0:
/usr/include/stdio.h:339:20: error: expected declaration specifiers or ‘...’ before ‘size_t’
int __modes, size_t __n) __THROW;
^~~~~~
/usr/include/stdio.h:388:44: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern int snprintf (char *__restrict __s, size_t __maxlen,
^~~~~~
/usr/include/stdio.h:392:45: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
^~~~~~
/usr/include/stdio.h:711:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
extern size_t fread (void *__restrict __ptr, size_t __size,
^~~~~
/usr/include/stdio.h:717:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
extern size_t fwrite (const void *__restrict __ptr, size_t __size,
^~~~~~
In file included from prog.c:4:0:
/usr/include/stdlib.h:100:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’
extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:427:22: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^~~~~~
/usr/include/stdlib.h:429:22: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void *calloc (size_t __nmemb, size_t __size)
^~~~~~
/usr/include/stdlib.h:429:38: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void *calloc (size_t __nmemb, size_t __size)
^~~~~~
/usr/include/stdlib.h:441:36: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void *realloc (void *__ptr, size_t __size)
^~~~~~
/usr/include/stdlib.h:470:29: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void *aligned_alloc (size_t __alignment, size_t __size)
^~~~~~
/usr/include/stdlib.h:470:49: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void *aligned_alloc (size_t __alignment, size_t __size)
^~~~~~
/usr/include/stdlib.h:716:9: error: expected declaration specifiers or ‘...’ before ‘size_t’
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^~~~~~
/usr/include/stdlib.h:716:25: error: expected declaration specifiers or ‘...’ before ‘size_t’
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^~~~~~
In file included from /usr/include/stdlib.h:720:0,
from prog.c:4:
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:20:49: error: expected declaration specifiers or ‘...’ before ‘size_t’
bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:20:65: error: expected declaration specifiers or ‘...’ before ‘size_t’
bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
^~~~~~
In file included from prog.c:4:0:
/usr/include/stdlib.h:725:34: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~~
/usr/include/stdlib.h:725:50: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~~
/usr/include/stdlib.h:823:36: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern int mblen (const char *__s, size_t __n) __THROW;
^~~~~~
/usr/include/stdlib.h:827:34: error: expected declaration specifiers or ‘...’ before ‘size_t’
const char *__restrict __s, size_t __n) __THROW;
^~~~~~
/usr/include/stdlib.h:834:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’
extern size_t mbstowcs (wchar_t *__restrict __pwcs,
^~~~~~~~
/usr/include/stdlib.h:837:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’
extern size_t wcstombs (char *__restrict __s,
^~~~~~~~
In file included from /usr/include/sched.h:34:0,
from /usr/include/pthread.h:23,
from prog.c:6:
/usr/include/time.h:205:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strftime’
extern size_t strftime (char *__restrict __s, size_t __maxsize,
^~~~~~~~
In file included from /usr/include/sched.h:43:0,
from /usr/include/pthread.h:23,
from prog.c:6:
/usr/include/x86_64-linux-gnu/bits/sched.h:204:30: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
^~~~~~
/usr/include/x86_64-linux-gnu/bits/sched.h:206:37: error: expected declaration specifiers or ‘...’ before ‘size_t’
extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur;
^~~~~~
In file included from prog.c:6:0:
/usr/include/pthread.h:306:11: error: expected declaration specifiers or ‘...’ before ‘size_t’
size_t *__guardsize)
^~~~~~
/usr/include/pthread.h:311:11: error: expected declaration specifiers or ‘...’ before ‘size_t’
size_t __guardsize)
^~~~~~
/usr/include/pthread.h:369:19: error: expected declaration specifiers or ‘...’ before ‘size_t’
__attr, size_t *__restrict __stacksize)
^~~~~~
/usr/include/pthread.h:376:11: error: expected declaration specifiers or ‘...’ before ‘size_t’
size_t __stacksize)
^~~~~~
prog.c: In function ‘filosofo’:
prog.c:30:7: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration]
sleep(1);
^~~~~