Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
  if((l%4==0 and l%100!=0) or (l%400==0)) cout<<"Y";
      ~^~
/in/foo.cc:6:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
  if((l%4==0 and l%100!=0) or (l%400==0)) cout<<"Y";
                 ~^~~~
/in/foo.cc:6:32: error: invalid operands of types 'double' and 'int' to binary 'operator%'
  if((l%4==0 and l%100!=0) or (l%400==0)) cout<<"Y";
                               ~^~~~

信息

递交者
类型
递交
题目
P1077 判断闰年
语言
C++
递交时间
2024-07-08 16:00:50
评测时间
2024-07-08 16:00:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes