Problem sumint
User 583116UB
Submission Time 2024-04-13 11:23:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:16: error: ‘i’ was not declared in this scope
6 | for(int d=0; i<d; i++)
| ^
sumint.cpp:8:11: error: ‘a’ was not declared in this scope
8 | cin >> a;
| ^
sumint.cpp:9:4: error: ‘sum’ was not declared in this scope
9 | sum = sum + a:
| ^~~