tree.cpp:6:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable:4996)
^
tree.cpp: In function 'void un_check(int)':
tree.cpp:28:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < edge[w].size(); i++) {
^
tree.cpp: In function 'void labeling(int)':
tree.cpp:38:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < edge[w].size(); i++) {
^
tree.cpp: In function 'int main()':
tree.cpp:92:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ep[0][cut1] == edge[cut1].size() - 1) edge[cut1].pop_back();
^
tree.cpp:99:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ep[1][cut1] == edge[cut2].size() - 1) edge[cut2].pop_back();
^
tree.cpp:122:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (nowi == edge[noww].size()) break;
^
tree.cpp:129:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (nowi == edge[noww].size()) continue;
^
tree.cpp:136:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < done.size(); j++) is_gone[done[j]] = 0;
^
tree.cpp:52:5: warning: unused variable 'P' [-Wunused-variable]
int P;
^
tree.cpp:56:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &q);
^
tree.cpp:64:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &parent[i]);
^
tree.cpp:72:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &a, &b, &flag);
^