The below code compiles. But when I execute in debugging mode, I get read access violation in the location marked by comment below:
#include