记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:19: warning: statement with no effect [-Wunused-value]
  for(int i=0;i++;i<n)
                  ~^~
/in/foo.c:12:11: warning: unknown conversion type character ' ' in format [-Wformat=]
   scanf("% ",a[i]);
           ^
/in/foo.c:12:9: warning: too many arguments for format [-Wformat-extra-args]
   scanf("% ",a[i]);
         ^~~~
/in/foo.c:14:2: error: expected expression before 'int'
  int max=a[0];
  ^~~
/in/foo.c:15:11: error: 'max' undeclared (first use in this function); did you mean 'main'?
   if(a[i]>max)
           ^~~
           main
/in/foo.c:15:11: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:15: warning: unused variable 'b' [-Wunused-variable]
  int a[10000],b[10];
               ^
/in/foo.c: In function 'ming':
/in/foo.c:26:9: error: expected expression before ')' token
  switch()
         ^
/in/foo.c:33:2: error: 'i' undeclared (first use in this function)
  i++;
  ^
/in/foo.c:34:10: error: 'max' undeclared (first use in this function); did you mean 'main'?
  if(a[i]=max)
          ^~~
          main
/in/foo.c:35:3: error: break statement not within loop or switch
   break;
   ^~~~~
/in/foo.c: In function 'lu':
/in/foo.c:41:2: error: 'i' undeclared (first use in this function)
  i++;
  ^
/in/foo.c:42:9: error: expected expression before ')' token
  switch()
         ^
/in/foo.c:49:10: error: 'max' undeclared (first use in this function); did you mean 'main'?
  if(a[i]=max)
          ^~~
          main
/in/foo.c:50:3: error: break statement not within loop or switch
   break;
   ^~~~~
/in/foo.c: In function 'ming':
/in/foo.c:38:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.c: In function 'lu':
/in/foo.c:53:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
2 取最大数的博弈游戏
比赛
小兰赛 2018/12/2
语言
C
递交时间
2018-12-02 11:02:44
评测时间
2018-12-02 11:02:44
评测机
分数
0
总耗时
13ms
峰值内存
3.043 MiB