foo.cpp: In function 'int main()':
foo.cpp:41:26: error: expected primary-expression before '?' token
memset(f,0,sizeof?f?);
^
foo.cpp:41:29: error: expected primary-expression before ')' token
memset(f,0,sizeof?f?);
^
foo.cpp:41:29: error: expected ':' before ')' token
foo.cpp:41:29: error: expected primary-expression before ')' token
foo.cpp:41:29: error: expected ':' before ')' token
foo.cpp:41:29: error: expected primary-expression before ')' token
foo.cpp:43: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:43: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:45:14: error: 'inti' 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:45: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:49: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:49: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:49: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:49: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:51:34: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld\n",f[W-1][n]);
^
foo.cpp:51:34: warning: too many arguments for format [-Wformat-extra-args]