| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151312 | 陈棋 | 分割排序 | C++ | Compile Error | 0 MS | 0 KB | 486 | 2026-04-11 16:59:29 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ vector<long long> res; sting tmp; for(char c:s){ if(c=='5'){ if(!tmp.empty()){ res.push_back(stoll(tmp)); tmp.clear(); } } else{ tmp+=c; } } if(!tmp.empty()){ res.push_back(stoll(tmp)); } sort(res.begin(),res.end()); for(int i=0;i<res.size();++i){ if(i>0) cout<<' '; cout<<res[i]; } cout<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:3: error: 'sting' was not declared in this scope
sting tmp;
^
Main.cc:10:9: error: 'tmp' was not declared in this scope
if(!tmp.empty()){
^
Main.cc:16:5: error: 'tmp' was not declared in this scope
tmp+=c;
^
Main.cc:19:7: error: 'tmp' was not declared in this scope
if(!tmp.empty()){
^
Main.cc:23:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i