Problem stepcount
User ryoshu
Submission Time 2026-11-04 10:19:27
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 == 0 && 0 < N < 4); {
| ^~~~
stepcount.cpp:16:9: error: ‘else’ without a previous ‘if’
16 | else if (N%3 == 2 && 0 < N < 4); {
| ^~~~
stepcount.cpp:21:9: error: ‘else’ without a previous ‘if’
21 | else (N%3 == 1 && 0 < N < 4); {
| ^~~~