Problem sumint
User Ant1234567890
Submission Time 2025-06-09 09:59:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:4:11: error: expected initializer before ‘==’ token
4 | int count==0;
| ^~
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:10:8: error: ‘count’ was not declared in this scope
10 | cout<<count
| ^~~~~
sumint.cpp:10:13: error: expected ‘;’ before ‘return’
10 | cout<<count
| ^
| ;
11 | return 0
| ~~~~~~
sumint.cpp:11:2: error: expected primary-expression before ‘return’
11 | return 0
| ^~~~~~
sumint.cpp:10:13: error: expected ‘)’ before ‘return’
10 | cout<<count
| ^
| )
11 | return 0
| ~~~~~~
sumint.cpp:6:5: note: to ma