gap.cpp: In function 'long long int findgap1(long long int)':
gap.cpp:24:28: error: cannot convert '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >' to 'long long int*'
24 | MinMax(cl, cr, (a.begin()+l), (a.begin()+r));
| ~~~~~~~~~~^~~
| |
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
In file included from gap.cpp:2:
gap.h:1:35: note: initializing argument 3 of 'void MinMax(long long int, long long int, long long int*, long long int*)'
1 | void MinMax(long long, long long, long long*, long long*);
| ^~~~~~~~~~
gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:43:6: warning: unused variable 'N' [-Wunused-variable]
43 | int N = n;
| ^