Collection of numbers

Write a program to keep a collection of integer numbers, perhaps with repetitions, while performing the following operations:

Input

Input consists of several operations.

Output

For every query, the current greatest number. Print also an error line for each operation (except storing) when the collection is empty.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:03:47.515Z

© Jutge.org, 2006–2026.
https://jutge.org