#include<iostream>
using namespace std;
enum GameResult { WIN, LOSE, TIE, CANCEL };
int main() {
GameResult result;
GameResult omit = CANCEL;
for (int n = WIN; n <= CANCEL; n++) {
result = static_cast<GameResult>(n);
if (result == omit)
cout << "比赛被取消了" << endl;
else {
cout << "比赛进行了,";
if (result == WIN)
cout << "我们赢了" << endl;
else if (result == LOSE)
cout << "我们输了" << endl;
else
cout << "比赛结果是平局" << endl; // 这里加了分号
}
}
return 0;
}