Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:15: error: 'n' was not declared in this scope
11 | int a[n]={0},n=0;
| ^
/in/foo.cc:12:22: error: expected ';' before '>' token
12 | for(int i=n,i>0,i--){
| ^
| ;
/in/foo.cc:12:22: error: expected primary-expression before '>' token
/in/foo.cc:12:28: error: expected ';' before ')' token
12 | for(int i=n,i>0,i--){
| ^
| ;
/in/foo.cc:13:17: error: 'a' was not declared in this scope
13 | a[i]=x%2;
| ^
信息
- 递交者
- 类型
- 自测
- 题目
- P1080 xf1-3进制转换1
- 语言
- C++
- 递交时间
- 2025-03-29 18:33:07
- 评测时间
- 2025-03-29 18:33:07
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes