CodeX-API
CodeX-API copied to clipboard
Inputs are present in a for loop
Inputs are present in a for loop so i cant hardcode them, what can i do?
Facing the same issue and many data structures also not working, like linkedlist, interfaces. It can able to execute only simple programs. Kindly fix it.
For multiple inputs, like taking inputs within a loop, you can pass values by separating them using \n
See below payload,
{
"code": "#include <stdio.h>\n\nvoid main() {\n printf(\"Hello World\");\n}",
"language": "c",
+ "input": "5\n6\n7"
}
Lmk if this solves your issues. Otws will get in touch with you folks and discuss this further to properly evaluate the issue.