0_0_24606370_28515.cpp: In member function 'bool edge::operator<(const edge&)':
0_0_24606370_28515.cpp:20:21: error: request for member 'h' in '(edge*)this', which is of pointer type 'edge*' (maybe you meant to use '->' ?)
return this.h<E.h;
^
0_0_24606370_28515.cpp: In function 'void build(int, int, int)':
0_0_24606370_28515.cpp:6:16: error: 'mid' was not declared in this scope
#define lson l,mid,rt<<1
^
0_0_24606370_28515.cpp:32:11: note: in expansion of macro 'lson'
build(lson);
^
0_0_24606370_28515.cpp: In function 'int main()':
0_0_24606370_28515.cpp:65:23: error: no match for 'operator=' (operand types are 'edge' and 'edge*')
e[etot++] = new edge(x1,x2,y1,1);
^
0_0_24606370_28515.cpp:65:23: note: candidates are:
0_0_24606370_28515.cpp:14:8: note: edge& edge::operator=(const edge&)
struct edge{
^
0_0_24606370_28515.cpp:14:8: note: no known conversion for argument 1 from 'edge*' to 'const edge&'
0_0_24606370_28515.cpp:14:8: note: edge& edge::operator=(edge&&)
0_0_24606370_28515.cpp:14:8: note: no known conversion for argument 1 from 'edge*' to 'edge&&'
0_0_24606370_28515.cpp:66:23: error: no match for 'operator=' (operand types are 'edge' and 'edge*')
e[etot++] = new edge(x1,x2,y2,-1);
^
0_0_24606370_28515.cpp:66:23: note: candidates are:
0_0_24606370_28515.cpp:14:8: note: edge& edge::operator=(const edge&)
struct edge{
^
0_0_24606370_28515.cpp:14:8: note: no known conversion for argument 1 from 'edge*' to 'const edge&'
0_0_24606370_28515.cpp:14:8: note: edge& edge::operator=(edge&&)
0_0_24606370_28515.cpp:14:8: note: no known conversion for argument 1 from 'edge*' to 'edge&&'
0_0_24606370_28515.cpp:79:31: error: 'struct edge' has no member named 'cover'
update(l,r,1,e[i].cover);
^
|