Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inputs are present in a for loop #47

Open
Joyvin opened this issue Sep 19, 2023 · 2 comments
Open

Inputs are present in a for loop #47

Joyvin opened this issue Sep 19, 2023 · 2 comments

Comments

@Joyvin
Copy link

Joyvin commented Sep 19, 2023

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

@itsabishiek
Copy link

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
Copy link
Owner

Jaagrav commented Oct 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants