QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#204666#7567. Joining Catsucup-team988#Compile Error//C++143.0kb2023-10-07 13:37:232023-10-07 13:37:23

Details

answer.code: In function ‘int main()’:
answer.code:82:47: error: cannot bind non-const lvalue reference of type ‘int&’ to a value of type ‘short int’
   82 |             if(t <= k) chkmn(f[tl[l - 1][t]][r], t);
      |                              ~~~~~~~~~~~~~~~~~^
answer.code:39:17: note:   initializing argument 1 of ‘void chkmn(int&, int)’
   39 | void chkmn(int &x, int y) {
      |            ~~~~~^
answer.code:86:47: error: cannot bind non-const lvalue reference of type ‘int&’ to a value of type ‘short int’
   86 |             if(t <= k) chkmn(f[l][tr[r + 1][t]], t);
      |                              ~~~~~~~~~~~~~~~~~^
answer.code:39:17: note:   initializing argument 1 of ‘void chkmn(int&, int)’
   39 | void chkmn(int &x, int y) {
      |            ~~~~~^