Hey everyone i am new to SPOJ and i still have some question about submitting my solution. So to write my programs i am using VS Code as my editor and compile the programs using g++ compiler on Ubuntu.I am trying to solve this problem http://www.spoj.com/problems/ONP/ .
To solve the problem i created 3 different files Stack.h Stack.cpp and main.cpp . Using g++ compiler i compiled the whole project and got an executable file: a.out but the problem is when i upload a.out as my solution it says that there is an compilation error. Does anyone know whats the problem? Does SPOJ only accept 1 non compiled file?
I smushed the code in 1 .cpp file and i submitted it,and it accepted that as my solution,but as a newcomer it is not comfortable to put my whole data structure and main program in 1 .cpp file.
Thank you for reading all of this