Compile Error

foo.cc:26:2: error: stray '#' in program
   26 | }#include<bits/stdc++.h>
      |  ^
foo.cc: In function 'int main()':
foo.cc:22:10: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 | if(y%4==0&&y%100!=0||y%400==0)
      |    ~~~~~~^~~~~~~~~~
foo.cc:5:11: warning: unused variable 'i' [-Wunused-variable]
    5 | long long i=0,y,m,d,leap=0;
      |           ^
foo.cc: At global scope:
foo.cc:26:3: error: 'include' does not name a type
   26 | }#include<bits/stdc++.h>
      |   ^~~~~~~
foo.cc:28:5: error: redefinition of 'int main()'
   28 | int main()
      |     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:47:10: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   47 | if(y%4==0&&y%100!=0||y%400==0)
      |    ~~~~~~^~~~~~~~~~
foo.cc:30:11: warning: unused variable 'i' [-Wunused-variable]
   30 | long long i=0,y,m,d,leap=0;
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1029 A1-4 循环结构练习:今年过去了多少天
语言
C++
递交时间
2023-07-15 21:38:29
评测时间
2023-07-15 21:38:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes