| Problem | competition |
|---|---|
| User | hendrickthuta |
| Submission Time | 2026-08-17 15:44:43 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:8:6: error: conflicting declaration ‘long long int a [n]’
8 | int a[n];
| ^
competition.cpp:7:8: note: previous declaration as ‘long long int a’
7 | int n,a,b; cin >> n >> a >> b;
| ^
competition.cpp:9:6: error: conflicting declaration ‘long long int b [n]’
9 | int b[n];
| ^
competition.cpp:7:10: note: previous declaration as ‘long long int b’
7 | int n,a,b; cin >> n >> a >> b;
| ^
competition.cpp:12:13: error: invalid types ‘long long int[long long int]’ for array subscript
12 | cin >> a[i];
| ^
competition.cpp:13:13: error: invalid types ‘long long int[long long int]’ for array subscript
13 | sum += a[i];
| ^
competition.cpp:16:13: error: invalid types ‘long long int[long long int]’ for array subscript
16 |