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_38695613_31018.cpp: In function 'void function1(long long int, long long int)':
0_0_38695613_31018.cpp:5:16: error: invalid types 'Tree [200005][long long int [3000]]' for array subscript
    5 | #define GL tree[root].left
      |                ^
0_0_38695613_31018.cpp:125:5: note: in expansion of macro 'GL'
  125 |     GL = GR = 0;
      |     ^~
0_0_38695613_31018.cpp:6:16: error: invalid types 'Tree [200005][long long int [3000]]' for array subscript
    6 | #define GR tree[root].right
      |                ^
0_0_38695613_31018.cpp:125:10: note: in expansion of macro 'GR'
  125 |     GL = GR = 0;
      |          ^~
0_0_38695613_31018.cpp:127:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  127 |     if (p[Root].id >= left && p[Root].id <= right) {
      |         ~~~~~~~~~~~^~~~~~~
0_0_38695613_31018.cpp:127:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  127 |     if (p[Root].id >= left && p[Root].id <= right) {
      |                               ~~~~~~~~~~~^~~~~~~~
0_0_38695613_31018.cpp:141:25: error: invalid types 'Node [200005][long long int [3000]]' for array subscript
  141 |         q[0][len[1]] = p[root];
      |                         ^
0_0_38695613_31018.cpp:143:11: error: invalid types 'Node [200005][long long int [3000]]' for array subscript
  143 |     tree[p[root].id].sum = tree[p[root].id].num;
      |           ^
0_0_38695613_31018.cpp:143:34: error: invalid types 'Node [200005][long long int [3000]]' for array subscript
  143 |     tree[p[root].id].sum = tree[p[root].id].num;
      |                                  ^


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