Problem gap
User dacashew
Submission Time 2023-01-02 20:08:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gap.cpp: In function ‘long long int findGap(long long int, long long int)’:
gap.cpp:20:15: error: invalid conversion from ‘long long int’ to ‘long long int*’ [-fpermissive]
20 | MinMax(l,r,mn,mx);
| ^~
| |
| long long int
In file included from gap.cpp:1:
gap.h:2:35: note: initializing argument 3 of ‘void MinMax(long long int, long long int, long long int*, long long int*)’
2 | void MinMax(long long, long long, long long*, long long*);
| ^~~~~~~~~~
gap.cpp:20:18: error: invalid conversion from ‘long long int’ to ‘long long int*’ [-fpermissive]
20 | MinMax(l,r,mn,mx);
| ^~
| |
| long long int
In file included from gap.cpp:1:
gap.h:2:47: note: initializing argument 4 of ‘void MinMax(long long int, long long int, long long int*, long long int*)’
2 |