记录详情

Compile Error

/in/foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 include<stdio.h>
        ^
In file included from /in/foo.c:2:0:
/usr/include/string.h:43:8: error: unknown type name 'size_t'; did you mean '__size_t'?
        size_t __n) __THROW __nonnull ((1, 2));
        ^~~~~~
        __size_t
/usr/include/string.h:46:56: error: unknown type name 'size_t'; did you mean '__size_t'?
 extern void *memmove (void *__dest, const void *__src, size_t __n)
                                                        ^~~~~~
                                                        __size_t
/usr/include/string.h:62:42: error: unknown type name 'size_t'; did you mean '__size_t'?
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
                                          ^~~~~~
                                          __size_t
/usr/include/string.h:65:56: error: unknown type name 'size_t'; did you mean '__size_t'?
 extern int memcmp (const void *__s1, const void *__s2, size_t __n)
                                                        ^~~~~~
                                                        __size_t
/usr/include/string.h:92:48: error: unknown type name 'size_t'; did you mean '__size_t'?
 extern void *memchr (const void *__s, int __c, size_t __n)
                                                ^~~~~~
                                                __size_t
/usr/include/string.h:129:39: error: unknown type name 'size_t'; did you mean '__size_t'?
         const char *__restrict __src, size_t __n)
                                       ^~~~~~
                                       __size_t
/usr/include/string.h:137:9: error: unknown type name 'size_t'; did you mean '__size_t'?
         size_t __n) __THROW __nonnull ((1, 2));
         ^~~~~~
         __size_t
/usr/include/string.h:143:57: error: unknown type name 'size_t'; did you mean '__size_t'?
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
                                                         ^~~~~~
                                                         __size_t
/usr/include/string.h:150:8: error: unknown type name 'size_t'
 extern size_t strxfrm (char *__restrict __dest,
        ^~~~~~
/usr/include/string.h:151:40: error: unknown type name 'size_t'; did you mean '__size_t'?
          const char *__restrict __src, size_t __n)
                                        ^~~~~~
                                        __size_t
/usr/include/string.h:280:8: error: unknown type name 'size_t'
 extern size_t strcspn (const char *__s, const char *__reject)
        ^~~~~~
/usr/include/string.h:284:8: error: unknown type name 'size_t'
 extern size_t strspn (const char *__s, const char *__accept)
        ^~~~~~
/usr/include/string.h:394:8: error: unknown type name 'size_t'
 extern size_t strlen (const char *__s)
        ^~~~~~
/usr/include/string.h:446:33: error: unknown type name 'size_t'; did you mean '__size_t'?
 extern void __bzero (void *__s, size_t __n) __THROW __nonnull ((1));
                                 ^~~~~~
                                 __size_t
/in/foo.c: In function 'main':
/in/foo.c:24:11: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     while(scanf("%d %d %d",&m,&n,&t)!=EOF)
           ^~~~~
/in/foo.c:24:11: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:24:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:24:39: error: 'EOF' undeclared (first use in this function)
     while(scanf("%d %d %d",&m,&n,&t)!=EOF)
                                       ^~~
/in/foo.c:24:39: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:27:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
         memset(daoyu,0,sizeof(daoyu));
         ^~~~~~
/in/foo.c:27:9: warning: incompatible implicit declaration of built-in function 'memset'
/in/foo.c:27:9: note: include '<string.h>' or provide a declaration of 'memset'
/in/foo.c:31:13: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
             getchar();
             ^~~~~~~
/in/foo.c:55:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
         printf("%d %d\n",ans,max*t);
         ^~~~~~
/in/foo.c:55:9: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:55:9: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
2-7 有几个岛屿
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 15:26:31
评测时间
2018-12-12 15:26:31
评测机
分数
0
总耗时
16ms
峰值内存
2.914 MiB