QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#216494 | #7567. Joining Cats | ucup-team1828# | Compile Error | / | / | C++14 | 5.6kb | 2023-10-15 19:06:16 | 2023-10-15 19:06:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~