Build a command-line tool /app/rangeq that processes a binary log of range-query operations and outputs a…
Build a command-line tool /app/rangeq that processes a binary log of range-query operations and outputs a…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input: A single binary file path given as the only argument…
The task
**Input:** A single binary file path given as the only argument. The file contains a sequence of records in this exact format: - 1 byte: operation type (`0x01` = ADD, `0x02` = DELETE, `0x03` = QUERY) - 4 bytes: `int32` (big-endian) start of interval - 4 bytes: `int32` (big-endian) end of interval (exclusive) - 8…