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_35306371_30634.cpp:3:21: error: two or more data types in declaration of 'type name'
 #define long long   int
                     ^
0_0_35306371_30634.cpp:142:20: note: in expansion of macro 'long'
 Link_Cut_Tree<long long> LCT;
                    ^
0_0_35306371_30634.cpp:142:24: error: template argument 1 is invalid
 Link_Cut_Tree<long long> LCT;
                        ^
0_0_35306371_30634.cpp:142:29: error: invalid type in declaration before ';' token
 Link_Cut_Tree<long long> LCT;
                             ^
0_0_35306371_30634.cpp:143:24: error: two or more data types in declaration of 'ans'
 long long ans[maxn >> 1];
                        ^
0_0_35306371_30634.cpp: In function 'int main()':
0_0_35306371_30634.cpp:147:9: error: request for member 'clear' in 'LCT', which is of non-class type 'int'
     LCT.clear(500000);
         ^
0_0_35306371_30634.cpp:154:5: error: 'ans' was not declared in this scope
     ans[1] = 0;
     ^
0_0_35306371_30634.cpp:157:19: error: two or more data types in declaration of 'tmp'
         long long tmp = ans[i - 1];
                   ^
0_0_35306371_30634.cpp:164:21: error: request for member 'val' in 'LCT', which is of non-class type 'int'
                 LCT.val[now] = x;
                     ^
0_0_35306371_30634.cpp:166:21: error: request for member 'Link' in 'LCT', which is of non-class type 'int'
                 LCT.Link(now, L[now]);
                     ^
0_0_35306371_30634.cpp:167:21: error: request for member 'Link' in 'LCT', which is of non-class type 'int'
                 LCT.Link(now, R[now]);
                     ^
0_0_35306371_30634.cpp:168:17: error: 'tmp' was not declared in this scope
                 tmp += x;
                 ^
0_0_35306371_30634.cpp:170:21: error: request for member 'Split' in 'LCT', which is of non-class type 'int'
                 LCT.Split(i, x);
                     ^
0_0_35306371_30634.cpp:171:29: error: request for member 'val' in 'LCT', which is of non-class type 'int'
                 int v = LCT.val[LCT.sum[x]];
                             ^
0_0_35306371_30634.cpp:171:37: error: request for member 'sum' in 'LCT', which is of non-class type 'int'
                 int v = LCT.val[LCT.sum[x]];
                                     ^
0_0_35306371_30634.cpp:173:17: error: 'tmp' was not declared in this scope
                 tmp -= v;
                 ^
0_0_35306371_30634.cpp:175:30: error: request for member 'sum' in 'LCT', which is of non-class type 'int'
                 int id = LCT.sum[x];
                              ^
0_0_35306371_30634.cpp:176:21: error: request for member 'cut' in 'LCT', which is of non-class type 'int'
                 LCT.cut(id, L[id]);
                     ^
0_0_35306371_30634.cpp:177:21: error: request for member 'cut' in 'LCT', which is of non-class type 'int'
                 LCT.cut(id, R[id]);
                     ^
0_0_35306371_30634.cpp:179:21: error: request for member 'val' in 'LCT', which is of non-class type 'int'
                 LCT.val[now] = x;
                     ^
0_0_35306371_30634.cpp:181:21: error: request for member 'Link' in 'LCT', which is of non-class type 'int'
                 LCT.Link(now, L[now]);
                     ^
0_0_35306371_30634.cpp:182:21: error: request for member 'Link' in 'LCT', which is of non-class type 'int'
                 LCT.Link(now, R[now]);
                     ^
0_0_35306371_30634.cpp:185:18: error: 'tmp' was not declared in this scope
         ans[i] = tmp;
                  ^


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 07:42:26, Gzip enabled