CodeX-API icon indicating copy to clipboard operation
CodeX-API copied to clipboard

Inputs are present in a for loop

Open Joyvin opened this issue 2 years ago • 2 comments

Inputs are present in a for loop so i cant hardcode them, what can i do?

Joyvin avatar Sep 19 '23 11:09 Joyvin

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.

itsabishiek avatar Oct 01 '23 15:10 itsabishiek

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.

Jaagrav avatar Oct 01 '23 15:10 Jaagrav