Problem sumint
User leafeon
Submission Time 2025-05-24 22:22:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:10:7: error: ‘x’ was not declared in this scope
10 | for (x=0,x<d,x++){
| ^
sumint.cpp:14:1: error: expected primary-expression before ‘return’
14 | return 0; //terminate program
| ^~~~~~
sumint.cpp:13:10: error: expected ‘)’ before ‘return’
13 | cout<<d;
| ^
| )
14 | return 0; //terminate program
| ~~~~~~
sumint.cpp:10:6: note: to match this ‘(’
10 | for (x=0,x<d,x++){
| ^