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_22029162_28488.cpp: In function 'void solve()':
0_0_22029162_28488.cpp:174:44: error: no matching function for call to 'Max(int, LL)'
   eve[event_tot].l = Max(1, i - ans2[i] + 2);
                                            ^
0_0_22029162_28488.cpp:174:44: note: candidate is:
0_0_22029162_28488.cpp:18:27: note: template<class Tp> Tp Max(Tp, Tp)
 template <typename Tp> Tp Max(Tp x, Tp y) {return x > y ? x : y;}
                           ^
0_0_22029162_28488.cpp:18:27: note:   template argument deduction/substitution failed:
0_0_22029162_28488.cpp:174:44: note:   deduced conflicting types for parameter 'Tp' ('int' and 'long long int')
   eve[event_tot].l = Max(1, i - ans2[i] + 2);
                                            ^


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-06-15 07:44:19, Gzip enabled