PLEASE EXPLAIN THE OUTPUT OF THIS CODE?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

PLEASE EXPLAIN THE OUTPUT OF THIS CODE??

https://code.sololearn.com/c85k9qU77B5z The code doesn't work but I copied it from a question in the Play section of the app. Why doesn't it work?

30th Apr 2018, 12:32 PM
Jackson Meddows
Jackson Meddows - avatar
3 Answers
+ 2
You forgot to add the <vector> header file. Don't forget to give credit to the original author ;) https://code.sololearn.com/cC26zIwI4s59/?ref=app edit: Jackson Meddows my pleasure ^_^
30th Apr 2018, 12:37 PM
Rahul George
Rahul George - avatar
+ 2
you're forgotten to include the STL vector
30th Apr 2018, 12:39 PM
MO ELomari
+ 1
Rahul George Thanks a lot for your answer!
30th Apr 2018, 12:53 PM
Jackson Meddows
Jackson Meddows - avatar