Problem with if statements

Im currently trying to figure out how to correct my if statement in my second for loop to figure out the maximum bids from an input file. I cannot for the life of me figure how to phrase it. If someone could help me figure this out I would give them a medal. My output is almost correct.


The input file looks something like this.
5
4
100 500 250 300
1
700
3
300 150 175
2
920 680
8
20 10 15 25 50 30 19 23

1
2
3
4
5
  /* 
 */

/
}
Last edited on
You have one line of code missing.
At line 27, insert this:
1
2
 
        max_amount = 0;
Ill send you your medal in the mail. Thanks man I really appreciate it
Topic archived. No new replies allowed.