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_26036262_22743.cpp:14:9: error: 'vector' does not name a type
 typedef vector<int> VI;
         ^
0_0_26036262_22743.cpp:15:9: error: 'pair' does not name a type
 typedef pair<int, int> PII;
         ^
0_0_26036262_22743.cpp:30:1: error: 'vector' does not name a type
 vector<int>ver[MX + 5];
 ^
0_0_26036262_22743.cpp: In function 'void init()':
0_0_26036262_22743.cpp:32:23: error: 'ver' was not declared in this scope
     rep(i, 1, MX + 1) ver[i].push_back(1);
                       ^
0_0_26036262_22743.cpp:34:9: error: 'ver' was not declared in this scope
         ver[i].push_back(i);
         ^
0_0_26036262_22743.cpp: In function 'void PushUP(int)':
0_0_26036262_22743.cpp:40:64: error: 'max' was not declared in this scope
     if(ls[rt] && rs[rt]) sum[rt] = max(sum[ls[rt]], sum[rs[rt]]);
                                                                ^
0_0_26036262_22743.cpp: In function 'int merge(int, int, int&)':
0_0_26036262_22743.cpp:46:51: error: 'max' was not declared in this scope
     if(sum[rt] == sum[prt]) ans = max(ans, sum[rt]);
                                                   ^
0_0_26036262_22743.cpp: In function 'int main()':
0_0_26036262_22743.cpp:77:5: error: 'cin' was not declared in this scope
     cin >> n;
     ^
0_0_26036262_22743.cpp:80:24: error: 'scanf' was not declared in this scope
         scanf("%d", &fa);
                        ^
0_0_26036262_22743.cpp:85:23: error: 'scanf' was not declared in this scope
         scanf("%d", &x);
                       ^
0_0_26036262_22743.cpp:87:19: error: 'ver' was not declared in this scope
         rep(j, 0, ver[x].size()) update(ver[x][j], 1, MX, root[i]);
                   ^
0_0_26036262_22743.cpp:5:34: note: in definition of macro 'rep'
 #define rep(i,a,b) for(int i=a;i<b;++i)
                                  ^
0_0_26036262_22743.cpp:90:43: error: 'printf' was not declared in this scope
     rep(i, 1, n + 1) printf("%d\n", ans[i]);
                                           ^


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-26 20:48:25, Gzip enabled