foo.cpp: In function 'int main()':
foo.cpp:17:20: error: 'sizeoff' was not declared in this scope
memset(f,0,sizeoff);
^
foo.cpp:18:14: error: 'inti' was not declared in this scope
for (inti=0;i<=c;i++) if (i>n) break; else f[0][i]=1;
^
foo.cpp:18:21: error: 'i' was not declared in this scope
for (inti=0;i<=c;i++) if (i>n) break; else f[0][i]=1;
^
foo.cpp:19:21: error: 'i' was not declared in this scope
for (inti=0;i<W;i++) for (int j=0;j<=n;j++) for (int k=0;k<=c;k++)
^
foo.cpp:21:9: error: 'elsef' was not declared in this scope
elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:21:15: error: 'i' was not declared in this scope
elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:21:20: error: 'j' was not declared in this scope
elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:21:22: error: 'k' was not declared in this scope
elsef[i+1][j+k*(1<<i+1)]=(f[i+1][j+k*(1<<i+1)]+f[i][j])%LM;
^
foo.cpp:22:34: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld\n",f[W-1][n]);
^
foo.cpp:22:34: warning: too many arguments for format [-Wformat-extra-args]