Problem sort
User Junxian
Submission Time 2026-02-28 11:12:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:9:16: error: ‘arr’ was not declared in this scope
9 | cin >> arr[i];
| ^~~
sort.cpp:12:10: error: ‘arr’ was not declared in this scope
12 | sort(arr.begin(), arr.end(), greater<long long>());
| ^~~