+ 1

Why it does not work?

Why it does not work? https://code.sololearn.com/cXwG1UsEp8Ok/?ref=app

21st Sep 2018, 2:29 PM
Maslov Denis
Maslov Denis - avatar
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.
21st Sep 2018, 3:02 PM
Shadow
Shadow - avatar
+ 1
Shadow thank you , Your advice realy helps me )))
21st Sep 2018, 3:33 PM
Maslov Denis
Maslov Denis - avatar