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