You should consider most people here won't have programming IDEs readied up to compile your code. Unless you want them to do something else besides saying "uh, nice", it'd be a pretty good idea to post a compiled version.
Printable View
OlegL is banned :(.
Nope, not banned but disabled. Again. After his last thread in the BT section (which apparently got trashed), I'm not surprised.
I felt like compiling this:
The hell if I know what that line was doing there in the first place. Anyway, I removed it so here it is - all compiled and joyful: clickCode:In function 'int main()':
line 16 | error: 'time' was not declared in this scope
Maybe Windows compilers require adding one more header file to the program - <ctime>, but g++ compiler on linux and freebsd doesn't need that header to compile it. But I am not sure 'cause I didn't try to compile it with a windows compiler.