Your
dist()
function is expecting an array of 3 doubles. Assuming your input variables are declared like so:
double brick_v[3];
double metal_v[3];
You should call
dist()
like so:
dist(brick_v,metal_v);
Note that the return value of
dist()
is a double (one number) and not an array of doubles, so your variable asd should be filled like this:
double asd = dist(brick_v,metal_v);