HELP! Index out of bound in CSES-Path Queries

This is the question- CSES - Path Queries
My solution-

Please help me, Idk why i am getting index out of bound in line no. 79.
I did make euler tour 2 correctly(well i think) therefore its size was desired to be 2*NumberOfNodes
but its size is coming out to be less then that.

I tried but didn’t found any problem
Please help!!