Compile Error

foo.cc: In function 'int main()':
foo.cc:19:18: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                  ^~~~~
foo.cc:19:24: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                        ^~~~~
foo.cc:19:30: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                              ^~~~~
foo.cc:19:36: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                                    ^~~~~
foo.cc:19:42: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                                          ^~~~~
foo.cc:19:48: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                                                ^~~~~
foo.cc:19:54: error: initializer-string for array of chars is too long [-fpermissive]
   19 | char week[7][3]={"日","一","二","三","四","五","六"}, atc[100];
      |                                                      ^~~~~
foo.cc:20:25: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   20 | for( int y, m, d; system("cls"), cout<<"1、输入年份打印出月份表"<<endl<<"2、计算星期"<<endl<<"0、退出"<<endl, cin>>atc; system("pause"))
      |                   ~~~~~~^~~~~~~
foo.cc:20:146: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   20 | for( int y, m, d; system("cls"), cout<<"1、输入年份打印出月份表"<<endl<<"2、计算星期"<<endl<<"0、退出"<<endl, cin>>atc; system("pause"))
      |                                                                                                                                            ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1076 打印年历
语言
C++
递交时间
2022-07-16 18:16:43
评测时间
2022-07-16 18:16:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes