HF RL Explorer

Task: Debug a C++ Program That Only Crashes When Compiled with Optimizations

Task: Debug a C++ Program That Only Crashes When Compiled with Optimizations: a task in Terminal-Lego-15k (Harbor dataset). You have a C++ program that works correctly when compiled without optimizations ( -O0 , typical of debug builds) but crashes or produces incorrect results when compiled with…

The task

You have a C++ program that works correctly when compiled without optimizations (`-O0`, typical of debug builds) but crashes or produces incorrect results when compiled with optimizations (`-O2`, typical of release builds). This is a classic scenario caused by undefined behavior — most commonly out-of-bounds array…

Part of PrimeIntellect/Terminal-Lego-15k.