Problem stepcount
User ZhangChi
Submission Time 2026-11-04 10:31:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepcount.cpp: In function ‘int main()’:
stepcount.cpp:22:4: error: expected ‘while’ before ‘cout’
22 | cout << x;
| ^~~~
stepcount.cpp:22:4: error: expected ‘(’ before ‘cout’
22 | cout << x;
| ^~~~
| (
stepcount.cpp:22:13: error: expected ‘)’ before ‘;’ token
22 | cout << x;
| ~~~~ ^
| )
stepcount.cpp:28:4: error: expected ‘while’ before ‘cout’
28 | cout << x;
| ^~~~
stepcount.cpp:28:4: error: expected ‘(’ before ‘cout’
28 | cout << x;
| ^~~~
| (
stepcount.cpp:28:13: error: expected ‘)’ before ‘;’ token
28 | cout << x;
| ~~~~ ^
| )