amusementpark.cpp: In function 'int main()':
amusementpark.cpp:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
14 | for(i=1;i<b;i<<=1) g[i]=0; f[0]=1;
| ^~~
amusementpark.cpp:14:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
14 | for(i=1;i<b;i<<=1) g[i]=0; f[0]=1;
| ^
amusementpark.cpp:29:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
29 | printf("%d",1LL*f[b-1]*m%md*i2%md);
| ~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
amusementpark.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | scanf("%d%d",&n,&m); b=1<<n;
| ~~~~~^~~~~~~~~~~~~~
amusementpark.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | scanf("%d%d",&u,&v);
| ~~~~~^~~~~~~~~~~~~~