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_39347542_8421.cpp:7:1: error: 'node' does not name a type
    7 | node data[100005]; // 定义结构体数组data,用于存储所有节点的信息
      | ^~~~
0_0_39347542_8421.cpp: In function 'int main()':
0_0_39347542_8421.cpp:61:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   61 |                         data[i].x=read();       data[i].y=read();       data[i].value=read(); // 读取节点的信息
      |                             ^
0_0_39347542_8421.cpp:61:53: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   61 |                         data[i].x=read();       data[i].y=read();       data[i].value=read(); // 读取节点的信息
      |                                                     ^
0_0_39347542_8421.cpp:61:77: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   61 |                         data[i].x=read();       data[i].y=read();       data[i].value=read(); // 读取节点的信息
      |                                                                             ^
0_0_39347542_8421.cpp:63:31: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
   63 |                 sort(data,data+n,cmp); // 对节点数组进行排序
      |                           ~~~~^~
0_0_39347542_8421.cpp:66:34: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   66 |                         y[i]=data[i].y; // 将节点的y坐标存入y数组
      |                                  ^
0_0_39347542_8421.cpp:72:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   72 |                         data[i].y=lower_bound(y,y+cnt,data[i].y)-y+1; // 找到节点的y坐标在y数组中的位置,并更新节点的y坐标
      |                             ^
0_0_39347542_8421.cpp:72:59: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   72 |                         data[i].y=lower_bound(y,y+cnt,data[i].y)-y+1; // 找到节点的y坐标在y数组中的位置,并更新节点的y坐标
      |                                                           ^
0_0_39347542_8421.cpp:78:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   78 |                         int temp=data[i].x; // 记录当前节点的x坐标
      |                                      ^
0_0_39347542_8421.cpp:79:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   79 |                         while((data[i+1].x==temp)&&(i<n)){ // 当下一个节点的x坐标等于当前节点的x坐标时,进行循环
      |                                    ^
0_0_39347542_8421.cpp:84:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   84 |                                 dp[data[z].y]=max(query(data[z].y-1)+data[z].value,dp[data[z].y]); // 更新dp数组的值
      |                                        ^
0_0_39347542_8421.cpp:84:61: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   84 |                                 dp[data[z].y]=max(query(data[z].y-1)+data[z].value,dp[data[z].y]); // 更新dp数组的值
      |                                                             ^
0_0_39347542_8421.cpp:84:74: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   84 |                                 dp[data[z].y]=max(query(data[z].y-1)+data[z].value,dp[data[z].y]); // 更新dp数组的值
      |                                                                          ^
0_0_39347542_8421.cpp:84:91: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   84 |                                 dp[data[z].y]=max(query(data[z].y-1)+data[z].value,dp[data[z].y]); // 更新dp数组的值
      |                                                                                           ^
0_0_39347542_8421.cpp:85:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   85 |                                 updata(data[z].y,dp[data[z].y]); // 更新树状数组
      |                                            ^
0_0_39347542_8421.cpp:85:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   85 |                                 updata(data[z].y,dp[data[z].y]); // 更新树状数组
      |                                                         ^
0_0_39347542_8421.cpp:86:52: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   86 |                                 ans=max(ans,dp[data[z].y]);
      |                                                    ^


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-12-29 01:05:10, Gzip enabled