Compile Error

foo.cc: In function 'int main()':
foo.cc:17:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   17 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:24:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   24 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:31:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   31 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:38:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   38 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:45:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   45 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:52:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   52 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:59:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   59 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:66:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   66 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:73:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   73 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:80:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   80 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:85:14: error: expected '}' at end of input
   85 |     return 0;
      |              ^
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1030 A1-4 分支结构练习:今年过去了多少天
语言
C++
递交时间
2023-05-11 23:17:29
评测时间
2023-05-11 23:17:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes