编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#3663 | #1006. 超级强迫症 | Compile Error | 0 | 0 ms | 0 K | C / 279 B | Victorzz | 2023-11-25 16:11:04 |
int
编译信息
/sandbox/1/a.c:1:9: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
#include <stdio.h>
^
/sandbox/1/a.c:2:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
int main ()
^
/sandbox/1/a.c:2:10: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
int main ()
^
/sandbox/1/a.c:3:5: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
{int n,a[n],i;
^
/sandbox/1/a.c:3:8: warning: treating Unicode character <U+FF0C> as identifier character rather than as ',' symbol [-Wunicode-homoglyph]
{int n,a[n],i;
^~
/sandbox/1/a.c:3:13: error: use of undeclared identifier 'n'
{int n,a[n],i;
^
/sandbox/1/a.c:3:15: warning: treating Unicode character <U+FF0C> as identifier character rather than as ',' symbol [-Wunicode-homoglyph]
{int n,a[n],i;
^~
/sandbox/1/a.c:3:15: error: expected ';' at end of declaration
{int n,a[n],i;
^
;
/sandbox/1/a.c:4:11: warning: treating Unicode character <U+FF0C> as identifier character rather than as ',' symbol [-Wunicode-homoglyph]
scanf("%d",&n);
^~
/sandbox/1/a.c:4:11: error: expected ')'
/sandbox/1/a.c:4:6: note: to match this '('
scanf("%d",&n);
^
/sandbox/1/a.c:5:5: error: use of undeclared identifier 'i'
for(i=0;i<n;i++)
^
/sandbox/1/a.c:5:9: error: use of undeclared identifier 'i'
for(i=0;i<n;i++)
^
/sandbox/1/a.c:5:11: error: use of undeclared identifier 'n'
for(i=0;i<n;i++)
^
/sandbox/1/a.c:5:13: error: use of undeclared identifier 'i'
for(i=0;i<n;i++)
^
/sandbox/1/a.c:6:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
{scanf("%d",&a[i]);
^
/sandbox/1/a.c:6:3: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
{scanf("%d",&a[i]);
^
/sandbox/1/a.c:6:5: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
{scanf("%d",&a[i]);
^
/sandbox/1/a.c:6:20: error: use of undeclared identifier 'a'
{scanf("%d",&a[i]);
^
/sandbox/1/a.c:6:22: error: use of undeclared identifier 'i'
{scanf("%d",&a[i]);
^
/sandbox/1/a.c:7:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
}
^
/sandbox/1/a.c:7:3: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
}
^
/sandbox/1/a.c:7:5: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
}
^
/sandbox/1/a.c:8:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
int equal=1;
^
/sandbox/1/a.c:9:5: error: use of undeclared identifier 'i'
for(i=1;i<n;i++)
^
/sandbox/1/a.c:9:9: error: use of undeclared identifier 'i'
for(i=1;i<n;i++)
^
/sandbox/1/a.c:9:11: error: use of undeclared identifier 'n'
for(i=1;i<n;i++)
^
/sandbox/1/a.c:9:13: error: use of undeclared identifier 'i'
for(i=1;i<n;i++)
^
/sandbox/1/a.c:10:5: error: use of undeclared identifier 'a'
{if(a[i]!=a[0])
^
/sandbox/1/a.c:10:7: error: use of undeclared identifier 'i'
{if(a[i]!=a[0])
^
/sandbox/1/a.c:10:11: error: use of undeclared identifier 'a'
{if(a[i]!=a[0])
^
/sandbox/1/a.c:11:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
{equal=0;
^
/sandbox/1/a.c:11:3: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
{equal=0;
^
/sandbox/1/a.c:12:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
break;}
^
/sandbox/1/a.c:12:3: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
break;}
^
18 warnings and 16 errors generated.