编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#3416 | #1006. 超级强迫症 | Compile Error | 0 | 0 ms | 0 K | C / 243 B | hbut_czf | 2023-11-25 15:06:49 |
int
编译信息
/sandbox/1/a.c:3:8: error: definition of variable with array type needs an explicit size or an initializer
{int n,a[],i,equal=1;
^
/sandbox/1/a.c:14:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if(equal=1)
~~~~~^~
/sandbox/1/a.c:14:9: note: place parentheses around the assignment to silence this warning
if(equal=1)
^
( )
/sandbox/1/a.c:14:9: note: use '==' to turn this assignment into an equality comparison
if(equal=1)
^
==
1 warning and 1 error generated.