gap.cpp: In function 'll findGap(int, int)':
gap.cpp:110:25: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
110 | MinMax(0, 1e18, mn, mx);
| ^~
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:110:29: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
110 | MinMax(0, 1e18, mn, mx);
| ^~
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:115:36: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
115 | MinMax(i, i + average, a, b);
| ^
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:115:39: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
115 | MinMax(i, i + average, a, b);
| ^
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:121:23: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
121 | MinMax(i, mx, a, b);
| ^
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:121:26: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
121 | MinMax(i, mx, a, b);
| ^
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:131:26: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
131 | MinMax(l, r, mn, mx);
| ^~
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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:131:30: error: invalid conversion from 'll' {aka 'long long int'} to 'long long int*' [-fpermissive]
131 | MinMax(l, r, mn, mx);
| ^~
| |
| ll {aka long long int}
In file included from gap.cpp:93:
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: In function 'void setIO(const string&)':
gap.cpp:89:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
89 | freopen((str + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gap.cpp:90:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | freopen((str + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~