Problem sumint
User friedcircuits177
Submission Time 2024-01-29 17:37:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:7: error: ‘x’ was not declared in this scope
8 | for (x=1;x<=d;x++){
| ^
sumint.cpp:9:7: error: redeclaration of ‘int x’
9 | int x;
| ^
sumint.cpp:8:7: note: ‘<typeprefixerror>x’ previously declared here
8 | for (x=1;x<=d;x++){
| ^