examination.cpp: In function 'int main()':
examination.cpp:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
examination.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d %d", &mat, &in);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
examination.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d %d %d", &mat, &in, &s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~