| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157419 | wxl20111214 | [在线测评解答教程] A+B Problem | C++ | Compile Error | 0 MS | 0 KB | 140 | 2026-07-23 19:45:18 |
#include<iostream> using namespace std; int main() { int a,b,c; int c=a+b; cin>>a>>b; cout<<c<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:9: error: redeclaration of 'int c'
int c=a+b;
^
Main.cc:4:13: note: 'int c' previously declared here
int a,b,c;
^