paint.cpp: In function 'void input()':
paint.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
paint.cpp:18:33: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | for(int i=0; i<m; i++) scanf("%d", &arr[i]);
| ~~~~~^~~~~~~~~~~~~~~
paint.cpp: In function 'void operate()':
paint.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d", &q);
| ~~~~~^~~~~~~~~~
paint.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d %d %d", &p, &p, &c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~