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 'int main()':
sauga.cpp:65:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a[x].size(); ++j)
~~^~~~~~~~~~~~~
sauga.cpp:32: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:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
~~~~~^~~~~~~~~~
sauga.cpp:40:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~