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_20399758_19714.cpp:15:18: error: declaration of 'operator<' as non-function
     bool operator<const node &a)>const{return (time>a.time);}
                  ^
0_0_20399758_19714.cpp:15:18: error: expected ';' at end of member declaration
0_0_20399758_19714.cpp:15:31: error: expected ';' at end of member declaration
     bool operator<const node &a)>const{return (time>a.time);}
                               ^
0_0_20399758_19714.cpp:15:32: error: expected unqualified-id before ')' token
     bool operator<const node &a)>const{return (time>a.time);}
                                ^
0_0_20399758_19714.cpp:16:2: error: use of deleted function 'node::node()'
 }p;
  ^
0_0_20399758_19714.cpp:12:8: note: 'node::node()' is implicitly deleted because the default definition would be ill-formed:
 struct node
        ^
0_0_20399758_19714.cpp:12:8: error: uninitialized reference member in 'struct node'
0_0_20399758_19714.cpp:15:31: note: 'const node& node::a' should be initialized
     bool operator<const node &a)>const{return (time>a.time);}
                               ^
0_0_20399758_19714.cpp: In function 'int bfs()':
0_0_20399758_19714.cpp:25:10: error: use of deleted function 'node::node()'
     node temp;
          ^
0_0_20399758_19714.cpp:36:13: error: use of deleted function 'node& node::operator=(const node&)'
         temp=q.front();
             ^
0_0_20399758_19714.cpp:12:8: note: 'node& node::operator=(const node&)' is implicitly deleted because the default definition would be ill-formed:
 struct node
        ^
0_0_20399758_19714.cpp:12:8: error: non-static reference member 'const node& node::a', can't use default assignment operator


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-16 16:29:42, Gzip enabled