0_0_36131328_2156.cpp: In function 'int main()': 0_0_36131328_2156.cpp:48:33: error: 'qmi' was not declared in this scope res = (res + s[i] * qmi(n, j)) % p; ^