0_0_15320116_27205.cpp:8:34: error: 'maxn' was not declared in this scope
void sol(vector<int> arr, int dp[maxn]) {
^
0_0_15320116_27205.cpp:11:9: error: 'maxn' was not declared in this scope
int dp1[maxn], dp2[maxn];
^
0_0_15320116_27205.cpp:11:20: error: 'maxn' was not declared in this scope
int dp1[maxn], dp2[maxn];
^
0_0_15320116_27205.cpp:13:10: error: 'maxn' was not declared in this scope
int same[maxn];
^
0_0_15320116_27205.cpp: In function 'int main()':
0_0_15320116_27205.cpp:27:18: error: 'dp1' was not declared in this scope
sol(arr, dp1);
^
0_0_15320116_27205.cpp:32:18: error: 'dp2' was not declared in this scope
sol(arr, dp2);
^
0_0_15320116_27205.cpp:35:46: error: 'same' was not declared in this scope
ans = max(ans, dp1[i] + dp2[i] - same[i]);
^
|