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