Accepted
/in/foo.cc: In function 'int main()':
/in/foo.cc:38:71: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n",fac[n]*inv(fac[m])%mo*inv(fac[n-m])%mo*f[n-m]%mo);
^