RUNTIME error in CUBES

Problem link : CUBES

My code : CUBES

Because when you are reading values, you have to use

scanf ("%d", &y);

instead of

scanf ("%d", y);
1 Like

Line 10 should be scanf("%d",&y); and not scanf("%d",y);. add the ampersand(&) to y

it is “ampersand”

1 Like
//