E.cpp: In function 'void print(int)':
E.cpp:38:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", V1.size());
~~~~~~~~~^
E.cpp:39:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int &t: V1) printf("%d ", t); printf("\n");
^~~
E.cpp:39:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int &t: V1) printf("%d ", t); printf("\n");
^~~~~~
E.cpp:41:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", V2.size());
~~~~~~~~~^
E.cpp: In function 'int main()':
E.cpp:47:15: warning: unused variable 'x' [-Wunused-variable]
int i, j, k, x;
^
E.cpp:49:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m1, &m2, &t);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E.cpp:54:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", D[i]);
~~~~~^~~~~~~~~~~~
E.cpp:60:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", D[i] + 1);
~~~~~^~~~~~~~~~~~~~~~