Implement a command-line tool /app/sched that manages named time intervals and answers one query: given a…
Implement a command-line tool /app/sched that manages named time intervals and answers one query: given a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract (strict) : - Input is read from the file given as the sole positional argument (e.g., sched…
The task
**Input contract (strict)**: - Input is read from the file given as the sole positional argument (e.g., `sched input.txt`). If no argument, read from stdin. If the file does not exist or cannot be read, print `FILE ERROR` to stderr and exit with code 2. - Each non-empty, non-comment line is either an ADD or a QUERY.…
Part of ai-and/termgrade-environments.