dna.cpp: In function 'int main()':
dna.cpp:16:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
16 | if (cnt[a[r]] == req[a[r]]) cur++; r++;
| ^~
dna.cpp:16:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | if (cnt[a[r]] == req[a[r]]) cur++; r++;
| ^
dna.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | scanf("%d %d %d", &n, &k, &R);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
dna.cpp:10:27: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | for (auto &e: a) scanf("%d", &e);
| ~~~~~^~~~~~~~~~
dna.cpp:11:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | for (int i = 0; i < R; i++) scanf("%d %d", &x, &y), req[x] = y;
| ~~~~~^~~~~~~~~~~~~~~~~