Problem 3nplus1
User CapK1wi
Submission Time 2026-04-11 21:27:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:13: error: expected ‘;’ before ‘)’ token
9 | for (n != 1) {
| ^
| ;
3nplus1.cpp:21:1: error: expected primary-expression before ‘}’ token
21 | }
| ^
3nplus1.cpp:20:3: error: expected ‘;’ before ‘}’ token
20 | }
| ^
| ;
21 | }
| ~
3nplus1.cpp:21:1: error: expected primary-expression before ‘}’ token
21 | }
| ^
3nplus1.cpp:20:3: error: expected ‘)’ before ‘}’ token
20 | }
| ^
| )
21 | }
| ~
3nplus1.cpp:9:6: note: to match this ‘(’
9 | for (n != 1) {
| ^
3nplus1.cpp:21:1: error: expected primary-expression before ‘}’ token
21 | }
| ^