gap.cpp: In function 'll findGap(int, int)':
gap.cpp:68:28: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
68 | MinMax(0, ll(1e18), a[1], a[nArr]);
| ~~~^
| |
| ll {aka long long int}
In file included from gap.cpp:2:
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:68:37: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
68 | MinMax(0, ll(1e18), a[1], a[nArr]);
| ~~~~~~^
| |
| ll {aka long long int}
In file included from gap.cpp:2:
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:72:58: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
72 | MinMax(a[i - 1] + 1, a[nArr - i + 2] - 1, a[i], a[nArr - i + 1]);
| ~~~^
| |
| ll {aka long long int}
In file included from gap.cpp:2:
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:72:75: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
72 | MinMax(a[i - 1] + 1, a[nArr - i + 2] - 1, a[i], a[nArr - i + 1]);
| ~~~~~~~~~~~~~~^
| |
| ll {aka long long int}
In file included from gap.cpp:2:
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:88:47: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
88 | MinMax(pos + 1, pos + (1LL << i), s, t);
| ^
| |
| ll {aka long long int}
In file included from gap.cpp:2:
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:88:50: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
88 | MinMax(pos + 1, pos + (1LL << i), s, t);
| ^
| |
| ll {aka long long int}
In file included from gap.cpp:2:
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*);
| ^~~~~~~~~~