记录详情

Compile Error

foo.cc:17:26: error: stray '\357' in program
  if (a[0]>a[n]&&a[0]>a[1])
                          ^
foo.cc:17:27: error: stray '\274' in program
  if (a[0]>a[n]&&a[0]>a[1])
                           ^
foo.cc:17:28: error: stray '\211' in program
  if (a[0]>a[n]&&a[0]>a[1])
                            ^
foo.cc: In function 'int main()':
foo.cc:17:6: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
  if (a[0]>a[n]&&a[0]>a[1])
      ^
foo.cc:18:6: error: expected ';' before 's'
      s=s+1;
      ^
foo.cc:17:15: warning: statement has no effect [-Wunused-value]
  if (a[0]>a[n]&&a[0]>a[1])
      ~~~~~~~~~^~~~~~~~~~~
foo.cc:19:2: error: expected primary-expression before 'if'
  if (a[n]>a[n-1]&&a[n]>a[0])
  ^~
foo.cc:19:2: error: expected ')' before 'if'
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1033 环形山丘
语言
C++
递交时间
2021-09-24 21:28:16
评测时间
2021-09-24 21:28:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes