0_0_26027705_14657.cpp: In function 'int main()':
0_0_26027705_14657.cpp:18:36: error: no matching function for call to 'pow_mod(int&, int&, long long int)'
printf("%d\n", pow_mod(n, n, 10LL));
^
0_0_26027705_14657.cpp:18:36: note: candidate is:
0_0_26027705_14657.cpp:5:3: note: template<class T> T pow_mod(T, T, T)
T pow_mod(T a, T b, T c){
^
0_0_26027705_14657.cpp:5:3: note: template argument deduction/substitution failed:
0_0_26027705_14657.cpp:18:36: note: deduced conflicting types for parameter 'T' ('int' and 'long long int')
printf("%d\n", pow_mod(n, n, 10LL));
^
|