Problem 3nplus1
User fanqie
Submission Time 2023-11-09 15:34:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:24: error: expected ‘;’ before ‘)’ token
6 | for (n <= 10000, 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:6:6: note: to match this ‘(’
6 | for (n <= 10000, 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:4:11: note: to match this ‘{’
4 | int main(){
| ^