| Problem | stepcount |
|---|---|
| User | ZhangChi |
| Submission Time | 2026-11-04 10:22:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
stepcount.cpp: In function ‘int main()’:
stepcount.cpp:18:11: error: expected ‘;’ before ‘if’
18 | x = n/2
| ^
| ;
19 | if (x%m == 0) {
| ~~
stepcount.cpp:21:6: error: expected ‘}’ before ‘else’
21 | } else {
| ^~~~
stepcount.cpp:17:17: note: to match this ‘{’
17 | if (n%2 == 0) {
| ^
stepcount.cpp:24:5: error: ‘else’ without a previous ‘if’
24 | } else {
| ^~~~
stepcount.cpp: At global scope:
stepcount.cpp:33:2: error: expected unqualified-id before ‘return’
33 | return 0;
| ^~~~~~
stepcount.cpp:34:1: error: expected declaration before ‘}’ token
34 | }
| ^