0_0_17949804_19598.cpp: In function 'long long int combination::C(const long long int&, const long long int&, const long long int*, const long long int*, const long long int&)':
0_0_17949804_19598.cpp:42:33: error: invalid initialization of reference of type 'long long int&' from expression of type 'const long long int'
int cnt = cnt_fac(a, mod) - cnt_fac(b, mod) - cnt_fac(a - b, mod);
^
0_0_17949804_19598.cpp:33:13: note: in passing argument 1 of 'int combination::cnt_fac(long long int&, const long long int&)'
inline int cnt_fac(long long &a, const long long &mod) {
^
0_0_17949804_19598.cpp:42:51: error: invalid initialization of reference of type 'long long int&' from expression of type 'const long long int'
int cnt = cnt_fac(a, mod) - cnt_fac(b, mod) - cnt_fac(a - b, mod);
^
0_0_17949804_19598.cpp:33:13: note: in passing argument 1 of 'int combination::cnt_fac(long long int&, const long long int&)'
inline int cnt_fac(long long &a, const long long &mod) {
^
0_0_17949804_19598.cpp:42:65: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
int cnt = cnt_fac(a, mod) - cnt_fac(b, mod) - cnt_fac(a - b, mod);
^
0_0_17949804_19598.cpp:33:13: note: in passing argument 1 of 'int combination::cnt_fac(long long int&, const long long int&)'
inline int cnt_fac(long long &a, const long long &mod) {
^
|