Update main.cpp

Added const keyword to be compliant to C++11 standard.
Otherwise one will get the narrowing error.