xoranges.cpp: In function 'int main()':
xoranges.cpp:19:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
xoranges.cpp:20:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | for (i=1; i <= n; ++i) scanf("%d", &c[i]);
| ~~~~~^~~~~~~~~~~~~
xoranges.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d%d%d", &quer, &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~