Inputting the linked list

I am attaching my code I think there is a mistake in inputlist function plz help me to correct it

Hey @coderajay03
What is the issue ?
Its working perfectly on my side .

i give it input but it keeps taking input doesn’t return anything

Whare are u running ur code ?

codeblocks ide on my system

yeah just saw working on coding blocks online ide weird!

Try pressing enter multiple times when u want to stop ,otherwise try using scanf instead of cin>>d

It must be a compiler specific issue
On the ide above u can give custom input and see the output ,Here i tried it on random data : https://ide.codingblocks.com/s/368001

1 Like

tried that but none of them worked

It must be compiler specific problem
Its working fine on my side as well
Dont worry about it
Generally we will be taking input until -1 is encountered .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.