QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#839795#4. Gapdaoquanglinh2007Compile Error//C++20423b2025-01-02 09:40:262025-01-02 09:40:26

Details

answer.code: In function ‘long long int findGap(int, int)’:
answer.code:16:41: error: invalid conversion from ‘long long int’ to ‘long long int*’ [-fpermissive]
   16 |                         MinMax(l, r, a[i], a[N-i]);
      |                                      ~~~^
      |                                         |
      |                                         long long int
In file included from answer.code: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*);
      |                                   ^~~~~~~~~~
answer.code:16:49: error: invalid conversion from ‘long long int’ to ‘long long int*’ [-fpermissive]
   16 |                         MinMax(l, r, a[i], a[N-i]);
      |                                            ~~~~~^
      |                                                 |
      |                                                 long long int
gap.h:2:47: note:   initializing argument 4 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*);
      |                                               ^~~~~~~~~~