I'm trying to compile my program to make check if I coded everything to do as it should, but I get Build Failed every time and I do not know why. Could someone help me figure out why it won't compile?
It doesn’t solve your problem but your program compiles and runs on the shell here. That’s by pressing the gear wheel at the top right of your code text box.
On line 13 of the error message the error indication is you have two files in the project which have a main() If that’s the case then you will need to remove one, but not delete it.
/cygdrive/c/Users/Mouse/Documents/NetBeansProjects/Mod1InPrePost/main.cpp:116: multiple definition of `main'
build/Debug/Cygwin-Windows/Stacks.o:/cygdrive/c/Users/Mouse/Documents/NetBeansProjects/Mod1InPrePost/Stacks.cpp:21: first defined here
You probably haven't made a separate "project" for this assignment.