QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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.
詳細信息
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)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~