robots.cpp:27:1: error: 'vector' does not name a type; did you mean 'qecvt_r'?
vector< pair<int,int> > chestii[MAX_COST];
^~~~~~
qecvt_r
robots.cpp: In function 'void push(int, int, int)':
robots.cpp:33:2: error: 'chestii' was not declared in this scope
chestii[cost].push_back({x,y});
^~~~~~~
robots.cpp: In function 'void solve(int, int)':
robots.cpp:38:16: error: 'chestii' was not declared in this scope
for(auto pos:chestii[cost]){
^~~~~~~
robots.cpp:54:3: error: 'chestii' was not declared in this scope
chestii[cost].clear();
^~~~~~~
robots.cpp: In function 'std::pair<int, int> get_end(int, int, int)':
robots.cpp:72:2: error: 'vector' was not declared in this scope
vector< pair<pair<int,int>,int> > V = {make_pair(make_pair(i,j),k)};
^~~~~~
robots.cpp:72:2: note: suggested alternative: 'qecvt_r'
vector< pair<pair<int,int>,int> > V = {make_pair(make_pair(i,j),k)};
^~~~~~
qecvt_r
robots.cpp:72:34: error: expected primary-expression before '>' token
vector< pair<pair<int,int>,int> > V = {make_pair(make_pair(i,j),k)};
^
robots.cpp:72:36: error: 'V' was not declared in this scope
vector< pair<pair<int,int>,int> > V = {make_pair(make_pair(i,j),k)};
^
robots.cpp:103:14: error: unable to deduce 'auto&&' from 'V'
for(auto it:V){
^
robots.cpp: In function 'int main()':
robots.cpp:111:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d\n",&n,&w,&h);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
robots.cpp:114:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(C[i] + 1,505,f);
~~~~~^~~~~~~~~~~~~~~~