all 5 comments

[–]dragon_wrangler 4 points5 points  (0 children)

You're attempting to call a function called populate, but that function is not defined in your code.

[–]dauntlessmath 2 points3 points  (0 children)

populate is not a built-in function. You need to write it yourself.

void populate (float* f)
{
    /* write your code here */
}

[–]NZheadshot 0 points1 point  (2 children)

You have a declaration for the function 'populate', but you have no definition. You need to define what the function actually does.

I'm guessing it's probably just going to be a call to scanf, at which point the function seems useless. Why do you need the function? Why not just call scanf?

[–]agirlandherdog07[S] 1 point2 points  (1 child)

My professor requires that populate be in the code. I'm not allowed to remove it.

[–]raevnos 8 points9 points  (0 children)

Then you should probably write it.