0_0_39222312_1622.cpp: In function 'int query(int, int, int, int, int, int)':
0_0_39222312_1622.cpp:63:56: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
63 | return (pr - pl + 1) * (pow(tree[p], k)%mod);
| ~~~~~~~~~~~~~~~^~~~
| | |
| | const int
| __gnu_cxx::__promote<double>::__type {aka double}
|