记录详情

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=0)
      |            ^
foo.cc:10:16: error: unable to find numeric literal operator 'operator""\U0000ff09'
   10 |         if(a%2=0)
      |                ^~~
foo.cc:10:16: note: use '-fext-numeric-literals' to enable more built-in suffixes
foo.cc:12:9: error: expected primary-expression before 'else'
   12 |         else
      |         ^~~~
foo.cc:11:31: error: expected ')' before 'else'
   11 |            cout<<"Even"<<endl;
      |                               ^
      |                               )
   12 |         else
      |         ~~~~                   
foo.cc:10:11: note: to match this '('
   10 |         if(a%2=0)
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

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