Problem link : CUBES
My code : CUBES
Because when you are reading values, you have to use
scanf ("%d", &y);
instead of
scanf ("%d", y);
Line 10 should be scanf("%d",&y); and not scanf("%d",y);. add the ampersand(&) to y
it is “ampersand”