Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158697 罗嘉睿 A+B 输入输出练习III C++ Compile Error 0 MS 0 KB 184 2026-08-22 16:44:52

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:18: error: no match for 'operator<' (operand types are 'std::basic_ostream' and '')
         cout< constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^
/usr/include/c++/5/bits/stl_pair.h:220:5: note:   template argument deduction/substitution failed:
Main.cc:9:19: note:   'std::basic_ostream' is not derived from 'const std::pair<_T1, _T2>'
         cout<