记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:6: error: 'i' undeclared (first use in this function)
  for(i=0;i<=n;i++)
      ^
/in/foo.c:12:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:4:18: warning: variable 'arr' set but not used [-Wunused-but-set-variable]
  int xmin,xmax,n,arr[4],b[4],x,y;
                  ^~~
/in/foo.c: At top level:
/in/foo.c:44:12: error: expected declaration specifiers or '...' before string constant
     printf("出现次数最多的数字为:%d",b[x]);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:44:48: error: unknown type name 'b'
     printf("出现次数最多的数字为:%d",b[x]);
                                                ^
/in/foo.c:47:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

递交者
类型
自测
题目
3-1 整数中的数字
语言
C
递交时间
2018-12-08 08:55:20
评测时间
2018-12-08 08:55:20
评测机
分数
0
总耗时
12ms
峰值内存
2.914 MiB