Unfortunately there is no "right" or "wrong" way to eat on the trail. Everyone is different. Some folks like high carb, others carry more fat, a few carry almost no carbs, and protein intakes vary widely too. Length of trip is also a factor as on shorter trips you don't have to worry so much about balancing vitamins, minerals and fibre. Longer trips these factors become more important, as does variety.
A very safe combo I would recommend is something like a zone diet of 30:40:30 calories from fat:carbs:protein. This will top up your glycogen stores to see you through the night (from carbs), plus give you enough protein to rebuild any damage to muscles and organs, and a dose of fat to keep you warm through the night.
An example we sometimes eat would be pasta with rehydrated turkey spam (dried at home), plus some parmesan cheese. Amounts depend on your calorie needs, but read the packages to work out how many grams/ounces of each you need to get ~ 30:40:30