Problem stepcount
User ryoshu
Submission Time 2026-11-04 10:12:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stepcount.cpp: In function ‘int main()’:
stepcount.cpp:11:9: error: ‘else’ without a previous ‘if’
11 | else if (N%3 == 3) {
| ^~~~
stepcount.cpp:12:25: error: expected ‘;’ before ‘cout’
12 | stepNum += 3
| ^
| ;
13 | cout << stepNum;
| ~~~~
stepcount.cpp:21:24: error: expected ‘;’ before ‘{’ token
21 | else (N%3 == 1) {
| ^~
| ;