Compile Error

foo.cc: In function 'int main()':
foo.cc:9:46: error: unable to find numeric literal operator 'operator""i'
    9 |   if(i==1||i==3||i==5||i==7||i==8||i==10||i==12i)
      |                                              ^~~
foo.cc:9:46: note: use '-fext-numeric-literals' to enable more built-in suffixes
foo.cc:14:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   14 |          if(a%400==0||a%4==0&&a%100!=0)
      |                       ~~~~~~^~~~~~~~~~
foo.cc:13:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   13 |   if(i==2)
      |     ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1026 计算某日期的天数***
语言
C++
递交时间
2022-07-10 14:46:31
评测时间
2022-07-10 14:46:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes