Problem 3nplus1
User haiquan
Submission Time 2025-06-18 09:13:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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