0_0_39056705_18550.cpp: In function 'int query(int, int, int)':
0_0_39056705_18550.cpp:56:17: error: 'resSum' was not declared in this scope
56 | resSum+=tree[i].sum;
| ^~~~~~
0_0_39056705_18550.cpp:57:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
57 | return ;
| ^~~~~~
0_0_39056705_18550.cpp: In function 'int main()':
0_0_39056705_18550.cpp:78:41: error: 'resSum' was not declared in this scope
78 | printf("%lld\n",resSum);
| ^~~~~~
|