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:17:22: error: expected ';' before 'for'
17 | scanf("%d %d",&n,&q)
| ^
| ;
18 | for(int i = 0;i<n;i++){
| ~~~
xoranges.cpp:18:16: error: 'i' was not declared in this scope
18 | for(int i = 0;i<n;i++){
| ^
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)
| ~~~~~^~~~~~~~~~~~~~~