0_0_29436631_25469.cpp: In function 'int main()':
0_0_29436631_25469.cpp:28:69: error: 'll' was not declared in this scope
f[i][j] = (f[i-1][min(m,j+k)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k)]+g[i-1][max(0,j-k)])%P;
^
0_0_29436631_25469.cpp:28:72: error: expected ')' before 'g'
f[i][j] = (f[i-1][min(m,j+k)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k)]+g[i-1][max(0,j-k)])%P;
^
0_0_29436631_25469.cpp:29:99: error: expected ')' before 'g'
g[i][j] = j>=1&&a[i][j]==a[i][j-1]?(f[i-1][min(m,j+k-1)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k-1)]+g[i-1][max(0,j-k)])%P:0;
^
0_0_29436631_25469.cpp:29:143: error: expected ':' before ';' token
g[i][j] = j>=1&&a[i][j]==a[i][j-1]?(f[i-1][min(m,j+k-1)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k-1)]+g[i-1][max(0,j-k)])%P:0;
^
0_0_29436631_25469.cpp:29:143: error: expected primary-expression before ';' token
0_0_29436631_25469.cpp:33:38: error: 'll' was not declared in this scope
REP(i,1,m) ans=(ans+f[n][i]-(ll)g[n][i])%P;
^
0_0_29436631_25469.cpp:33:41: error: expected ')' before 'g'
REP(i,1,m) ans=(ans+f[n][i]-(ll)g[n][i])%P;
^
|