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