Problem | sumint |
---|---|
User | Reality1001 |
Submission Time | 2024-02-16 12:45:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:10:3: error: expected ‘(’ before ‘if’
10 | if ( d > 0 )
| ^~
| (
sumint.cpp:10:3: error: expected primary-expression before ‘if’
10 | if ( d > 0 )
| ^~
sumint.cpp:13:3: error: expected primary-expression before ‘else’
13 | else cout << total;
| ^~~~
sumint.cpp:12:8: error: expected ‘)’ before ‘else’
12 | d --;
| ^
| )
13 | else cout << total;
| ~~~~
sumint.cpp:10:3: note: to match this ‘(’
10 | if ( d > 0 )
| ^~
sumint.cpp:13:3: error: expected primary-expression before ‘else’
13 | else cout << total;
| ^~~~