0_0_19150783_22238.cpp: In function 'void solve()':
0_0_19150783_22238.cpp:9:27: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_19150783_22238.cpp:13:34: error: 'max' was not declared in this scope
dp[1]=max(dp[1],a[i]*a[i]);
^
0_0_19150783_22238.cpp:19:64: error: 'min' was not declared in this scope
if((l!=1)&&(r==n||a[l-1]>a[r+1]))Min=min(Min,a[--l]);
^
0_0_19150783_22238.cpp:20:36: error: 'min' was not declared in this scope
else Min=min(Min,a[++r]);
^
|