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_30194113_1135.cpp:26:9: error: two or more data types in declaration of 'N'
 int int N=3e5+10;
         ^
0_0_30194113_1135.cpp:27:8: error: 'N' was not declared in this scope
 ll sta[N],val[N],ls[N],rs[N],sz[N];
        ^
0_0_30194113_1135.cpp:27:15: error: 'N' was not declared in this scope
 ll sta[N],val[N],ls[N],rs[N],sz[N];
               ^
0_0_30194113_1135.cpp:27:21: error: 'N' was not declared in this scope
 ll sta[N],val[N],ls[N],rs[N],sz[N];
                     ^
0_0_30194113_1135.cpp:27:27: error: 'N' was not declared in this scope
 ll sta[N],val[N],ls[N],rs[N],sz[N];
                           ^
0_0_30194113_1135.cpp:27:33: error: 'N' was not declared in this scope
 ll sta[N],val[N],ls[N],rs[N],sz[N];
                                 ^
0_0_30194113_1135.cpp: In function 'void update(int, long long int&)':
0_0_30194113_1135.cpp:30:5: error: 'sz' was not declared in this scope
     sz[u]=sz[ls[u]]+sz[rs[u]]+1;
     ^
0_0_30194113_1135.cpp:30:14: error: 'ls' was not declared in this scope
     sz[u]=sz[ls[u]]+sz[rs[u]]+1;
              ^
0_0_30194113_1135.cpp:30:24: error: 'rs' was not declared in this scope
     sz[u]=sz[ls[u]]+sz[rs[u]]+1;
                        ^
0_0_30194113_1135.cpp:31:27: error: 'val' was not declared in this scope
     ans=max(ans,1ll*sz[u]*val[u]);
                           ^
0_0_30194113_1135.cpp: In function 'int main()':
0_0_30194113_1135.cpp:43:13: error: 'val' was not declared in this scope
             val[i]=x;sz[i]=1;ls[i]=rs[i]=0;
             ^
0_0_30194113_1135.cpp:43:22: error: 'sz' was not declared in this scope
             val[i]=x;sz[i]=1;ls[i]=rs[i]=0;
                      ^
0_0_30194113_1135.cpp:43:30: error: 'ls' was not declared in this scope
             val[i]=x;sz[i]=1;ls[i]=rs[i]=0;
                              ^
0_0_30194113_1135.cpp:43:36: error: 'rs' was not declared in this scope
             val[i]=x;sz[i]=1;ls[i]=rs[i]=0;
                                    ^
0_0_30194113_1135.cpp:44:35: error: 'sta' was not declared in this scope
             while(top&&val[i]<val[sta[top]])
                                   ^
0_0_30194113_1135.cpp:49:24: error: 'sta' was not declared in this scope
             if(top) rs[sta[top]]=i;
                        ^
0_0_30194113_1135.cpp:51:13: error: 'sta' was not declared in this scope
             sta[++top]=i;
             ^
0_0_30194113_1135.cpp:53:27: error: 'sta' was not declared in this scope
         while(top) update(sta[top--],ans);
                           ^


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-04 12:45:11, Gzip enabled