#C13138. Log File Error Filter

    ID: 42643 Type: Default 1000ms 256MiB

Log File Error Filter

Log File Error Filter

You are given a log file with multiple entries. The first line of the input contains a single integer (N) denoting the number of log entries that follow. Each of the next (N) lines is a log entry. Your task is to print each log entry that contains the substring (\texttt{ERROR}). The matching should be case sensitive. This problem tests your ability to process input line by line and perform simple string searches.

inputFormat

The input is read from standard input. The first line contains a positive integer (N) representing the number of log entries. Each of the following (N) lines contains a single log entry, which may include various log levels such as INFO, WARNING, DEBUG, and ERROR.

outputFormat

For each log entry that contains the substring "ERROR", print the entry on a new line in the order they appear in the input. If no entry contains "ERROR", do not print anything.## sample

5
INFO: This is an info log.
ERROR: This is an error log.
INFO: This is another info log.
ERROR: Another error log.
INFO: Final info log.
ERROR: This is an error log.

ERROR: Another error log.

</p>