| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69543 | 李雨昊 | 输出满足条件的成绩 | C++ | Compile Error | 0 MS | 0 KB | 271 | 2024-04-05 15:08:32 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<iomanip> using namespace std; int main() { int a,b; if (b>=0 && b<=100){ for(int i=1;i=50;i++){ cin>>a>>b; if(b>=80){ cout<<a<b; } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:13:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(int i=1;i=50;i++){
^
Main.cc:16:12: error: no match for 'operator<' (operand types are 'std::basic_ostream' and 'int')
cout<
Main.cc:16:12: 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:220: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:220:5: note: template argument deduction/substitution failed:
Main.cc:16:13: note: 'std::basic_ostream' is not derived from 'const std::pair<_T1, _T2>'
cout<