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