Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y%4==0&&y%100!=0||y%400==0)a 
     ~~~~~~^~~~~~~~~~
/in/foo.cc:9:32: error: 'a' was not declared in this scope
  if(y%4==0&&y%100!=0||y%400==0)a 
                                ^

信息

递交者
类型
递交
语言
C++
递交时间
2024-07-10 07:19:32
评测时间
2024-07-10 07:19:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes