Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69541 李雨昊 输出满足条件的成绩 C++ Compile Error 0 MS 0 KB 237 2024-04-05 15:07:18

Tests(0/0):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<iomanip> using namespace std; int main() { int a,b; for(int i=1;i=50;i++){ cin>>a>>b; if(b>=80){ cout<<a<b; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(int i=1;i=50;i++){
                ^
Main.cc:15:11: error: no match for 'operator<' (operand types are 'std::basic_ostream' and 'int')
    cout<
Main.cc:15:11: 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:15:12: note:   'std::basic_ostream' is not derived from 'const std::pair<_T1, _T2>'
    cout<