In main you are assigning departure station and arrival station to the same variable:
printf( "Arrival Station:" );
scanf( "%d", &input );
printf("Depature Station:");
scanf("%d",&input); so you...