Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
  cin>>y>>m;
  ^~~
/in/foo.cc:6:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y%4==0&&y%100!=0||y%400==0)
     ~~~~~~^~~~~~~~~~
/in/foo.cc:17:2: error: 'cout' was not declared in this scope
  cout<<day;
  ^~~~

信息

递交者
类型
递交
语言
C++
递交时间
2023-05-14 15:20:27
评测时间
2023-05-14 15:20:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes