As I said in your previous thread:
Line 53: You're trying to assign a pointer (ptr) to an int (loc). Those are different types and that is not a valid assignment.
If you want to return an item's ordinal location within the list, you're going to need to count the number of nodes you traverse and return that count.
Or if you want to return a pointer to the item in the list, then you need to change the return type of your function so that it returns a pointer, not an int.
AbstractionAnon has covered your problem, but as a little side tip, please learn to indent and format your code effectively. It makes it so much easier for yourself and us to understand.