Matrix Queries 1 (Hacker bocks)

Matrix Queries 1 (Hacker bocks)
I know that we have to construct a segment tree by making a new data type. But I keep getting error in the query section.