gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:16:22: error: invalid type argument of unary '*' (have 'long long int')
16 | MinMax(l, r, *nl, *nr);
| ^~~
gap.cpp:16:27: error: invalid type argument of unary '*' (have 'long long int')
16 | MinMax(l, r, *nl, *nr);
| ^~~
gap.cpp:17:32: error: 'max' was not declared in this scope
17 | if (fl != -1) mxdist = max(mxdist, nl-fl);
| ^~~
gap.cpp:18:32: error: 'max' was not declared in this scope
18 | if (fr != -1) mxdist = max(mxdist, fr-nr);
| ^~~
gap.cpp:24:14: error: 'max' was not declared in this scope
24 | mxdist = max(mxdist, fr-fl);
| ^~~