Four people have died and 18 others have tested positive for H1N1 in Nainital district amid a surge in cases in Uttarakhand.