Fixed a compiler warning in problem 5
Fixed compiler warnings in problem 6