/ Vijos /

记录详情

Compile Error

foo.cc:4:1: error: expected initializer before ‘bool’
    4 | bool visit[2001];
      | ^~~~
foo.cc: In function ‘int main()’:
foo.cc:7:16: error: ‘visit’ was not declared in this scope
    7 |         memset(visit,false,sizeof(visit));
      |                ^~~~~
foo.cc:7:16: note: ‘std::visit’ is only available from C++17 onwards
foo.cc:10:22: error: ‘hi’ was not declared in this scope; did you mean ‘i’?
   10 |                 cin>>hi[i];
      |                      ^~
      |                      i
foo.cc:12:22: error: ‘h2’ was not declared in this scope; did you mean ‘h1’?
   12 |                 cin>>h2[i];
      |                      ^~
      |                      h1
foo.cc:16:34: error: unable to find numeric literal operator ‘operator""h’
   16 |                         if(h1[i]>2h[j]&&h2[j]!=0&&visit[j]==1)
      |                                  ^~
foo.cc:16:34: note: use ‘-fext-numeric-literals’ to enable more built-in suffixes
foo.cc:16:41: error: ‘h2’ was not declared in this scope; did you mean ‘h1’?
   16 |                         if(h1[i]>2h[j]&&h2[j]!=0&&visit[j]==1)
      |                                         ^~
      |                                         h1

信息

递交者
类型
递交
题目
P1291 苹果摘陶陶
语言
C++
递交时间
2024-07-17 21:19:54
评测时间
2024-07-17 21:19:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes