Hi guys. I wrote my segment tree structure using static buffer in order not to use heap memory. Locally my code was compiling OK, but at Codeforces it wasn't. I'd be grateful if somebody could explain me what's the problem.
Here are links of my submissions. In first submission I had overloaded
new operator for my segment tree structure. In second submission I've written my own function, which returns
void*. Both submission I tried on all available GNU compilers, and any of them wasn't compiling. Third submission was sent using Microsoft C++ 2017 and it compiled fine.
P.S. I know that I could have written segment tree using arrays instead of pointers, but it's too easy and boring :D