Problem | sumint |
---|---|
User | Water |
Submission Time | 2023-06-28 13:52:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:6:9: error: two or more data types in declaration of ‘n’
6 | ll int n, e, sum=0;
| ^
sumint.cpp:6:12: error: two or more data types in declaration of ‘e’
6 | ll int n, e, sum=0;
| ^
sumint.cpp:6:15: error: two or more data types in declaration of ‘sum’
6 | ll int n, e, sum=0;
| ^~~
sumint.cpp:7:9: error: ‘n’ was not declared in this scope
7 | cin >> n;
| ^
sumint.cpp:8:14: error: two or more data types in declaration of ‘i’
8 | for (ll int i=0;i<n;i++){
| ^
sumint.cpp:8:18: error: ‘i’ was not declared in this scope
8 | for (ll int i=0;i<n;i++){
| ^
sumint.cpp:9:10: error: ‘e’ was not declared in this scope
9 | cin >> e;
| ^
sumint.cpp:10:3: error: ‘sum’ was not declared in this scope
10 | sum