Problem | sumint |
---|---|
User | coderccodes |
Submission Time | 2023-07-03 15:57:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:6:13: error: ‘days’ has both ‘extern’ and initializer
6 | extern int days = 0;
| ^~~~
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:10:20: error: ‘times’ has both ‘extern’ and initializer
10 | extern int times = 0;
| ^~~~~
sumint.cpp:11:16: error: ‘times’ was not declared in this scope; did you mean ‘time’?
11 | cin >> times;
| ^~~~~
| time
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
| ^~~