Update main.cpp

Added missing bounds.