Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125322 陈淮遇 A+B 输入输出练习I C++ Compile Error 0 MS 0 KB 250 2025-07-14 15:23:03

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:2: error: expected initializer before 'int'
  int c;
  ^
Main.cc:14:9: error: 'c' was not declared in this scope
  cin >> c >> d;
         ^