Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152686 张皓凯 A+B 输入输出练习I C++ Compile Error 0 MS 0 KB 182 2026-05-01 10:03:00

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b<<endl; int a,b; cin>>a>>b; cout<<a+b<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:9: error: redeclaration of 'int a'
     int a,b;
         ^
Main.cc:5:9: note: 'int a' previously declared here
     int a,b;
         ^
Main.cc:8:11: error: redeclaration of 'int b'
     int a,b;
           ^
Main.cc:5:11: note: 'int b' previously declared here
     int a,b;
           ^