foo.cc: In function 'int main()':
foo.cc:25:9: error: 'memset' was not declared in this scope
25 | memset(treevalue,0,sizeof(treevalue));
| ^~~~~~
foo.cc:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
foo.cc:40:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
40 | for(p=i+1;p<j;++p)
| ^~~
foo.cc:45:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
45 | if(treevalue[i][j]<(treevalue[i][j-1]+value[j])){
| ^~
[Hydro](https://hydro.ac)提供评测服务