Can anyone help me with this problem I Volume of revolution from ACM ICPC 2014 Dhaka site. My idea was to consider the false volume as slice numbered polaygonal pyramids and calculated their volume. The true volume will come from integration of pi*y(x)^2. But I got wrong answer. Here is my code Thanks is Advance.