| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82389 | 胡盛哲 | 31统计单词数 | C++ | Compile Error | 0 MS | 0 KB | 219 | 2024-07-13 11:12:12 |
#include<bits/stdc++.h> using namespace std; int main() { strig s; getline(cin,s); int =s.length(c=0); fo(int i=0; i<b; i++) { if(s[i]==' '&&s[i+1]!=' '&&[i-1]!=0) c++; } cout<c+1; retur 0; }
Main.cc: In function 'int main()':
Main.cc:4:2: error: 'strig' was not declared in this scope
strig s;
^
Main.cc:5:14: error: 's' was not declared in this scope
getline(cin,s);
^
Main.cc:6:6: error: expected unqualified-id before '=' token
int =s.length(c=0);
^
Main.cc:7:5: error: expected primary-expression before 'int'
fo(int i=0; i