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:11:14: error: 'scanf' was not declared in this scope
scanf("%d",&t);
^
foo.cpp:15:20: error: 'memset' was not declared in this scope
memset(f,0,sizeof f);
^
foo.cpp:17: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:18: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:18: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:18: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:18: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:19:26: error: 'printf' was not declared in this scope
printf("%lld\n",f[W-1][n]);
^