| Problem | sort |
|---|---|
| User | Junxian |
| Submission Time | 2026-02-28 11:09:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:9:21: error: invalid types ‘long long int[int]’ for array subscript
9 | cin >> arr[i];
| ^
sort.cpp:11:14: error: request for member ‘begin’ in ‘arr’, which is of non-class type ‘long long int’
11 | sort(arr.begin(), arr.end(), greater<long long>());
| ^~~~~
sort.cpp:11:27: error: request for member ‘end’ in ‘arr’, which is of non-class type ‘long long int’
11 | sort(arr.begin(), arr.end(), greater<long long>());
| ^~~
sort.cpp:13:22: error: invalid types ‘long long int[int]’ for array subscript
13 | cout << arr[i] << " ";
| ^
sort.cpp:14:5: error: expected ‘}’ at end of input
14 | }
| ^
sort.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^