| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160645 | 赵乐骏 | 字符串反转 | C++ | Compile Error | 0 MS | 0 KB | 471 | 2026-09-25 20:41:52 |
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; cin.ignore(); while(T--){ string line; getline(cin,line); stringstream ss(line); string word; bool first=true; while(ss>>word){ reserse(word.begin(),word.end()); if (!first) cout << " "; cout << word; first = false; } cout << endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:14:41: error: 'reserse' was not declared in this scope
reserse(word.begin(),word.end());
^