Why does my interactive problem fail with string queries but works with direct integer inputs?
Problem link = Link
I’m solving an interactive problem, and I’m encountering an issue where my solution works perfectly when I use direct integer inputs/outputs for queries. However, when I attempt to format the query using string concatenation (e.g., “? ” + to_string(x) + ” ” + to_string(y)), the solution fails.