| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144657 | 王峻熙 | 07a+b>c | C++ | Compile Error | 0 MS | 0 KB | 142 | 2026-01-24 14:53:15 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<a+b>c?"Yes":"No")<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:14: error: no match for 'operator>' (operand types are 'std::basic_ostream' and 'int')
cout<c?"Yes":"No")<(int, int)
Main.cc:6:14: note: no known conversion for argument 1 from 'std::basic_ostream' to 'int'
In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from Main.cc:1:
/usr/include/c++/5/bits/stl_pair.h:233:5: note: candidate: template 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:233:5: note: template argument deduction/substitution failed:
Main.cc:6:15: note: 'std::basic_ostream' is not derived from 'const std::pair<_T1, _T2>'
cout<