
Write a program that prints every subset whose sum matches a target integer.
./subset_sum_lines 6 1 4 5 | cat -eExpected result
1 5$For your own tracking. Tests grade your code.
./subset_sum_lines 0 7 | cat -eExpected result
$Expected files
subset_sum_lines.cAllowed functions
atoiprintffprintfwritemalloccallocreallocfree
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that prints every subset whose sum matches a target integer.
./subset_sum_lines 6 1 4 5 | cat -eExpected result
1 5$For your own tracking. Tests grade your code.
./subset_sum_lines 0 7 | cat -eExpected result
$Expected files
subset_sum_lines.cAllowed functions
atoiprintffprintfwritemalloccallocreallocfree
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.