Problem sumint
User coderccodes
Submission Time 2023-07-03 15:56:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:12: error: ‘d’ was not declared in this scope
7 | cin >> d;
| ^
sumint.cpp:8:13: error: ‘sum’ has both ‘extern’ and initializer
8 | extern int sum = 0;
| ^~~
sumint.cpp:12:9: error: ‘sum’ was not declared in this scope
12 | sum += times;
| ^~~
sumint.cpp:14:10: error: ‘sum’ was not declared in this scope
14 | cout << sum
| ^~~