/in/foo.cc: In function 'int main()':
/in/foo.cc:18:46: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL {aka long long int}' [-Wformat=]
else if(n==2)printf("%d",(LL)4*fp(3,m-1)%mod);
^
/in/foo.cc:19:48: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL {aka long long int}' [-Wformat=]
else if(n==3)printf("%d",(LL)112*fp(3,m-3)%mod);
^
/in/foo.cc:26:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL {aka long long int}' [-Wformat=]
else printf("%d",(LL)k*fp(3,m-n-1)%mod);
^