i m using turbo c++...whatever the compiler u use for c..u wnt get the error as far as my code is concerned...
try this:-

(ptr->info)=(x*temp) + (ptr->info)

if still u get error then i will upload the c file in rapidshare...inform me asap becoz i m astounded by the fact that u got error..i have checked my code 10 more times but getting the code running for all input sample...nd one more thing this program is based on singly linked list...if u want the same program using doubly linked list then that also i can upload for u...i kept the basic concept while designing the code...IT WORKS FINE!!