E.cpp: In function 'int main()':
E.cpp:53:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
53 | printf("%d\n", ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
E.cpp:54:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
54 | for(auto it : ans) printf("%d ", it); printf("\n");
| ^~~
E.cpp:54:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
54 | for(auto it : ans) printf("%d ", it); printf("\n");
| ^~~~~~
E.cpp:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d%d%d%d", &N, &M1, &M2, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E.cpp:20:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | for(int i=1; i<=M1; i++) scanf("%d", &A[i]), S[1][A[i]]=1;
| ~~~~~^~~~~~~~~~~~~
E.cpp:21:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | for(int i=1; i<=M2; i++) scanf("%d", &B[i]), S[2][B[i]]=1;
| ~~~~~^~~~~~~~~~~~~