#26096: 求問哪裡錯? (C++)


EXOL (Judy)


//上學去吧! #include using namespace std; int main(){ int h, m; while(cin >>h >> m){ if(h<7 or h>=17){ //7:00前 and 17:00後 cout << "Off School" << endl; } else if(h=7 and m<30){ //7:00~7:29 cout << "Off School" << endl; } else{ //7:30~16:59 cout << "At School" << endl; } } return 0; }