Problem 3nplus1
User Reality1001
Submission Time 2024-02-16 19:38:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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