There is a problem with compiling C++ by HP-UNIX aCC, and there is a problem with the input characters of cin plastic variables.
Plus cin. Please clear () before using CIN. You can also add a test statement. CIN){ CIN . clear(); }
Or allocate memory cin.getline () to get numbers from a line of characters in strtoi ().