Compile Error

foo.cc: In function 'int main()':
foo.cc:9:40: error: expected primary-expression before ';' token
    9 |                 case 1:cout<<"Monday"<<;break;
      |                                        ^
foo.cc:10:41: error: expected primary-expression before ';' token
   10 |                 case 2:cout<<"Tuesday"<<;break;
      |                                         ^
foo.cc:11:43: error: expected primary-expression before ';' token
   11 |                 case 3:cout<<"Wednesday"<<;break;
      |                                           ^
foo.cc:12:42: error: expected primary-expression before ';' token
   12 |                 case 4:cout<<"Thursday"<<;break;
      |                                          ^
foo.cc:13:40: error: expected primary-expression before ';' token
   13 |                 case 5:cout<<"Friday"<<;break;
      |                                        ^
foo.cc:14:42: error: expected primary-expression before ';' token
   14 |                 case 6:cout<<"Saturday"<<;break;
      |                                          ^
foo.cc:15:40: error: expected primary-expression before ';' token
   15 |                 case 7:cout<<"Sunday"<<;break;
      |                                        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
语言
C++
递交时间
2023-10-15 09:46:02
评测时间
2023-10-15 09:46:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes