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_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);
                               ^


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-22 22:29:06, Gzip enabled