A sister in the 11th grade wrote a boundary control on computer science. I learned about one task and about his decision ...
The task: Dan array of numbers. It is necessary to write (in Russian) an algorithm for finding the sum of positive elements of the array, which are located after the maximum element.
The decision , which itself was evaluated in zero points: ')
Going through all the elements: If the current is greater than zero, add it to the "amount". If the current largest of those that have already been enumerated, then reset the "amount".
I wonder how it was tested, evaluated and by whom? It seems that this answer simply did not coincide with the standard school decision, which, in the opinion of the inspection commission, is the only correct one.