Updated hw0.cpp: fixed '||' command bugs