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

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:10: error: expected primary-expression before ‘)’ token
7 | for(n>1;){
| ^
3nplus1.cpp:7:10: error: expected ‘;’ before ‘)’ token
7 | for(n>1;){
| ^
| ;
3nplus1.cpp:8:12: error: lvalue required as left operand of assignment
8 | if(n%2 = 0;){
| ^
3nplus1.cpp:8:14: error: expected primary-expression before ‘)’ token
8 | if(n%2 = 0;){
| ^
3nplus1.cpp:10:3: error: expected ‘}’ before ‘else’
10 | else if (n%2 > 0;){
| ^~~~
3nplus1.cpp:8:15: note: to match this ‘{’
8 | if(n%2 = 0;){
| ^
3nplus1.cpp:10:20: error: expected primary-expression before ‘)’ token
10 | else if (n%2 > 0;){
| ^