my code pass only one test case
i am not able to get error
code link:https://ide.codingblocks.com/s/177649
2 test cases fail
pls check ur code for the i/p:
4
1 4 3 4
O/P Should be 13
subarr - > subarr len – > possible subarr
1 - > 1 -> (1 )
1 4 - > 2+1 --> (14,4)
1 4 3 - > 3 + 2+1 --> (143,43,4)
4 3 - > 2 + 1 - > (43,4)
total -->> 1+3+6+3=13
hope this will help u
pls rate my work