foo.cpp:1:1: error: 'include' does not name a type
include <cstdio> include <cstring> include <cstdlib>
^
foo.cpp: In function 'int main()':
foo.cpp:15:14: error: 'scanf' was not declared in this scope
scanf("%d",&t);
^
foo.cpp:19:20: error: 'memset' was not declared in this scope
memset(f,0,sizeof f);
^
foo.cpp:21:82: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
for (int i=0;i<W;i++) for (int j=0;j<=n;j++) for (int k=0;k<=c;k++) if (j+k*(1<<i+1)>n) break;
^
foo.cpp:22:21: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:22:23: error: 'k' cannot be used as a function
else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:22:42: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:22:44: error: 'k' cannot be used as a function
else f[i+1][j+k(1<<i+1)]=(f[i+1][j+k(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:23:26: error: 'printf' was not declared in this scope
printf("%lld\n",f[W-1][n]);
^