Ad
  • Default User Avatar

    I had the a similar problem. For me if I did not have a condition for numbers less than 1 it gave a sigsev error since I had not considered it. However it is not a big problem if we were given something to return when the number given is out of range. It currently seems to be that if you have a number less than 1 you should return 1 which makes no sense, it would be better to return -1 or simlar.