Main.cc: In function ‘int main()’: Main.cc:29:5: error: expected ‘;’ before ‘cout’ cout << mod_inverse(a, b) << endl; ^~~~