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