+ 1
Why it does not work?
Why it does not work? https://code.sololearn.com/cXwG1UsEp8Ok/?ref=app
2 Answers
+ 1
1. You didn't include <cstdlib> for rand() (which isn't absolutely required, but I'd go safe there).
2. Your very first for loop goes all the way to line 38, while it only should wrap line 10.
Fixing those two points made the code work for me.
+ 1
Shadow thank you , Your advice realy helps me )))