Cats don’t metabolize sugar well, it is not good for them, they also can’t taste it, so won’t enjoy it either.
Sugar free, flavor free,(they won’t appreciate most human flavors) pedialyte is good for a dehydrated cat or dog, or one that has recently vomited. Though in emergencies of course you probably want the saline injected under the skin since it takes time to go through the system and cat might vomit again before it can.
Similarly, for b12, you can give nutritional yeast. Cats can make their own b12 but older weaker cats might not produce enough. And emergencies you want a b12 shot or something if needed.
So yeah, bring the cat to the vet (obviously already over with considering how old this is) And beware vets insistent that your pet need die, too much experience with pets giving bad prognoses and wanting to kill my cats unnecessarily. One cat had distemper, one emergency call for like a grand or what ever latter where I have to meet the vet with a cab outside the clinic and stand in the parking lot as the vet boldly proclaims that they never survive distemper. I had to insist on the saline under the skin treatment. 15 years latter, she is still alive. (and survived a second vet wanting to kill her too)