simurgh.cpp: In function 'std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)':
simurgh.cpp:9:5: error: 'map' was not declared in this scope
map<int, bool> usedh;
^~~
simurgh.cpp:9:9: error: expected primary-expression before 'int'
map<int, bool> usedh;
^~~
simurgh.cpp:11:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < u.size() ; i++ ){
~~^~~~~~~~~~
simurgh.cpp:20:9: error: 'memset' was not declared in this scope
memset(used, -1, sizeof used);
^~~~~~
simurgh.cpp:31:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < ed[x].size() ; i++ ){
~~^~~~~~~~~~~~~~
simurgh.cpp:43:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int j = 0 ; j < ed[i].size() ; j++ ){
~~^~~~~~~~~~~~~~
simurgh.cpp:49:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int j = 0 ; j < ed[i].size() ; j++ ){
~~^~~~~~~~~~~~~~
simurgh.cpp:55:13: error: 'sort' was not declared in this scope
sort( impo[j].begin(), impo[j].end() );
^~~~
simurgh.cpp:55:13: note: suggested alternative: 'short'
sort( impo[j].begin(), impo[j].end() );
^~~~
short