xoranges.cpp:5:9: warning: ISO C++11 requires whitespace after the macro name
5 | #define ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
| ^~~~~~~~
xoranges.cpp: In function 'int main()':
xoranges.cpp:36:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
36 | printf("%lld\n",ans);
| ~~~^ ~~~
| | |
| | int
| long long int
| %d
xoranges.cpp:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d %d",&n,&q);
| ~~~~~^~~~~~~~~~~~~~~
xoranges.cpp:19:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
19 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~