[C Language] guys.. What's wrong with my code? (First maximum number + second maximum number)
Problem : Format Input Input starts with an integer T, describing the number of test cases. Each test case starts with an integer N, the number of boxes that Lili has. The next line will contain N numbers Vi, each of them describe the value of the coin in the i-th box. It is guaranteed that the value will always be between -1000000 and 1000000. Format Output For each test case, output a single line consisting of âCase #X: Yâ where X is the test case number and Y is the maximum value Lili can get by choosing exactly 2 boxes. Constraints ⢠1 ⤠T ⤠10 ⢠2 ⤠N ⤠1, 000, 000 ⢠â1, 000, 000 ⤠Vi ⤠1, 000, 000 Sample Input (standard input) 3 5 1 2 3 4 5 4 4 4 4 4 3 10 1 2 Sample Output (standard output) Case #1: 9 Case #2: 8 Case #3: 12 *So, this problem want to sum the first and second maximum number *Idk why my code doesn't work at third sample case and some number, help me pleasee https://code.sololearn.com/cQy1ymCse096/?ref=app