| Problem | sum2 |
|---|---|
| User | Zubair |
| Submission Time | 2026-06-25 09:45:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sum2.cpp: In function ‘int main()’:
sum2.cpp:9:15: error: conflicting declaration ‘std::vector<long long int> a’
9 | vector<int> a(n);
| ^
sum2.cpp:8:7: note: previous declaration as ‘long long int a’
8 | int a;
| ^
sum2.cpp:11:11: error: invalid types ‘long long int[long long int]’ for array subscript
11 | cin>>a[i]
| ^
sum2.cpp:13:11: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘long long int’
13 | sort(a.begin(), a.end(), greater<int>());
| ^~~~~
sum2.cpp:13:22: error: request for member ‘end’ in ‘a’, which is of non-class type ‘long long int’
13 | sort(a.begin(), a.end(), greater<int>());
| ^~~