0_0_38564468_20862.cpp: In function 'void solve()': 0_0_38564468_20862.cpp:28:31: error: 'gcd' was not declared in this scope int res = (qsm(a, gcd(m, n)) - 1 + k) % k; ^