road.cpp: In function 'void dfs(int, int)':
road.cpp:35:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[v].size(); i++){
^
road.cpp: In function 'void get(int, int, int, int)':
road.cpp:50:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[v].size(); i++){
^
road.cpp:62:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < dd.size(); i++){
^
road.cpp:70:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < dd.size(); i++){
^
road.cpp:78:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < dd.size(); i++){
^
road.cpp:86:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < dd.size(); i++){
^
road.cpp:103:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < dd.size(); i++){
^
road.cpp:108:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 2; i < dd.size(); i++){
^
road.cpp:113:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[v].size(); i++){
^
road.cpp: In function 'void solve()':
road.cpp:132:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
road.cpp:134:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^