| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82390 | 石依灵 | 31统计单词数 | C++ | Compile Error | 0 MS | 0 KB | 368 | 2024-07-13 11:12:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int o; string a; cin>>a; o=a.size(); for(int i-0;i<o;i++){ if(a[i]==' '){ k++; } else if(s[i]==' '){ if(k!=0){ cout<<','; k=0; } } } cout<<k; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:14: error: expected ';' before '-' token
for(int i-0;i