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_25962554_31804.cpp: In member function 'void node::pushup()':
0_0_25962554_31804.cpp:32:9: error: 'totprice' was not declared in this scope
         totprice=ch[0]->totprice+ch[1]->totprice+pri*num;
         ^
0_0_25962554_31804.cpp:32:25: error: 'struct node' has no member named 'totprice'
         totprice=ch[0]->totprice+ch[1]->totprice+pri*num;
                         ^
0_0_25962554_31804.cpp:32:41: error: 'struct node' has no member named 'totprice'
         totprice=ch[0]->totprice+ch[1]->totprice+pri*num;
                                         ^
0_0_25962554_31804.cpp: In function 'node* Newnode(node*, int)':
0_0_25962554_31804.cpp:41:8: error: 'struct node' has no member named 'totprice'
     x->totprice=x->pri*x->num;
        ^
0_0_25962554_31804.cpp: In function 'void Ins(node*&, int, int)':
0_0_25962554_31804.cpp:81:12: error: 'struct node' has no member named 'totprice'
         y->totprice+=p[key]*(pre[key]+m[key]);
            ^
0_0_25962554_31804.cpp: In function 'int main()':
0_0_25962554_31804.cpp:155:34: error: 'struct node' has no member named 'totprice'
                 ll res=x->ch[0]->totprice;
                                  ^


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-29 21:12:15, Gzip enabled