Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152763 姚旭鸿 A+B 输入输出练习I C++ Compile Error 0 MS 0 KB 161 2026-05-02 13:37:18

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:19: error: 'b' was not declared in this scope
     while(cin>>a>>b)
                   ^
Main.cc:5:11: warning: unused variable 'd' [-Wunused-variable]
     int a,d;
           ^