dna.cpp: In function 'int main()':
dna.cpp:20:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | scanf("%d%d%d", &n, &k, &r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
dna.cpp:21:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | for (i=1; i<=n; i++) scanf("%d", d+i);
| ~~~~~^~~~~~~~~~~
dna.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%d%d", &b, &q);
| ~~~~~^~~~~~~~~~~~~~~~