dna.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main()
| ^~~~
dna.cpp: In function 'int main()':
dna.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d%d%d",&t,&a,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~
dna.cpp:13:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d",&arr[i]);
| ~~~~~^~~~~~~~~~~~~~
dna.cpp:18:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d%d",&m,&n);
| ~~~~~^~~~~~~~~~~~~~