Problem sort2
User OSoverspike
Submission Time 2025-11-14 01:11:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort2.cpp: In function ‘int main()’:
sort2.cpp:8:6: error: expected ‘(’ before ‘i’
8 | for i in range(0, n) {
| ^
| (
sort2.cpp:8:6: error: ‘i’ was not declared in this scope
sort2.cpp:11:18: error: request for member ‘begin’ in ‘input’, which is of non-class type ‘int [7500]’
11 | std::sort(input.begin(), input.begin()+n, std::greater<int>());
| ^~~~~
sort2.cpp:11:33: error: request for member ‘begin’ in ‘input’, which is of non-class type ‘int [7500]’
11 | std::sort(input.begin(), input.begin()+n, std::greater<int>());
| ^~~~~
sort2.cpp:12:2: error: expected primary-expression before ‘for’
12 | for i in range(0, n) {
| ^~~
sort2.cpp:11:65: error: expected ‘)’ before ‘for’
11 | std::sort(input.begin(), input.begin()+n, std::greater<int>());
|