| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 118782 | 张文浩 | 07判断成绩 | C++ | Compile Error | 0 MS | 0 KB | 343 | 2025-05-10 14:45:18 |
#include<bits/stdc++.h> using namespace std; int main() { /**char a; cin>>a; if(a == 'Y'){ cout<<'A'; }else { if(a == 'Z'){ cout<<'B'; }else{ cout<<char(a+2) ; } }**/ int a; cin<<a; if(a>=60){ cout<<"YES"; }else { if(a<60) cout<<"NO"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:16:8: error: no match for 'operator<<' (operand types are 'std::istream {aka std::basic_istream}' and 'int')
cin<
Main.cc:16:8: note: no known conversion for argument 1 from 'std::istream {aka std::basic_istream}' to 'int'
In file included from /usr/include/c++/5/regex:61:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:108,
from Main.cc:1:
/usr/include/c++/5/bits/regex.h:1480:5: note: candidate: template std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::sub_match<_Bi_iter>&)
operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
^
/usr/include/c++/5/bits/regex.h:1480:5: note: template argument deduction/substitution failed:
Main.cc:16:10: note: 'std::istream {aka std::basic_istream}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cin<