dna.cpp: In function 'int main()':
dna.cpp:25:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | if(j >= v[a[l-1]].size()) break;
| ~~^~~~~~~~~~~~~~~~~~~
dna.cpp:8:20: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | int n, k, m; scanf("%d %d %d", &n, &k, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
dna.cpp:9:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | for(int i = 0; i<n; ++i) scanf("%d", a+i), v[a[i]].push_back(i);
| ~~~~~^~~~~~~~~~~
dna.cpp:10:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | for(int i = 0, x; i<m; ++i){ scanf("%d", &x); scanf("%d", req+x); s.insert(x);}
| ~~~~~^~~~~~~~~~
dna.cpp:10:53: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | for(int i = 0, x; i<m; ++i){ scanf("%d", &x); scanf("%d", req+x); s.insert(x);}
| ~~~~~^~~~~~~~~~~~~
dna.cpp:11:20: warning: 'mn' may be used uninitialized in this function [-Wmaybe-uninitialized]
11 | int l = 0, r = n, mn;
| ^~