vidk and vidd should be printed with a decimal point. In exercise vidk should be printed out as 2.80 but I get 2 and I cant figure out where is the problem
fr << viso << is viso gyventoju gatveje << " ";
fr <<
??? This isn't valid C++ code and won't compile. It also looks like you're modified the code in your first post following comments from lastchance. Please don't. Post a new entry with the revised code so that anyone reading these posts can follow.