bosses.cpp: In function 'void bfs()':
bosses.cpp:53: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:59: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:61: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:63:4: note: in expansion of macro 'sd'
sd(node);
^~