Problem choochoo
User Yifei1234
Submission Time 2023-02-27 17:13:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choochoo.cpp: In function ‘int main()’:
choochoo.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘for’
7 | for ( int i=0,i<n,i++){
| ^~~
choochoo.cpp:14:9: error: lvalue required as left operand of assignment
14 | if (n%2=0){
| ^
choochoo.cpp:17:13: error: expected primary-expression before ‘)’ token
17 | else (n%2==!){
| ^