Accepted
foo.cc: In function 'int main()': foo.cc:46:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 46 | if(n1%400==0||n1%4==0&&n1%100!=0) | ~~~~~~~^~~~~~~~~~~ foo.cc:49:29: warning: 'sum' may be used uninitialized [-Wmaybe-uninitialized] 49 | sum = sum+1; | ~~~~^~~~~~~ foo.cc:5:22: note: 'sum' was declared here 5 | int n1,n2,n3,sum; | ^~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1025 计算某日期的天数***
- 语言
- C++
- 递交时间
- 2023-12-15 16:10:02
- 评测时间
- 2023-12-15 16:10:02
- 评测机
- 分数
- 100
- 总耗时
- 22ms
- 峰值内存
- 412.0 KiB