/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:5: error: expected ',' or ';' before 'int'
    8 |     int li[n];
      |     ^~~
foo.cc:10:14: error: 'li' was not declared in this scope; did you mean 'i'?
   10 |  for(int i=0;li < n;i++)
      |              ^~
      |              i
foo.cc:18:7: error: 'li' was not declared in this scope; did you mean 'i'?
   18 |    if(li[j] >li[j+1])
      |       ^~
      |       i
foo.cc:27:5: error: 'li' was not declared in this scope
   27 |  if(li[0] - m <= 0)
      |     ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1054 牛场围栏
语言
C++
递交时间
2022-04-11 16:31:32
评测时间
2022-04-11 16:31:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes