New course! Every coder should learn Generative AI!
Try a free lesson+ 1
My code has an error and I have no clue why. It works just fine and runs perfectly, but the error will not go away.
2 Answers
+ 3
You have one more
It has to be r = rand() % 3 + 1
and add srand(time(0)) as well
+ 1
In the scan function if num is not equal to 1 2 or 3 you dont return a value