QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#216494#7567. Joining Catsucup-team1828#Compile Error//C++145.6kb2023-10-15 19:06:162023-10-15 19:06:17

Details

answer.code: In function ‘int main()’:
answer.code:150:34: error: no matching function for call to ‘umn(int&, ll&)’
  150 |                 if (sid <= n) umn(dp[_sumxext[sid][i - 1]][j], sid);
      |                               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:59:10: note: candidate: ‘template<class T> void umn(T&, const T&)’
   59 | tpl void umn(T &x, const T &y) { x = min(x, y); }
      |          ^~~
answer.code:59:10: note:   template argument deduction/substitution failed:
answer.code:150:34: note:   deduced conflicting types for parameter ‘const T’ (‘int’ and ‘ll’ {aka ‘long long int’})
  150 |                 if (sid <= n) umn(dp[_sumxext[sid][i - 1]][j], sid);
      |                               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:155:34: error: no matching function for call to ‘umn(int&, ll&)’
  155 |                 if (sid <= n) umn(dp[i][sumxext[sid][j + 1]], sid);
      |                               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:59:10: note: candidate: ‘template<class T> void umn(T&, const T&)’
   59 | tpl void umn(T &x, const T &y) { x = min(x, y); }
      |          ^~~
answer.code:59:10: note:   template argument deduction/substitution failed:
answer.code:155:34: note:   deduced conflicting types for parameter ‘const T’ (‘int’ and ‘ll’ {aka ‘long long int’})
  155 |                 if (sid <= n) umn(dp[i][sumxext[sid][j + 1]], sid);
      |                               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~