/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int Seg2::Query(int, int)':
/in/foo.cc:253:13: error: 'Depth' was not declared in this scope; did you mean 'Graph::Depth'?
  253 |         if (Depth[cur] >= Depth[c])
      |             ^~~~~
      |             Graph::Depth
/in/foo.cc:11:42: note: 'Graph::Depth' declared here
   11 |     int Siz[40010], HC[40010], F[40010], Depth[40010];
      |                                          ^~~~~
/in/foo.cc:272:13: error: 'Depth' was not declared in this scope; did you mean 'Graph::Depth'?
  272 |         if (Depth[u] > Depth[c])
      |             ^~~~~
      |             Graph::Depth
/in/foo.cc:11:42: note: 'Graph::Depth' declared here
   11 |     int Siz[40010], HC[40010], F[40010], Depth[40010];
      |                                          ^~~~~

信息

递交者
类型
递交
题目
P1930 东方明珠下的音乐树
语言
C++
递交时间
2026-02-20 16:42:50
评测时间
2026-02-20 16:42:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes