Problem sumint
User Rayn
Submission Time 2026-11-02 11:40:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:25: error: expected ‘;’ before ‘if’
7 | cout << n << " "
| ^
| ;
8 | if (n % 2 == 0){
| ~~
sumint.cpp:10:9: error: ‘else’ without a previous ‘if’
10 | else{
| ^~~~