gap.cpp: In function 'long long int cal1(int)':
gap.cpp:22:25: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
22 | MinMax(tl,tr,a[l],a[r]);
| ~~~^
| |
| long long int
In file included from gap.cpp:14:
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:22:30: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
22 | MinMax(tl,tr,a[l],a[r]);
| ~~~^
| |
| long long int
In file included from gap.cpp:14:
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:19:8: warning: unused variable 'mn' [-Wunused-variable]
19 | ll mn=0,mx=0;
| ^~
gap.cpp:19:13: warning: unused variable 'mx' [-Wunused-variable]
19 | ll mn=0,mx=0;
| ^~
gap.cpp: In function 'long long int cal2(int)':
gap.cpp:32:18: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
32 | MinMax(tl,tr,mn,mx);
| ^~
| |
| long long int
In file included from gap.cpp:14:
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:32:21: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
32 | MinMax(tl,tr,mn,mx);
| ^~
| |
| long long int
In file included from gap.cpp:14:
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:37:22: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
37 | MinMax(rl,rr,cl,cr);
| ^~
| |
| long long int
In file included from gap.cpp:14:
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:37:25: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
37 | MinMax(rl,rr,cl,cr);
| ^~
| |
| long long int
In file included from gap.cpp:14:
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*);
| ^~~~~~~~~~