| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158023 | 王垚植 | A+B 输入输出练习III | C++ | Compile Error | 0 MS | 0 KB | 252 | 2026-08-20 15:23:44 |
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; int c[],a=0; while (cin>>a>>b){ if (a==0 && b==0){ break; } else{ cout<<a+b<<endl; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:5:11: error: storage size of 'c' isn't known
int c[],a=0;
^
Main.cc:5:13: error: redeclaration of 'int a'
int c[],a=0;
^
Main.cc:4:9: note: 'int a' previously declared here
int a,b;
^