debug error : max must have union class struct types
<p>this is my code:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
class Sp
{ 
private :
    int a;
    int b;
public:
    Sp(int x = 0,int y = 0) : a(x), b(y) { };  

    int max(int x,int y);
};

int Sp::max(int a,int b) {  return (a &gt; b ? a : b); };

int main()
{    
    int q,q1;
    cin &gt;&gt; q &gt;&gt;q1;
    Sp *mm = new Sp(q,q1);  
    cout &lt;&lt; mm.max(q,q1);
    return 0;
}
</code></pre>
