gap.cpp: In function 'long long int findGap(long long int, long long int)':
gap.cpp:17:25: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
17 | MinMax(0ll, (int)1E18, mn, mx);
| ^~
| |
| long long 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:17:29: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
17 | MinMax(0ll, (int)1E18, mn, mx);
| ^~
| |
| long long int
In file included from gap.cpp:1:
gap.h:1:47: note: initializing argument 4 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:21:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
21 | for(register int i = 2; i <= N/2 + (N & 1); ++i){
| ^
gap.cpp:25:20: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
25 | MinMax(l+1, r-1, mn, mx);
| ^~
| |
| long long 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:25:24: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
25 | MinMax(l+1, r-1, mn, mx);
| ^~
| |
| long long int
In file included from gap.cpp:1:
gap.h:1:47: note: initializing argument 4 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:31:13: error: 'inf' was not declared in this scope; did you mean 'ynf'?
31 | int ans = -inf;
| ^~~
| ynf
gap.cpp:34:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
34 | for(register int i = 2; i <= N; ++i){
| ^