Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:2: error: expected ';' before 'cout'
  cout<<month<<"月"<<31<<endl;
  ^~~~
/in/foo.cc:9:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (year%4==0 && year%100!=0 || year%400==0)
      ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:10:9: error: 'mouth' was not declared in this scope
   cout<<mouth<<"月"<<29<<endl;
         ^~~~~

信息

递交者
类型
递交
语言
C++
递交时间
2024-02-24 22:52:34
评测时间
2024-02-24 22:52:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes