I am trying to create a question on pointers in C, hence I believe the student's and expected answers need to be executed within the same .c file.
So, my idea is to combine the student's and expected answers into a .c file, compile, execute, then compare the first few lines with the last few lines of output (following the guide in git).
The program seems to be working fine, with all the answers marked correct. However, I am getting the "Your code must pass all tests to earn any marks. Try again." message and incorrect answer.
Anything I did wrong question setup? Or is there a better way to achieve this?
Attached is XML file of question (removed the pointers part).