Problem sumint
User Water
Submission Time 2023-06-28 13:51:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:11: error: two or more data types in declaration of ‘e’
6 | ll int n,e,sum=0;
| ^
sumint.cpp:6:13: 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+=e;