this code is showing run time error for even small values and is not taking any input on coding blocks ide …
plz help.
https://ide.codingblocks.com/s/46992
Showing run time error in the histogram area question
Hey Abhishek, check the constraints carefully it is mentioned that Height of each bar in histogram <= 10^9, so you have to take data type accordingly, as the numbers are large so they will not be in range of int, change the data type from int to long long int.