Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116497 | 罗安博 | 07比较大小 | C++ | Compile Error | 0 MS | 0 KB | 175 | 2025-04-12 10:58:29 |
#include<bits/stdc++.h> using namespace std; int main(){ long long a,b; cin<<a<<b; if(a>b){ cout<<a; }else{ cout<<b; } return 0; }
Main.cc: In function 'int main()': Main.cc:5:5: error: no match for 'operator<<' (operand types are 'std::istream {aka std::basic_istream}' and 'long long int') cin< Main.cc:5:5: 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:5:7: note: 'std::istream {aka std::basic_istream}' is not derived from 'std::basic_ostream<_CharT, _Traits>' cin<