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_24955163_32097.cpp: In function 'long long int so(const std::vector<long long int>&, const int&)':
0_0_24955163_32097.cpp:39:31: error: no matching function for call to 'quickmul(long long int&, const int&)'
   long long inc=quickmul(sum,n);
                               ^
0_0_24955163_32097.cpp:39:31: note: candidate is:
0_0_24955163_32097.cpp:19:10: note: template<class T> T quickmul(const T&, T)
 inline T quickmul(const T &a,T p){
          ^
0_0_24955163_32097.cpp:19:10: note:   template argument deduction/substitution failed:
0_0_24955163_32097.cpp:39:31: note:   deduced conflicting types for parameter 'T' ('long long int' and 'int')
   long long inc=quickmul(sum,n);
                               ^


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-11-22 23:50:05, Gzip enabled