prog.cpp:1:1: error: no template named 'set'
set<int> cat; // store info about the cat
^
prog.cpp:2:1: error: no template named 'vector'
vector<vector<int>>v; // graph
^
prog.cpp:2:8: error: use of undeclared identifier 'vector'
vector<vector<int>>v; // graph
^
prog.cpp:2:18: error: expected '(' for function-style cast or type construction
vector<vector<int>>v; // graph
~~~^
prog.cpp:4:1: error: no template named 'vector'
vector<int>visited; // keep track of visited nodes , have size (n)
^
prog.cpp:15:18: error: use of undeclared identifier 'v'
for(auto itr:v[start]){
^
6 errors generated.