synchronization.cpp: In function 'void dfs0(int, int)':
synchronization.cpp:12:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < adj[u].size(); i++) {
~~^~~~~~~~~~~~~~~
synchronization.cpp:20:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < Time[u].size(); i++) {
~~^~~~~~~~~~~~~~~~
synchronization.cpp: In function 'void dfs1(int, int)':
synchronization.cpp:38:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < Time[u].size(); i++) {
~~^~~~~~~~~~~~~~~~
synchronization.cpp:51:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < adj[u].size(); i++) {
~~^~~~~~~~~~~~~~~
synchronization.cpp: In function 'int main()':
synchronization.cpp:60:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &N, &M, &Q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
synchronization.cpp:63:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int u, v; scanf("%d %d", &u, &v);
~~~~~^~~~~~~~~~~~~~~~~
synchronization.cpp:73:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int e; scanf("%d", &e);
~~~~~^~~~~~~~~~
synchronization.cpp:84:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int u; scanf("%d", &u);
~~~~~^~~~~~~~~~