What is wrong with this program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is wrong with this program?

So I found this program on the internet. It's to find the mode from a set of numbers that the user input, but something is wrong. https://code.sololearn.com/cz4Ngks7amt3/?ref=app

22nd Nov 2017, 4:46 AM
Hdpolover
Hdpolover - avatar
5 Answers
+ 2
Where did you run it? It is a Turbo C++ code. iostream.h, conio.h doesn't exist anymore.
22nd Nov 2017, 5:28 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 2
I'll post the updated version, as there are a lot of errors. Ill explain them in the code itself.
22nd Nov 2017, 5:29 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 2
https://code.sololearn.com/ccYfWbikc22g/?ref=app Here is the corrected version. But since there are a lot of input requirements, I suggest you run the code on an offline compiler for best results...
22nd Nov 2017, 5:37 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
0
how do I fix it?
22nd Nov 2017, 5:29 AM
Hdpolover
Hdpolover - avatar
0
Looking forward to it. Thank you.
22nd Nov 2017, 5:30 AM
Hdpolover
Hdpolover - avatar