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:38:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
38 | printf("%lld\n",ans);
| ~~~^ ~~~
| | |
| | int
| long long int
| %d
xoranges.cpp:19:7: 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:21:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~