Problem swapsort
User Kenniene
Submission Time 2024-06-19 14:01:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapsort.cpp: In function ‘int32_t main()’:
swapsort.cpp:42:76: error: cannot convert ‘std::vector<long long int>’ to ‘long long int*’
42 | if (sorted_left && sorted_right && sorted_mid && is_sorted_segment(a, min(l, r), max(l, r))) {
| ^
| |
| std::vector<long long int>
swapsort.cpp:6:28: note: initializing argument 1 of ‘bool is_sorted_segment(long long int*, long long int, long long int)’
6 | bool is_sorted_segment(int arr[], int l, int r) {
| ^