This is output layout. Correct only . What you want?

Code:
asadulla ~/test> g++ temp7.cpp
execution gcc-3.3.1/g++ (gprs/pcusa_passport_sas)
asadulla ~/test> ./a.out
Enter your responses
10
20
Bad responce: 20
30
Bad responce: 30
40
Bad responce: 40
50
Bad responce: 50
1
2
3
4
5
6
7
8
9
10
11
Bad responce: 11
1
2
3
4


Rating        Number of Responces
------      -------------------
   1             2
   2             2
   3             2
   4             2
   5             1
   6             1
   7             1
   8             1
   9             1
  10             2