copypaste2.cpp: In function 'int main()':
copypaste2.cpp:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &K, &M);
~~~~~^~~~~~~~~~~~~~~~
copypaste2.cpp:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
copypaste2.cpp:22:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &tmp.a, &tmp.b, &tmp.c);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~