matryoshka.cpp: In function 'void dfs(int)':
matryoshka.cpp:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vt[here].size(); i++) {
~~^~~~~~~~~~~~~~~~~
matryoshka.cpp:24:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vt[here].size(); i++) {
~~^~~~~~~~~~~~~~~~~
matryoshka.cpp:32:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vt[here].size(); i++) {
~~^~~~~~~~~~~~~~~~~
matryoshka.cpp: In function 'int main()':
matryoshka.cpp:42:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n,&m);
~~~~~^~~~~~~~~~~~~~~~
matryoshka.cpp:45:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a[i].first, &a[i].second);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matryoshka.cpp:59:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &q, &w);
~~~~~^~~~~~~~~~~~~~~~~