Problem sort
User Yvonne
Submission Time 2024-06-19 14:37:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:16:19: error: ‘comp’ was not declared in this scope
16 | sort(arr, arr+n, comp);
| ^~~~
sort.cpp:18:15: error: expected ‘)’ before ‘i’
18 | cout << arr i << " ";
| ^~
| )
sort.cpp:17:25: note: to match this ‘(’
17 | for(int i=0; i<n; i++)(
| ^
sort.cpp: At global scope:
sort.cpp:20:4: error: expected declaration before ‘}’ token
20 | }
| ^