You are a support engineer investigating a reported bug in a legacy C program. The program is located at…
You are a support engineer investigating a reported bug in a legacy C program. The program is located at…: a task in repo2rlenv-tmax (Harbor dataset). The C program: 1. Reads signed 32-bit integers from /home/user/legacy diagnostics/input.dat 2. Computes a cumulative sum 3. Checks whether the…
The task
The C program: 1. Reads signed 32-bit integers from /home/user/legacy_diagnostics/input.dat 2. Computes a cumulative sum 3. Checks whether the cumulative sum is within the 'safe range' (-1000000000 to 1000000000) 4. Writes one line per input integer to /home/user/legacy_diagnostics/output.txt in the format: `INDEX…
Part of FineEnvs/repo2rlenv-tmax.