Testcase1 :-wrong answer

https://ide.codingblocks.com/s/52263
Help Ramu

Hey shubham, check your code for this case
input:
1
100 100 8 100
3 5
7 94 12
100 1 47 0 42

your code’s output :
100

but the expected output is:
16

https://ide.codingblocks.com/s/52434
still the same problem

Hey Shubham, there is just a small mistake update your print statement as
cout<< min(sum+sum1, arr[3])<<endl; as you are supposed to print the minimum of these two.