fil.cpp:5:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning (disable: 4996)
fil.cpp: In function 'void dfs1(int, int)':
fil.cpp:13:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G[pos].size(); i++) dfs1(G[pos][i].first, dep + G[pos][i].second);
~~^~~~~~~~~~~~~~~
fil.cpp: In function 'void dfs2(int, int, int)':
fil.cpp:19:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < I[pos].size(); i++) dfs2(root, I[pos][i].first, dep + I[pos][i].second);
~~^~~~~~~~~~~~~~~
fil.cpp: In function 'int main()':
fil.cpp:54:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos1 < E2.size() && E2[pos1] == cl) F2[pos1].push_back(j);
~~~~~^~~~~~~~~~~
fil.cpp:59:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos1 < E1.size() && E1[pos1] == cl) F1[pos1].push_back(j);
~~~~~^~~~~~~~~~~
fil.cpp:64:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < E1.size(); i++) {
~~^~~~~~~~~~~
fil.cpp:66:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < F1[i].size(); j++) used[F1[i][j]] = true;
~~^~~~~~~~~~~~~~
fil.cpp:69:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < G[j].size(); k++) used[G[j][k].first] = true;
~~^~~~~~~~~~~~~
fil.cpp:74:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < E2.size(); i++) {
~~^~~~~~~~~~~
fil.cpp:76:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < F2[i].size(); j++) used[F2[i][j]] = true;
~~^~~~~~~~~~~~~~
fil.cpp:79:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < G[j].size(); k++) used[G[j][k].first] = true;
~~^~~~~~~~~~~~~
fil.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &N, &M, &K, &S); S++;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
fil.cpp:25:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int p, l; scanf("%d%d", &p, &l); l++;
~~~~~^~~~~~~~~~~~~~~~