answer.code: In function ‘long long int findGap(int, int)’:
answer.code:11:59: error: invalid conversion from ‘long long int’ to ‘long long int*’ [-fpermissive]
11 | MinMax(a[i-1] + 1, a[j+1] - 1, a[i], a[j]);
| ~~~^
| |
| long long int
In file included from answer.code:4:
gap.h:2:35: note: initializing argument 3 of ‘void MinMax(long long int, long long int, long long int*, long long int*)’
2 | void MinMax(long long, long long, long long*, long long*);
| ^~~~~~~~~~
answer.code:11:65: error: invalid conversion from ‘long long int’ to ‘long long int*’ [-fpermissive]
11 | MinMax(a[i-1] + 1, a[j+1] - 1, a[i], a[j]);
| ~~~^
| |
| long long int
gap.h:2:47: note: initializing argument 4 of ‘void MinMax(long long int, long long int, long long int*, long long int*)’
2 | void MinMax(long long, long long, long long*, long long*);
| ^~~~~~~~~~
answer.code:21:1: warning: control reaches end of non-void function [-Wreturn-type]
21 | }
| ^