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_26035946_28607.cpp:5:10: error: 'maxn' was not declared in this scope
 bool vis[maxn];
          ^
0_0_26035946_28607.cpp:6:7: error: 'maxn' was not declared in this scope
 int a[maxn];
       ^
0_0_26035946_28607.cpp:7:18: error: 'maxn' was not declared in this scope
 pair<int, int> p[maxn];
                  ^
0_0_26035946_28607.cpp:8:29: error: 'maxn' was not declared in this scope
 vector<pair<int, int> > vec[maxn];
                             ^
0_0_26035946_28607.cpp:10:20: error: 'maxn' was not declared in this scope
 pair<int, int> ans[maxn];
                    ^
0_0_26035946_28607.cpp:11:10: error: 'maxn' was not declared in this scope
 int visL[maxn];
          ^
0_0_26035946_28607.cpp:12:10: error: 'maxn' was not declared in this scope
 int visR[maxn];
          ^
0_0_26035946_28607.cpp: In function 'int query(char, int)':
0_0_26035946_28607.cpp:17:28: error: 'visL' was not declared in this scope
         rec += op == 'L' ? visL[pos] : visR[pos];
                            ^
0_0_26035946_28607.cpp:17:40: error: 'visR' was not declared in this scope
         rec += op == 'L' ? visL[pos] : visR[pos];
                                        ^
0_0_26035946_28607.cpp: In function 'void add(char, int, int)':
0_0_26035946_28607.cpp:25:25: error: 'visL' was not declared in this scope
         if(op == 'L')   visL[pos] += val;
                         ^
0_0_26035946_28607.cpp:26:25: error: 'visR' was not declared in this scope
         else            visR[pos] += val;
                         ^
0_0_26035946_28607.cpp: In function 'void dfs(int)':
0_0_26035946_28607.cpp:33:24: error: 'vec' was not declared in this scope
     for(int i = 0; i < vec[x].size(); i++){
                        ^
0_0_26035946_28607.cpp:39:13: error: 'ans' was not declared in this scope
             ans[pos].first = -1;
             ^
0_0_26035946_28607.cpp:42:9: error: 'ans' was not declared in this scope
         ans[pos].second += query('L', Maxn) - query('L', u);
         ^
0_0_26035946_28607.cpp:48:8: error: 'p' was not declared in this scope
     if(p[x].first != 0){
        ^
0_0_26035946_28607.cpp:49:18: error: 'a' was not declared in this scope
         add('L', a[x], 1);
                  ^
0_0_26035946_28607.cpp:53:8: error: 'p' was not declared in this scope
     if(p[x].second != 0){
        ^
0_0_26035946_28607.cpp:54:18: error: 'a' was not declared in this scope
         add('R', a[x], 1);
                  ^
0_0_26035946_28607.cpp: In function 'int main()':
0_0_26035946_28607.cpp:63:16: error: 'p' was not declared in this scope
         memset(p, 0, sizeof p);
                ^
0_0_26035946_28607.cpp:64:16: error: 'vis' was not declared in this scope
         memset(vis, 0, sizeof vis);
                ^
0_0_26035946_28607.cpp:65:42: error: 'vec' was not declared in this scope
         for(int i = 0; i <= 100000; i++) vec[i].clear();
                                          ^
0_0_26035946_28607.cpp:66:16: error: 'ans' was not declared in this scope
         memset(ans, 0, sizeof ans);
                ^
0_0_26035946_28607.cpp:70:26: error: 'a' was not declared in this scope
             scanf("%d", &a[i]);
                          ^
0_0_26035946_28607.cpp:91:28: error: 'visL' was not declared in this scope
             scanf("%d%d", &visL[i], &visR[i]);
                            ^
0_0_26035946_28607.cpp:91:38: error: 'visR' was not declared in this scope
             scanf("%d%d", &visL[i], &visR[i]);
                                      ^
0_0_26035946_28607.cpp:97:57: error: 'visR' was not declared in this scope
             int X = lower_bound(hsh.begin(), hsh.end(), visR[i]) - hsh.begin() + 1;
                                                         ^
0_0_26035946_28607.cpp:98:13: error: 'vec' was not declared in this scope
             vec[visL[i]].push_back(make_pair(X, i));
             ^
0_0_26035946_28607.cpp:98:17: error: 'visL' was not declared in this scope
             vec[visL[i]].push_back(make_pair(X, i));
                 ^
0_0_26035946_28607.cpp:101:13: error: 'a' was not declared in this scope
             a[i] = lower_bound(hsh.begin(), hsh.end(), a[i]) - hsh.begin() + 1;
             ^
0_0_26035946_28607.cpp:103:16: error: 'visL' was not declared in this scope
         memset(visL, 0, sizeof visL);
                ^
0_0_26035946_28607.cpp:104:16: error: 'visR' was not declared in this scope
         memset(visR, 0, sizeof visR);
                ^


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-27 12:18:17, Gzip enabled