We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
There are errors in the main function.Took a long time to debug this not realising there was an error in the way the inputs are taken.
Replace the line:vector> guesses(q); with vector> guesses(g);.
This should fix the error
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Story of a Tree
You are viewing a single comment's thread. Return to all comments →
There are errors in the main function.Took a long time to debug this not realising there was an error in the way the inputs are taken. Replace the line:vector> guesses(q); with vector> guesses(g);. This should fix the error