Problem sort
User RandomCtfNoob
Submission Time 2025-03-03 15:22:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:5:9: error: expected primary-expression before ‘int’
5 | cin >> int n;
| ^~~
sort.cpp:6:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | long long arr[n];
| ^
| yn
sort.cpp:8:10: error: ‘arr’ was not declared in this scope
8 | cin >> arr[i];
| ^~~
sort.cpp:10:7: error: ‘arr’ was not declared in this scope
10 | sort(arr,arr.end());
| ^~~