Update 3n+1.cpp

Change return value to 0, avoiding the cause of `run time`.