HF RL Explorer

Task: Fix the Unsigned Integer Bug in String Length Comparison

Task: Fix the Unsigned Integer Bug in String Length Comparison: a task in Terminal-Lego-15k (Harbor dataset). A C program contains a helper function strlonger that is intended to return 1 (true) when the first string s1 is strictly longer than the second string s2 , and 0 (false) otherwise…

The task

A C program contains a helper function `strlonger` that is intended to return `1` (true) when the first string `s1` is strictly longer than the second string `s2`, and `0` (false) otherwise. However, the current implementation has a subtle bug: it returns `1` (true) even when `s1` is **shorter** than `s2`.

Part of PrimeIntellect/Terminal-Lego-15k.