foo.cc: In function ‘int main()’:
foo.cc:21:39: error: ‘j’ was not declared in this scope
21 | for(int k=i;k<j;k++)
| ^
foo.cc:24:36: error: ‘j’ was not declared in this scope
24 | if(s[i]==s[j])
| ^
foo.cc:25:73: error: expected ‘}’ before ‘)’ token
25 | f[i][j]=min({f[i][j],f[i+1][j],f[i][j-1]);
| ~ ^
foo.cc:25:73: note: probably missing a comma or an operator before
foo.cc:26:18: error: expected ‘)’ before ‘cout’
26 | }
| ^
| )
27 |
28 | cout<<f[0][n-1];
| ~~~~
foo.cc:25:44: note: to match this ‘(’
25 | f[i][j]=min({f[i][j],f[i+1][j],f[i][j-1]);
| ^
foo.cc:31:2: error: expected ‘}’ at end of input
31 | }
| ^
foo.cc:9:1: note: to match this ‘{’
9 | {
| ^