ambigious problem statement in PUCK TCFS15P

is this given in question that all the queries of type " M L R → print the answer to sum of counts for trees in range [L, R] " will be given (at the end) after all other queries as there are some solution which got AC by this approach
for example SOLUTION