xoranges.cpp: In function 'int main()':
xoranges.cpp:26:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
xoranges.cpp:30:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
xoranges.cpp:36:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d", &action);
| ~~~~~^~~~~~~~~~~~~~~
xoranges.cpp:40:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d %d", &i, &v);
| ~~~~~^~~~~~~~~~~~~~~~~
xoranges.cpp:45:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d %d", &l, &u);
| ~~~~~^~~~~~~~~~~~~~~~~