advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:19:5: error: 'map' was not declared in this scope
19 | map<pi,int,greater<pi> >st;
| ^~~
advisor.cpp:6:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
5 | #include<algorithm>
+++ |+#include <map>
6 | #define ep emplace
advisor.cpp:19:11: error: expected primary-expression before ',' token
19 | map<pi,int,greater<pi> >st;
| ^
advisor.cpp:19:12: error: expected primary-expression before 'int'
19 | map<pi,int,greater<pi> >st;
| ^~~
advisor.cpp:23:23: error: 'prv' was not declared in this scope
23 | nx[i]=v[C[i]],prv[v[C[i]]]=i,v[C[i]]=i;
| ^~~
advisor.cpp:25:9: error: 'st' was not declared in this scope; did you mean 'std'?
25 | st[v[i],i]=i;
| ^~
| std
advisor.cpp:29:17: error: 'st' was not declared in this scope; did you mean 'it'?
29 | auto it=st.find(pi(i,C[i]));
| ^~
| it
advisor.cpp:38:16: error: 'st' was not declared in this scope; did you mean 't'?
38 | for(auto t:st)
| ^~
| t