0_0_39382100_18655.cpp:6:1: error: 'map' does not name a type
6 | map<int,int>mp;
| ^~~
0_0_39382100_18655.cpp: In function 'int main()':
0_0_39382100_18655.cpp:16:9: error: 'mp' was not declared in this scope; did you mean 'm'?
16 | mp.clear();
| ^~
| m
0_0_39382100_18655.cpp:22:9: error: 'memset' was not declared in this scope
22 | memset(dp,0,sizeof dp);
| ^~~~~~
0_0_39382100_18655.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<stdio.h>
+++ |+#include <cstring>
2 | using namespace std;
0_0_39382100_18655.cpp:29:32: error: 'max' was not declared in this scope; did you mean 'maxn'?
29 | dp[j][i+j]=max(dp[j][i+j],dp[j+1][i+j-1]+2);
| ^~~
| maxn
0_0_39382100_18655.cpp:34:32: error: 'max' was not declared in this scope; did you mean 'maxn'?
34 | dp[j][i+j]=max(dp[j][i+j],dp[j][k]+dp[k+1][i+j]);
| ^~~
| maxn
0_0_39382100_18655.cpp:41:37: error: 'max' was not declared in this scope; did you mean 'maxn'?
41 | dp[j][i+j]=max(dp[j][i+j],dp[j+1][k-1]+dp[k+1][i+j-1]+3);
| ^~~
| maxn
|