Reverse linked list

why is it giving compiler error

hello @nishiumrao
wait i m checking

image
it should be prev only