记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:10:2: error: unknown type name 'Word'; use 'struct' keyword to refer to the type
  Word a[1000];
  ^~~~
  struct 
/in/foo.c:20:8: error: request for member 'ss' in something not a structure or union
    a[k].ss[i]= str[i];
        ^
In file included from /usr/include/string.h:630:0,
                 from /in/foo.c:2:
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:26:23: error: request for member 'ss' in something not a structure or union
   if(strcmp(str,  a[i].ss)==0)
                       ^
/in/foo.c:15:6: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
  int flag=0;
      ^~~~
/in/foo.c:12:18: warning: unused variable 't' [-Wunused-variable]
  int i, count=0, t=0, k=0;
                  ^
/in/foo.c:10:7: warning: variable 'a' set but not used [-Wunused-but-set-variable]
  Word a[1000];
       ^

信息

递交者
类型
递交
题目
2-6 单词频度表
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 16:28:30
评测时间
2018-12-12 16:28:30
评测机
分数
0
总耗时
17ms
峰值内存
3.293 MiB