cats.cpp: In function 'int main()':
cats.cpp:12:21: error: 'min' was not declared in this scope; did you mean 'main'?
12 | x %= (1ll << min(Q, 61ll));
| ^~~
| main
cats.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
cats.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%lld %lld %lld",&x,&l,&n);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~