0

Can anyone help me out with my c program , I'm facing a huge problem in running my program.

newbie here https://code.sololearn.com/c1Cfn4VEQrb2/?ref=app

3rd Dec 2017, 2:23 PM
Carlos Tin
Carlos Tin - avatar
5 Respuestas
+ 6
int no_adult,no_children,others,code_traintype,no_adult,no_children,others,code_traintype,year,month,date; In this line, you declared twice 4 variables
3rd Dec 2017, 3:12 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 5
With this change it work (not in sololearn because scanf, gets, getchar, ... are not recognized as input but it stills work)
3rd Dec 2017, 3:14 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 4
You did not share it :/
3rd Dec 2017, 2:55 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
sorry , I shared , here you go
3rd Dec 2017, 3:08 PM
Carlos Tin
Carlos Tin - avatar
0
the train system can only run until the user key in the arrival , after that , everything just crash
3rd Dec 2017, 3:14 PM
Carlos Tin
Carlos Tin - avatar