Hi, I've submitted the solution for the problem PLANEDIV, but am unable to figure out the problem in my code as it is getting rejected. I've created a set object and have stored all the line coefficients in the set. I've also overloaded the < and > operators of the set, such that if there is a repeated line with different a,b and c, it will not be added to the set. Then I use a map to count the maximum number of lines in the set with the same slope. But still getting wrong answer. Any help would be appreciated. Here is the link to my solution: Here is a link for the problem statement: Thanks in Advance asked 18 Dec '15, 00:34

There are two mistakes in your code : 2) You don't take gcd of A,B as well as C. The number by which you have to divide the coefficients is gcd(A,B,C) not just gcd(A,B). answered 20 Dec '15, 07:39
