| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123579 | 王镜铭 | 13求7个数的平均数 | C++ | Compile Error | 0 MS | 0 KB | 146 | 2025-07-06 13:23:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; for(int x=1;x<=7;x++){ cin<<a; b+=a; } cout<<b/7; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:6: error: no match for 'operator<<' (operand types are 'std::istream {aka std::basic_istream}' and 'int')
cin<
Main.cc:6:6: 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:6:8: note: 'std::istream {aka std::basic_istream}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cin<