QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#223907 | #7521. Find the Gap | ucup-team425# | Compile Error | / | / | C++20 | 6.8kb | 2023-10-22 20:42:59 | 2023-10-22 20:42:59 |
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:200:30: error: no matching function for call to ‘ckmax(db&, T)’ 200 | ckmax(dist2[type], dot(proj, proj)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:35:24: note: candidate: ‘template<class T> bool ckmax(T&, const T&)’ 35 | template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; } | ^~~~~ answer.code:35:24: note: template argument deduction/substitution failed: answer.code:200:30: note: deduced conflicting types for parameter ‘const T’ (‘long double’ and ‘T’ {aka ‘double’}) 200 | ckmax(dist2[type], dot(proj, proj)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~