0_0_21377005_11977.cpp: In function 'void work()':
0_0_21377005_11977.cpp:18:36: error: 'min' was not declared in this scope
minN[i][j]=min(minN[i][j-1],a[j]);
^
0_0_21377005_11977.cpp:19:36: error: 'max' was not declared in this scope
maxN[i][j]=max(maxN[i][j-1],a[j]);
^
0_0_21377005_11977.cpp:45:55: error: 'max' was not declared in this scope
ans=max(ans,f[1][i-1]+f[j+1][ii-1]+f[jj+1][n]+2);
^
0_0_21377005_11977.cpp:47:2: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_21377005_11977.cpp:47:13: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
|