Problem choochoo
User Um
Submission Time 2023-08-03 17:14:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choochoo.cpp: In function ‘int main()’:
choochoo.cpp:8:7: error: expected ‘;’ before ‘if’
8 | cg++
| ^
| ;
9 | if (cg%2==0){
| ~~
choochoo.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else if(cg==0){
| ^~~~