Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112947 | zhangfanni | 02简单两数相加 | C++ | Compile Error | 0 MS | 0 KB | 150 | 2025-03-14 20:32:14 |
#include<bits/stdc++.h> using namespace std; int a,b; int main(){ cin>>a,b; cout<<a<<" "<<b<<endl; cout<<a+b<<endl return 0; }
Main.cc: In function 'int main()': Main.cc:5:13: warning: right operand of comma operator has no effect [-Wunused-value] cin>>a,b; ^ Main.cc:8:5: error: expected ';' before 'return' return 0; ^