gap.cpp: In function 'int findGap(int, int)':
gap.cpp:19:23: error: invalid conversion from 'll* {aka long long int*}' to 'll {aka long long int}' [-fpermissive]
MinMax(x,y,&mn,&mx);
^
gap.cpp:16:6: note: initializing argument 3 of 'void MinMax(ll, ll, ll&, ll&)'
void MinMax(ll s,ll t,ll &mn,ll &mx);
^
gap.cpp:19:23: error: cannot bind rvalue '(ll)(& mn)' to 'll& {aka long long int&}'
MinMax(x,y,&mn,&mx);
^
gap.cpp:23:29: error: invalid conversion from 'll* {aka long long int*}' to 'll {aka long long int}' [-fpermissive]
MinMax(mn,mx,&mn,&mx);
^
gap.cpp:16:6: note: initializing argument 3 of 'void MinMax(ll, ll, ll&, ll&)'
void MinMax(ll s,ll t,ll &mn,ll &mx);
^
gap.cpp:23:29: error: cannot bind rvalue '(ll)(& mn)' to 'll& {aka long long int&}'
MinMax(mn,mx,&mn,&mx);
^