bosses.cpp: In function 'void bfs()':
bosses.cpp:48:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < adj[node].size(); i++) if(! visited[adj[node][i]]) to_visit.push(mp(adj[node][i],(x.S)+1));
~~^~~~~~~~~~~~~~~~~~
bosses.cpp: In function 'int main()':
bosses.cpp:12:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define sd(x) scanf("%d",&x)
~~~~~^~~~~~~~~
bosses.cpp:54:2: note: in expansion of macro 'sd'
sd(n);
^~
bosses.cpp:12:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define sd(x) scanf("%d",&x)
~~~~~^~~~~~~~~
bosses.cpp:56:3: note: in expansion of macro 'sd'
sd(k);
^~
bosses.cpp:12:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define sd(x) scanf("%d",&x)
~~~~~^~~~~~~~~
bosses.cpp:58:4: note: in expansion of macro 'sd'
sd(node);
^~