| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160952 | 王丞杰 | 单词翻转 | C++ | Compile Error | 0 MS | 0 KB | 377 | 2026-09-26 17:19:57 |
#include<bits/stdc++.h> using namespace std; int main() { string s,b; getline(cin,b); b=b+" "; int len=b.size(); // ''''''''' string s=""; int cnt=0; for(int i=0;i<len;i++){ if(b[i]!=' '){ cnt++; } else{ for(int j=cnt;j<0;j--){ cout<<s1[i-j]; } cout<<" "; cnt=0; } } // 这个棋分明就是老鼠洗完头 }
Main.cc: In function 'int main()':
Main.cc:9:9: error: redeclaration of 'std::__cxx11::string s'
string s="";
^
Main.cc:4:9: note: 'std::__cxx11::string s' previously declared here
string s,b;
^
Main.cc:17:11: error: 's1' was not declared in this scope
cout<