postmen.cpp: In function 'int dfs(int)':
postmen.cpp:11:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;ptr[v] < grafo[v].size();ptr[v]++){
~~~~~~~^~~~~~~~~~~~~~~~~
postmen.cpp: In function 'int main()':
postmen.cpp:47:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<resposta.size();i++){
~^~~~~~~~~~~~~~~~
postmen.cpp:38:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&N,&M);
~~~~~^~~~~~~~~~~~~~~
postmen.cpp:40:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&e1[i],&e2[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~