记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:10:12: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
   10 |         if(a%2=1)
      |            ^
foo.cc:10:16: error: unable to find numeric literal operator 'operator""\U0000ff09'
   10 |         if(a%2=1)
      |                ^~~
foo.cc:10:16: note: use '-fext-numeric-literals' to enable more built-in suffixes
foo.cc:13:12: error: expected primary-expression before 'else'
   13 |            else
      |            ^~~~
foo.cc:12:44: error: expected ')' before 'else'
   12 |                         cout<<"Even"<<endl;
      |                                            ^
      |                                            )
   13 |            else
      |            ~~~~                             
foo.cc:10:11: note: to match this '('
   10 |         if(a%2=1)
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1491 D. 梅开二度
语言
C++
递交时间
2023-09-09 21:56:05
评测时间
2023-09-09 21:56:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes