modified exceptions handling for OJ,passed now
	modified:   ../as2/main.cpp