Getting correct answer when testing for custom input but wrong for submission 2 4


#1

Getting correct answer when testing for custom input but wrong for submission 2 4 14 87 36 23 37 59 21 68.
This gives 155 when testing with custom input but 119 when I submit it.


#2

try clearing any vector if you have used in your program