F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38885959_4611.cpp: In lambda function:
0_0_38885959_4611.cpp:25:28: error: 'w' was not declared in this scope
   25 |             edg[cnt] = {v, w, head[u]};
      |                            ^
0_0_38885959_4611.cpp:25:38: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<edge>, edge>::value_type' {aka 'edge'} and '<brace-enclosed initializer list>')
   25 |             edg[cnt] = {v, w, head[u]};
      |                                      ^
0_0_38885959_4611.cpp:7:8: note: candidate: 'constexpr edge& edge::operator=(const edge&)'
    7 | struct edge {
      |        ^~~~
0_0_38885959_4611.cpp:7:8: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const edge&'
0_0_38885959_4611.cpp:7:8: note: candidate: 'constexpr edge& edge::operator=(edge&&)'
0_0_38885959_4611.cpp:7:8: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'edge&&'
0_0_38885959_4611.cpp: In lambda function:
0_0_38885959_4611.cpp:43:29: error: 'class std::queue<int>' has no member named 'top'; did you mean 'pop'?
   43 |                 int u = que.top(); que.pop();
      |                             ^~~
      |                             pop


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-27 00:22:05, Gzip enabled