Compile Error
foo.cc: In function 'int main()': foo.cc:44:59: error: unable to find numeric literal operator 'operator""day' 44 | sum=31+28+31+30+31+30+31+31+30+31+30day; | ^~~~~ foo.cc:44:59: note: use '-fext-numeric-literals' to enable more built-in suffixes foo.cc:49:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 49 | if(year%4==0&&year%100!=0||year%400==0) | ~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1025 计算某日期的天数***
- 语言
- C++
- 递交时间
- 2023-12-15 16:24:50
- 评测时间
- 2023-12-15 16:24:50
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes