sightseeing.cpp: In function 'void bfs()':
sightseeing.cpp:16:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<gr[v].size();++i)
^
sightseeing.cpp: In function 'int main()':
sightseeing.cpp:45:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<e[i].size();++j)
^
sightseeing.cpp:28:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&q);
^
sightseeing.cpp:32:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&x,&y,&w);
^
sightseeing.cpp:57:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^