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_18141173_3076.cpp: In function 'int main()':
0_0_18141173_3076.cpp:28:29: error: cannot convert 'node*' to 'int*' in initialization
         int *A=new node[1005];
                             ^
0_0_18141173_3076.cpp:29:29: error: cannot convert 'node*' to 'int*' in initialization
         int *B=new node[1005];
                             ^
0_0_18141173_3076.cpp:37:33: error: cannot convert 'node' to 'int' in assignment
             if(co=='A')A[cnt1++]=a;
                                 ^
0_0_18141173_3076.cpp:38:27: error: cannot convert 'node' to 'int' in assignment
             else B[cnt2++]=a;
                           ^
0_0_18141173_3076.cpp:41:22: error: 'sort' was not declared in this scope
         sort(A,A+cnt1);
                      ^
0_0_18141173_3076.cpp:43:23: error: request for member 'a' in '*(B + ((sizetype)(((long long unsigned int)cnt2) * 4ull)))', which is of non-class type 'int'
         while(B[cnt2].a<=z)q.push(B[cnt2++].b);
                       ^
0_0_18141173_3076.cpp:43:45: error: request for member 'b' in '*(B + ((sizetype)(((long long unsigned int)(cnt2 ++)) * 4ull)))', which is of non-class type 'int'
         while(B[cnt2].a<=z)q.push(B[cnt2++].b);
                                             ^


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-23 06:02:05, Gzip enabled