here is link to my code:
2 test case failed
MAXIMUM SUM QUERY PROBLEM
Hello @Abhi_jeet007, the two testcases are getting runtime error and that is because they are going out of indexing.
Just increase the size of the arrays they will work fine.
#define MAX 100005
Use this instead of 54000 all the test cases will get passed.