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

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:11: error: expected primary-expression before ‘)’ token
7 | for (n>1;){
| ^
3nplus1.cpp:7:11: error: expected ‘;’ before ‘)’ token
7 | for (n>1;){
| ^
| ;
3nplus1.cpp:8:15: error: expected primary-expression before ‘)’ token
8 | if(n%2 == 0;){
| ^
3nplus1.cpp:12:20: error: expected primary-expression before ‘)’ token
12 | else if (n%2 > 0;){
| ^