Ha.. same prob (i think) to what I had.
Firstly, are you sure it's compiling?
But... if you're seeing the black box flash it means that it's running and closing.
Best thing to do is look at the thread Close on Exit (4th from top of this forum) that should give you all your configuration settings.
Also, seeing that you're running out of time, if you find that that is taking too long or not working, insert:
system("pause"
;
just above your line:
return 0;
at the end of your code.
What that does is before closing the console it displays "Press any key to continue. . ." which is basically the same result as all the configuration changes you'll need to make.
Hope this helps, and hope you get through the work in time.
Good luck
-Valkeye