F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30073815_27166.cpp: In function 'void Main()':
0_0_30073815_27166.cpp:88:32: error: no matching function for call to 'chkmax(double&, float&)'
    chkmax(ans,a[(i+R)*M+j+R].re);
                                ^
0_0_30073815_27166.cpp:88:32: note: candidate is:
0_0_30073815_27166.cpp:17:30: note: template<class T> bool chkmax(T&, const T&)
 template<class T>inline bool chkmax(T &a,T const &b){
                              ^
0_0_30073815_27166.cpp:17:30: note:   template argument deduction/substitution failed:
0_0_30073815_27166.cpp:88:32: note:   deduced conflicting types for parameter 'const T' ('double' and 'float')
    chkmax(ans,a[(i+R)*M+j+R].re);
                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-05 23:16:28, Gzip enabled