Problem | sumint |
---|---|
User | theRealLucasXD |
Submission Time | 2025-05-22 21:38:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:5:1: note: in expansion of macro ‘int’
5 | int n, arr[10001], sum=0;
| ^~~
sumint.cpp:5:5: error: ‘n’ does not name a type; did you mean ‘yn’?
5 | int n, arr[10001], sum=0;
| ^
| yn
sumint.cpp: In function ‘int main()’:
sumint.cpp:8:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n;
| ^
| yn
sumint.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i=0;i<n;i++) {
| ^
sumint.cpp:10:10: error: ‘arr’ was not declared in this scope
10 | cin >> arr[i];
| ^~~
sumint.cpp:11:3: error: ‘sum’ was not declared in this scope
11 | sum += arr[i];
| ^~~
sumint.cpp:14:10: error: ‘sum’ was not declared in this scope