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:47:21: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
if(j+k*(1<<i+1)>n) break;
^
foo.cpp:49:30: 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:49:52: 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: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]