Problem | sumint |
---|---|
User | theRealLucasXD |
Submission Time | 2025-05-22 21:44:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:2:13: error: expected initializer before ‘long’
2 | #define int long long
| ^~~~
sumint.cpp:8:2: note: in expansion of macro ‘int’
8 | int arr[10001]
| ^~~
sumint.cpp:10:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
10 | cin >> n;
| ^
| yn
sumint.cpp:13:10: error: ‘arr’ was not declared in this scope
13 | cin >> arr[i];
| ^~~
sumint.cpp:14:3: error: ‘_sum’ was not declared in this scope
14 | _sum += arr[i];
| ^~~~
sumint.cpp:17:10: error: ‘_sum’ was not declared in this scope
17 | cout << _sum;
| ^~~~