/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:16:25: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
   16 |                 else if(X==2001&&Y==10&&Z==4)
      |                         ^
foo.cc:16:44: error: unable to find numeric literal operator 'operator""\U0000ff09'
   16 |                 else if(X==2001&&Y==10&&Z==4)
      |                                            ^~~
foo.cc:16:44: note: use '-fext-numeric-literals' to enable more built-in suffixes
foo.cc:18:17: error: expected primary-expression before 'else'
   18 |                 else
      |                 ^~~~
foo.cc:17:43: error: expected ')' before 'else'
   17 |                         cout<<"YES"<<endl;
      |                                           ^
      |                                           )
   18 |                 else
      |                 ~~~~                       
foo.cc:16:24: note: to match this '('
   16 |                 else if(X==2001&&Y==10&&Z==4)
      |                        ^
foo.cc:6:14: warning: unused variable 'YES' [-Wunused-variable]
    6 |         char YES,NO;
      |              ^~~
foo.cc:6:18: warning: unused variable 'NO' [-Wunused-variable]
    6 |         char YES,NO;
      |                  ^~
foo.cc: At global scope:
foo.cc:22:9: error: expected unqualified-id before 'return'
   22 |         return 0;
      |         ^~~~~~
foo.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1004 伊甸园日历游戏
语言
C++
递交时间
2023-11-10 15:56:07
评测时间
2023-11-10 15:56:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes