Hi guys,
I have problem with initialization of insert sort.Actually I´m trying to do it for the first time so I have here maybe more bucks,but the point is that in initialization I can´t get the first int,I think I must address it by a pointer but I don´t fully understand them yet so can you give me please someone any solution how to do it?
The problem is that in main you are calling "insertionsort" with two numbers, but the "insertionsort"function is defined as taking an "array" and an "int". The error messag is saying that it can not convert a single number, 10, to an array.
When the function is called the calling parameters need to match the parameters in the function definition or the prototype.
To fix this you will need to define an array in main an pass this as your first parameter when you call the "insertionsort" function.