Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shopt -s expand_aliases
- if [ "$CODE_TYPE" == "CODEAPI_EXECUTE" ]; then
- alias solution='/tmp/Answer'
- else
- alias solution='stdbuf -e 0 -o 0 gdb --batch --return-child-result -ex "set logging redirect on" -ex "set logging file /proc/self/fd/2" -ex "set logging on" -ex "handle SIGSTOP noprint nostop" -ex "handle SIGCONT noprint nostop" -ex "set print thread-events off" -ex "file /tmp/Answer" -ex run -ex "backtrace 30" -ex continue'
- fi
- solution < in9.txt | compare out9.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement