Problem sumint
User phoenix348
Submission Time 2025-01-08 16:10:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:2: error: expected initializer before ‘for’
7 | for (int i=0;i<d;i++){
| ^~~
sumint.cpp:7:15: error: ‘i’ was not declared in this scope
7 | for (int i=0;i<d;i++){
| ^
sumint.cpp:9:14: error: ‘a’ was not declared in this scope
9 | } int sum = a;
| ^