0
It suppose to work?
https://code.sololearn.com/cqIq1ZO6kPb6/?ref=app Time limit... :(
4 Answers
+ 11
Time limit is imposed to allow the equitable sharing of server resources.
You may run this code on your computer.
+ 11
do{
guess = (rand()%1);
guessTimes++;
} while (guess != pin[y]);
this section of the code would probably take too long.
You could probably limit the rand function to operate between 0 and 9 as pin[y] should only take a single integer value (or I am misreading your intent)
But I am unsure if it will still execute in a short enough period
+ 5
You posted this question twice, please remove one
https://www.sololearn.com/discuss/1154209/?ref=app
0
@jay Yea i got it.....
I mean by looking at the code i made mistakes?