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