I wrote a code and I have some errors that I have no idea how to fix.
Write a program that accepts input like the program in Display 7.8
and that outputs a bargraph like the one in that display except your
program will output the bars vertically rather than horizontally.
A two-dimensional array may be useful
Line 25 is not compatible with line 13. In the definition inputsales takes two integer arrays as parameters, while on line 25 you pass an integer array and an integer (not array)
You are getting this because <cmath> already has a function called "round", which takes a double as the sole parameter value. The way to solve this is either to use the "round" already supplied by <cmath>, or to rename your "round" function to be something else. Of course, you could also just remove <cmath> altogether and write your own "floor" function.