0_0_21656058_24804.cpp:3:8: error: 'maxn' does not name a type
const maxn = 5*1e3+10;
^
0_0_21656058_24804.cpp:4:10: error: 'maxn' was not declared in this scope
short dp[maxn][maxn] , n , len;
^
0_0_21656058_24804.cpp:4:16: error: 'maxn' was not declared in this scope
short dp[maxn][maxn] , n , len;
^
0_0_21656058_24804.cpp:5:8: error: 'maxn' was not declared in this scope
char s[maxn];
^
0_0_21656058_24804.cpp: In function 'bool is_ok(int)':
0_0_21656058_24804.cpp:27:16: error: 'dp' was not declared in this scope
if(dp[i][k+mid-1] - dp[j+1][k-1] <= n)
^
0_0_21656058_24804.cpp: In function 'int main()':
0_0_21656058_24804.cpp:48:22: error: 's' was not declared in this scope
scanf(" %s", s);
^
0_0_21656058_24804.cpp:53:13: error: 'dp' was not declared in this scope
dp[i][i] = 0;
^
0_0_21656058_24804.cpp:62:17: error: 'dp' was not declared in this scope
dp[i][j] = dp[i+1][j-1] + abs(s[i]-s[j]);
^
|