Arrangement of the compartments in the railcar