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