Jaagrav / CodeX-API

The new version of CodeX API with it's backend, a lot of you wanted me to make the backend opensource, now it's ready to receive contributions from you. Thanks for being patient, more languages coming soon, happy hacking!
https://codex.jaagrav.in/
MIT License
193 stars 66 forks source link

Inputs are present in a for loop #47

Open Joyvin opened 1 year ago

Joyvin commented 1 year ago

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

itsabishiek commented 1 year ago

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.

Jaagrav commented 1 year ago

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.