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