| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129913 | 鄢晨曦 | 02简单两数相加 | C++ | Compile Error | 0 MS | 0 KB | 156 | 2025-09-06 17:40:31 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; a=1; b=2; cout<<a<<endl; cin>>a>>b; cout<<"a+b"<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:2: error: 'a' was not declared in this scope
a=1;
^
Main.cc:6:2: error: 'b' was not declared in this scope
b=2;
^
Main.cc:4:6: warning: unused variable 'x' [-Wunused-variable]
int x,y;
^
Main.cc:4:8: warning: unused variable 'y' [-Wunused-variable]
int x,y;
^