Problem 3nplus1
User yq
Submission Time 2026-06-24 20:16:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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