Can anybody find my mistake at this -> http://www.e-olimp.com/problems/477 problem??
My code:
#include <stdio.h>
#include <vector>
#include <algorithm>
using namespace std;
vector<int>v;
int n,i,j;
main ()
{
scanf ("%d",&n);
for (i=0;i*i*i<=n;i++)
v.push_back(i);
for (i=0;i<v.size();i++)
for (j=i;j<v.size();j++)
if (v[i]*v[i]*v[i]+v[j]*v[j]*v[j]==n)
{printf ("%d %d\n",v[i],v[j]);break;}
return 0;
}