记录详情

Compile Error

/in/foo.c: In function 'cal2':
/in/foo.c:11:2: error: 'c' undeclared (first use in this function)
 {c[j]++;
  ^
/in/foo.c:11:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:25:30: error: 'j' undeclared (first use in this function)
  else if(a[i]==0){cal1(n,a,b,j);cal2(n,a,c,j);}
                              ^
/in/foo.c:26:15: error: expected ')' before ']' token
  if(b[i]>=c[i]]){max[i]=b[i];}
               ^
/in/foo.c:26:15: error: expected statement before ']' token
/in/foo.c:26:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(b[i]>=c[i]]){max[i]=b[i];}
  ^~
/in/foo.c:26:16: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(b[i]>=c[i]]){max[i]=b[i];}
                ^
/in/foo.c:26:16: error: expected statement before ')' token
/in/foo.c:27:2: error: 'else' without a previous 'if'
  else{max[i]=c[i];}}
  ^~~~

信息

递交者
类型
自测
题目
P1482 H. Where Klee Sit
语言
C
递交时间
2023-08-25 12:28:55
评测时间
2023-08-25 12:28:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes