Main.cc: In function ‘mint solve(int, int)’:
Main.cc:191:10: error: missing template arguments before ‘pow_f’
Poly pow_f(f);
^~~~~
Main.cc:194:20: error: ‘pow_f’ was not declared in this scope
ans += g * pow_f;
^~~~~