copypaste2.cpp: In function 'int main()':
copypaste2.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |     scanf("%d%d%s%d", &k, &m, s, &n);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
copypaste2.cpp:12:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     for (int i = 0; i < n; i++) scanf("%lld%lld%lld", a + i, b + i, c + i);
      |                                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~