use test-gen.cpp to create test-case inputs.
a validator.cpp checks if the inputs of the problem are valid. you should write this file based on your problem. if inputs were valid you should print 0 to stdout, otherwise print 1.
write your solution in solution.cpp. you may assume that input to your code is given via stdin. also, print the desired output to stdout.
compile and run test-gen.cpp to create test-case inputs. then use the output-gen.sh to run the validator and generate output for test-case.
g++ -std=c++11 test-gen.cpp -o test-gen.exe
./test-gen.exe
bash output-gen.sh