UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#211921#1. A+B Problem15338873915Compile Error//C++84b2024-10-13 08:00:422024-10-13 08:00:43

answer

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

详细

answer.code: In function 'int main()':
answer.code:5:5: error: ambiguous overload for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'int')
  cin>>a+b;\x0d
     ^
answer.code:5:5: note: candidates are:
In file included from /usr/include/c++/4.8/sstream:38:0,
                 from /usr/include/c++/4.8/complex:45,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/stdc++.h:66,
                 from answer.code:1:
/usr/include/c++/4.8/istream:120:7: not...