gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:10:18: warning: overflow in conversion from 'long long int' to 'int' changes value from '1000000000000000000' to '-1486618624' [-Woverflow]
10 | int l = 0, r = inff;
| ^~~~
gap.cpp:14:17: error: cannot convert 'int*' to 'long long int*'
14 | MinMax(l, r, &mn, &mx);
| ^~~
| |
| int*
In file included from gap.cpp:1:
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:28:1: warning: control reaches end of non-void function [-Wreturn-type]
28 | }
| ^