Recently, I've been dealing with this problem Here
I have the same code submitted in 3 different compiler (C++ 14, C++ 17, C++ 20), you can check out all those below:
As you can see, C++ 14 is the balanced one and that's why I usually use this compiler for my submissions. What do you guys think about this ?
Where you learned this way to code centroid decomposition?
I learned from usaco and changed a little bit. Is there any problem with it ?
Maybe I would use c++17 for structured binding and c++20 for 64 bit