From f20c8bafd194be49c86cb87fd762371256cbf0ab Mon Sep 17 00:00:00 2001 From: ThreshMain Date: Mon, 15 Feb 2021 17:59:33 +0100 Subject: [PATCH] Fixed brainfuck transpiler to accept args --- lxc/executors/brainfuck | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lxc/executors/brainfuck b/lxc/executors/brainfuck index 7a82aa5..f03b43f 100755 --- a/lxc/executors/brainfuck +++ b/lxc/executors/brainfuck @@ -29,5 +29,8 @@ int main() { EOF timeout -s KILL 3 gcc -std=c11 -o binary code.c +# Merging args.args and stdin.stdin for emkc challenges +cat stdin.stdin >> args.args + # execution -timeout -s KILL 3 ./binary < args.args < stdin.stdin +timeout -s KILL 3 ./binary < args.args