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_36621743_28350.cpp: In function 'void shai(long long int)':
0_0_36621743_28350.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_36621743_28350.cpp:61:61: note: candidates are:
0_0_36621743_28350.cpp:16:3: note: template<class T> T mul(T, T)
 T mul(T a, T b) {
   ^
0_0_36621743_28350.cpp:16:3: note:   template argument deduction/substitution failed:
0_0_36621743_28350.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_36621743_28350.cpp:20:3: note: template<class T, class ... Args> T mul(T, T, Args ...)
 T mul(T a, T b, Args... args) {
   ^
0_0_36621743_28350.cpp:20:3: note:   template argument deduction/substitution failed:
0_0_36621743_28350.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_36621743_28350.cpp: In function 'long long int Sum(long long int)':
0_0_36621743_28350.cpp:70:59: error: no matching function for call to 'sub(int, long long int)'
 long long Sum(long long n) { return mul(x, sub(1, fp(x, n)), Inv(sub(1, x))); }
                                                           ^
0_0_36621743_28350.cpp:70:59: note: candidate is:
0_0_36621743_28350.cpp:12:3: note: template<class T> T sub(T, T)
 T sub(T a, T b) {
   ^
0_0_36621743_28350.cpp:12:3: note:   template argument deduction/substitution failed:
0_0_36621743_28350.cpp:70:59: note:   deduced conflicting types for parameter 'T' ('int' and 'long long int')
 long long Sum(long long n) { return mul(x, sub(1, fp(x, n)), Inv(sub(1, x))); }
                                                           ^
0_0_36621743_28350.cpp:70:74: error: no matching function for call to 'sub(int, long long int&)'
 long long Sum(long long n) { return mul(x, sub(1, fp(x, n)), Inv(sub(1, x))); }
                                                                          ^
0_0_36621743_28350.cpp:70:74: note: candidate is:
0_0_36621743_28350.cpp:12:3: note: template<class T> T sub(T, T)
 T sub(T a, T b) {
   ^
0_0_36621743_28350.cpp:12:3: note:   template argument deduction/substitution failed:
0_0_36621743_28350.cpp:70:74: note:   deduced conflicting types for parameter 'T' ('int' and 'long long int')
 long long Sum(long long n) { return mul(x, sub(1, fp(x, n)), Inv(sub(1, x))); }
                                                                          ^


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:41, Gzip enabled