+ 2

Please help

I am starting to learn c++ and I tried making this game called "mastermind", I don't know why it's not working. If someone can help me that will be appreciated. Thanks in advance. Here is the code: https://code.sololearn.com/cudCLpD8p0bE/#cpp In case you don't know what "mastermind" is: https://en.wikipedia.org/wiki/Mastermind_(board_game)

27th Dec 2017, 8:56 PM
Aleksa Stancic
Aleksa Stancic - avatar
1 Antwort
+ 3
Hi, you would need to add this at the top to utilise rand() and srand(): #include <stdlib.h> The code no longer errors but still times out. As to why it times out, I don't have enough c++ experience to help but would guess a loop is stuck somewhere.
27th Dec 2017, 9:26 PM
Duncan
Duncan - avatar