Problem 3nplus1
User officemouse
Submission Time 2023-11-08 11:25:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:14: error: expected ‘;’ before ‘)’ token
10 | for (n!=1){
| ^
| ;
3nplus1.cpp:20:1: error: expected primary-expression at end of input
20 | }
| ^
3nplus1.cpp:20:2: error: expected ‘;’ at end of input
20 | }
| ~^
| ;
3nplus1.cpp:20:1: error: expected primary-expression at end of input
20 | }
| ^
3nplus1.cpp:20:2: error: expected ‘)’ at end of input
20 | }
| ~^
| )
3nplus1.cpp:10:9: note: to match this ‘(’
10 | for (n!=1){
| ^
3nplus1.cpp:20:1: error: expected statement at end of input
20 | }
| ^
3nplus1.cpp:20:1: error: expected ‘}’ at end of input
3nplus1.cpp:6:11: note: to match this ‘{’
6 | int main(){
| ^