gap.cpp: In function 'long long int findgap(long long int, long long int)':
gap.cpp:44:32: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
44 | MinMax(lmn+1,lmx-1,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:44:35: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
44 | MinMax(lmn+1,lmx-1,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:55:30: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
55 | MinMax(cur+1,cur+ans,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:55:33: error: invalid conversion from 'long long int' to 'long long int*' [-fpermissive]
55 | MinMax(cur+1,cur+ans,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: In function 'void setIO(std::string)':
gap.cpp:33:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | freopen((name+".in").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gap.cpp:34:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | freopen((name+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gap.cpp: In function 'long long int findgap(long long int, long long int)':
gap.cpp:60:1: warning: control reaches end of non-void function [-Wreturn-type]
60 | }
| ^