menesinis_bilietas.cpp: In function 'void dfs(int)':
menesinis_bilietas.cpp:15:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a[x].size(); ++i)
~~^~~~~~~~~~~~~
menesinis_bilietas.cpp: In function 'int main()':
menesinis_bilietas.cpp:54:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < v.size(); ++i)
~~^~~~~~~~~~
menesinis_bilietas.cpp:67:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s[i].size() == k - 1)
~~~~~~~~~~~~^~~~~~~~
menesinis_bilietas.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
menesinis_bilietas.cpp:33:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d %c", &x, &y, &ty);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~