Update problem.cpp

Added smArray init