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))); }
^
|