Hello guys!
Today I'm gonna share with you my code that can help you test your solutions for interactive problems. The checker creates two named pipes, then calls the child process and replaces 0/1 file descriptors to communicate with your solution using this two named pipes.
Here is sample task that I used in my checker: Ehab and another another xor problem
You can check how this works with correct and incorrect solutions: Incorrect — Correct
This checker works on Ubuntu, and I'm not sure if on the other OS it also works. Please, fell free to comment and have a nice day ;)