prog.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
include<stdio.h>
^
In file included from prog.c:2:0:
/usr/include/stdlib.h:100:8: error: unknown type name 'size_t'
extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
^~~~~~
/usr/include/stdlib.h:427:22: error: unknown type name 'size_t'
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^~~~~~
/usr/include/stdlib.h:429:22: error: unknown type name 'size_t'
extern void *calloc (size_t __nmemb, size_t __size)
^~~~~~
/usr/include/stdlib.h:429:38: error: unknown type name 'size_t'
extern void *calloc (size_t __nmemb, size_t __size)
^~~~~~
/usr/include/stdlib.h:441:36: error: unknown type name 'size_t'
extern void *realloc (void *__ptr, size_t __size)
^~~~~~
/usr/include/stdlib.h:716:9: error: unknown type name 'size_t'
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^~~~~~
/usr/include/stdlib.h:716:25: error: unknown type name 'size_t'
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^~~~~~
/usr/include/stdlib.h:725:34: error: unknown type name 'size_t'
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~~
/usr/include/stdlib.h:725:50: error: unknown type name 'size_t'
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~~
/usr/include/stdlib.h:823:36: error: unknown type name 'size_t'
extern int mblen (const char *__s, size_t __n) __THROW;
^~~~~~
/usr/include/stdlib.h:827:34: error: unknown type name 'size_t'
const char *__restrict __s, size_t __n) __THROW;
^~~~~~
/usr/include/stdlib.h:834:8: error: unknown type name 'size_t'
extern size_t mbstowcs (wchar_t *__restrict __pwcs,
^~~~~~
/usr/include/stdlib.h:835:32: error: unknown type name 'size_t'
const char *__restrict __s, size_t __n) __THROW;
^~~~~~
/usr/include/stdlib.h:837:8: error: unknown type name 'size_t'
extern size_t wcstombs (char *__restrict __s,
^~~~~~
/usr/include/stdlib.h:838:38: error: unknown type name 'size_t'
const wchar_t *__restrict __pwcs, size_t __n)
^~~~~~
prog.c: In function 'main':
prog.c:7:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d",&n);
^~~~~
prog.c:7:2: warning: incompatible implicit declaration of built-in function 'scanf'
prog.c:7:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
prog.c:10:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("Happy_New_Year2018!!");
^~~~~~
prog.c:10:3: warning: incompatible implicit declaration of built-in function 'printf'
prog.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
prog.c:12:3: warning: incompatible implicit declaration of built-in function 'printf'
printf("%d",n);
^~~~~~
prog.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Show more...