| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154551 | 田子熙 | 反转字符串 | C++ | Compile Error | 0 MS | 0 KB | 166 | 2026-05-30 17:03:32 |
#include<bits/stdc++.h> using namespace std; int main(){ string a; getline(cin,a); for(int i=a.length()-1;i>=0;i--){ cout<<a[i]<" "; } return 0; }
Main.cc: In function 'int main()': Main.cc:7:13: error: no match for 'operator<' (operand types are 'std::basic_ostream' and 'const char [2]') cout< 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:7:14: note: 'std::basic_ostream' is not derived from 'const std::pair<_T1, _T2>' cout<