gap.cpp: In function 'long long int sol1(int)':
gap.cpp:10:11: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
10 | #define s second
| ^~~~~~
| |
| long long int
gap.cpp:28:22: note: in expansion of macro 's'
28 | MinMax(mn,mx,s,t);
| ^
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:28:24: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
28 | MinMax(mn,mx,s,t);
| ^
| |
| 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: In function 'long long int sol2(int)':
gap.cpp:10:11: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
10 | #define s second
| ^~~~~~
| |
| long long int
gap.cpp:36:25: note: in expansion of macro 's'
36 | ll s,t;MinMax(mn,mx,s,t);
| ^
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:36:27: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
36 | ll s,t;MinMax(mn,mx,s,t);
| ^
| |
| 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:43:31: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
43 | MinMax(s,s+tt*add,cmn,cmx);
| ^~~
| |
| 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:43:35: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
43 | MinMax(s,s+tt*add,cmn,cmx);
| ^~~
| |
| 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:47:38: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
47 | MinMax(s+(tt-1)*add,s+tt*add,cmn2,cmx2);
| ^~~~
| |
| 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:47:43: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
47 | MinMax(s+(tt-1)*add,s+tt*add,cmn2,cmx2);
| ^~~~
| |
| 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*);
| ^~~~~~~~~~