Problem | goodprogrammer |
---|---|
User | bribritt |
Submission Time | 2023-03-31 18:27:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goodprogrammer.cpp: In function ‘int main()’:
goodprogrammer.cpp:4:11: error: expected unqualified-id before ‘int’
4 | string S, int cnt; while(cin >> S) if(S=="wabbit") cnt++;
| ^~~
goodprogrammer.cpp:4:52: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
4 | string S, int cnt; while(cin >> S) if(S=="wabbit") cnt++;
| ^~~
| int
goodprogrammer.cpp:5:24: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
5 | for(int i = 0; i < 3 * cnt; i++) cout << "wabbit ";
| ^~~
| int