Problem | sumint |
---|---|
User | Ant1234567890 |
Submission Time | 2025-06-09 10:02:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:7: error: ‘x’ was not declared in this scope
5 | cin>>x;
| ^
sumint.cpp:6:6: error: ‘i’ was not declared in this scope
6 | for(i==x,i>0,i--){
| ^
sumint.cpp:11:2: error: expected primary-expression before ‘return’
11 | return 0;
| ^~~~~~
sumint.cpp:10:14: error: expected ‘)’ before ‘return’
10 | cout<<count;
| ^
| )
11 | return 0;
| ~~~~~~
sumint.cpp:6:5: note: to match this ‘(’
6 | for(i==x,i>0,i--){
| ^