bitaro.cpp: In function 'void sqrt_dfs(int)':
bitaro.cpp:23:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < redge[u].size(); i++) {
~~^~~~~~~~~~~~~~~~~
bitaro.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < redge[u].size(); i++) {
~~^~~~~~~~~~~~~~~~~
bitaro.cpp:39:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (ans.size() < SQRT and x < sqrt_furthest[v].size() and y < copy_ans.size()) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:39:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (ans.size() < SQRT and x < sqrt_furthest[v].size() and y < copy_ans.size()) {
~~^~~~~~~~~~~~~~~~~
bitaro.cpp:57:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (ans.size() < SQRT and x < sqrt_furthest[v].size()) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:65:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (ans.size() < SQRT and y < copy_ans.size()) {
~~^~~~~~~~~~~~~~~~~
bitaro.cpp: In function 'void naive_dfs(int, std::vector<int>&)':
bitaro.cpp:85:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < redge[u].size(); i++) {
~~^~~~~~~~~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:130:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < sqrt_furthest[u].size(); j++) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:102:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &u, &v);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:115:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &u);
~~~~~^~~~~~~~~~
bitaro.cpp:117:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cnt);
~~~~~^~~~~~~~~~~~
bitaro.cpp:120:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &disallowed[j]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~