sauga.cpp: In function 'void dfs(int)':
sauga.cpp:18:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a[x].size(); ++i)
~~^~~~~~~~~~~~~
sauga.cpp: In function 'void dfs1(int)':
sauga.cpp:31:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < b[x].size(); ++i)
~~^~~~~~~~~~~~~
sauga.cpp: In function 'int main()':
sauga.cpp:85:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a[x].size(); ++j)
~~^~~~~~~~~~~~~
sauga.cpp:44:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &tt, &n, &ss);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sauga.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
~~~~~^~~~~~~~~~
sauga.cpp:52:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~