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_36621765_19184.cpp: In function 'void shai(long long int)':
0_0_36621765_19184.cpp:61:61: error: no matching function for call to 'mul(long long int&, int)'
   for (long long i = 1; i <= N; ++i) f[i] = sub(mul(ph[i], 2), 1);
                                                             ^
0_0_36621765_19184.cpp:61:61: note: candidates are:
0_0_36621765_19184.cpp:16:3: note: template<class T> T mul(T, T)
 T mul(T a, T b) {
   ^
0_0_36621765_19184.cpp:16:3: note:   template argument deduction/substitution failed:
0_0_36621765_19184.cpp:61:61: note:   deduced conflicting types for parameter 'T' ('long long int' and 'int')
   for (long long i = 1; i <= N; ++i) f[i] = sub(mul(ph[i], 2), 1);
                                                             ^
0_0_36621765_19184.cpp:20:3: note: template<class T, class ... Args> T mul(T, T, Args ...)
 T mul(T a, T b, Args... args) {
   ^
0_0_36621765_19184.cpp:20:3: note:   template argument deduction/substitution failed:
0_0_36621765_19184.cpp:61:61: note:   deduced conflicting types for parameter 'T' ('long long int' and 'int')
   for (long long i = 1; i <= N; ++i) f[i] = sub(mul(ph[i], 2), 1);
                                                             ^


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-29 16:13:42, Gzip enabled