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

Compile Error

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