Update sample.cpp

two lines added in main().