fixed warning messages in p022.cpp