| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151420 | 孔声豪 | 序列变换 | C++ | Compile Error | 0 MS | 0 KB | 240 | 2026-04-12 12:22:32 |
#include <bits/stdc++.h> using namespace std; int main(){ int n,a[102]={},t; cin>>n; for(int i=1;i<=n;i++){ cin<<a[i]; } for(int i=1;i<=n;i++){ t=a[i]; if(i==n){ } } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:6: error: no match for 'operator<<' (operand types are 'std::istream {aka std::basic_istream}' and 'int')
cin<
Main.cc:7: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:7:11: note: 'std::istream {aka std::basic_istream}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cin<