Please someone tell me why my code is not working! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please someone tell me why my code is not working!

I am trying to reverse a Linked list in c program but my code is not working please help me to fix it! Here's my code , MY CODE IS ONLY RUNNING IN MY LAPTOP ITS NOT WORKING IN SOLOLEARN I MY MOBILE:-- https://sololearn.com/compiler-playground/clDDBj66P0yX/?ref=app

21st Dec 2023, 5:30 PM
Vaibhav Pandey
9 Answers
+ 1
I see. Sorry for misleading the question. So there's some logic bug in the code.
26th Dec 2023, 3:43 PM
Celvien Kurniawan
Celvien Kurniawan - avatar
+ 4
your code is asking for inputs inside a for-loop. You can't do that here in Sololearn, where all inputs have to be provided before the program runs.
22nd Dec 2023, 8:46 AM
Bob_Li
Bob_Li - avatar
27th Dec 2023, 5:40 AM
Bob_Li
Bob_Li - avatar
0
Sorry for asking back. Do you use another compiler in your pc? (Like turboC)
22nd Dec 2023, 6:52 AM
Celvien Kurniawan
Celvien Kurniawan - avatar
0
Celvien Kurniawan No I use migw compiler and vs code for programming
22nd Dec 2023, 7:20 AM
Vaibhav Pandey
0
Well, this problem is probably caused by different compiler, i think. Idk the compiler used by Sololearn, but as long as i know. Every compiler that used by different app has some different format/setting although in some cases it's minor difference.
22nd Dec 2023, 8:31 AM
Celvien Kurniawan
Celvien Kurniawan - avatar
0
Bonjour comment allez vous Je voulais faire un projet en language C d'une tablette des enfants du primaire
23rd Dec 2023, 11:04 AM
Lamine Diakité
Lamine Diakité - avatar
0
Bob_Li Celvien Kurniawan I know the code does not run in SOLOLEARN but it does run in vs code by using mingw compiler but still it's not working as expected that's why I asked for help
26th Dec 2023, 12:50 PM
Vaibhav Pandey
0
Celvien Kurniawan Thanks bro for understanding and I found the problem, thankyou for the help btw.
26th Dec 2023, 5:33 PM
Vaibhav Pandey