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_23635545_11924.cpp:1:7: error: 'maxn' was not declared in this scope
 int c[maxn], ov[maxn];
       ^
0_0_23635545_11924.cpp:1:17: error: 'maxn' was not declared in this scope
 int c[maxn], ov[maxn];
                 ^
0_0_23635545_11924.cpp:2:1: error: 'map' does not name a type
 map<int, int> mp[maxn];
 ^
0_0_23635545_11924.cpp: In function 'void pushdown(int)':
0_0_23635545_11924.cpp:6:8: error: 'ov' was not declared in this scope
     if(ov[id] != -1){
        ^
0_0_23635545_11924.cpp:7:54: error: 'min' was not declared in this scope
         for(int i = id * SZ; i < min((id + 1) * SZ, n); i++) c[i] = ov[id];
                                                      ^
0_0_23635545_11924.cpp:7:62: error: 'c' was not declared in this scope
         for(int i = id * SZ; i < min((id + 1) * SZ, n); i++) c[i] = ov[id];
                                                              ^
0_0_23635545_11924.cpp:8:9: error: 'mp' was not declared in this scope
         mp[id].clear();
         ^
0_0_23635545_11924.cpp:9:46: error: 'min' was not declared in this scope
         mp[id][ov[id]] = min((id + 1) * SZ, n) - id * SZ;
                                              ^
0_0_23635545_11924.cpp: In function 'void update(int, int, int)':
0_0_23635545_11924.cpp:17:49: error: 'min' was not declared in this scope
     for(int i = l; i <= min(r, (pl + 1) * SZ - 1); i++){
                                                 ^
0_0_23635545_11924.cpp:18:9: error: 'mp' was not declared in this scope
         mp[pl][c[i]]--;
         ^
0_0_23635545_11924.cpp:18:16: error: 'c' was not declared in this scope
         mp[pl][c[i]]--;
                ^
0_0_23635545_11924.cpp:25:13: error: 'mp' was not declared in this scope
             mp[pr][c[i]]--;
             ^
0_0_23635545_11924.cpp:25:20: error: 'c' was not declared in this scope
             mp[pr][c[i]]--;
                    ^
0_0_23635545_11924.cpp:30:38: error: 'ov' was not declared in this scope
     for(int i = pl + 1; i < pr; i++) ov[i] = z;
                                      ^
0_0_23635545_11924.cpp: In function 'int query(int, int, int)':
0_0_23635545_11924.cpp:36:49: error: 'min' was not declared in this scope
     for(int i = l; i <= min(r, (pl + 1) * SZ - 1); i++) if(c[i] == z) res++;
                                                 ^
0_0_23635545_11924.cpp:36:60: error: 'c' was not declared in this scope
     for(int i = l; i <= min(r, (pl + 1) * SZ - 1); i++) if(c[i] == z) res++;
                                                            ^
0_0_23635545_11924.cpp:39:46: error: 'c' was not declared in this scope
         for(int i = pr * SZ; i <= r; i++) if(c[i] == z) res++;
                                              ^
0_0_23635545_11924.cpp:42:12: error: 'ov' was not declared in this scope
         if(ov[i] == -1){
            ^
0_0_23635545_11924.cpp:43:16: error: 'mp' was not declared in this scope
             if(mp[i].find(z) != mp[i].end()) res += mp[i][z];
                ^
0_0_23635545_11924.cpp:44:56: error: 'min' was not declared in this scope
         }else if(ov[i] == z) res += min((i + 1) * SZ, n) - i * SZ;
                                                        ^
0_0_23635545_11924.cpp: In function 'int main()':
0_0_23635545_11924.cpp:49:32: error: 'scanf' was not declared in this scope
     while(scanf("%d %d", &n, &m) != EOF){
                                ^
0_0_23635545_11924.cpp:49:37: error: 'EOF' was not declared in this scope
     while(scanf("%d %d", &n, &m) != EOF){
                                     ^
0_0_23635545_11924.cpp:50:26: error: 'sqrt' was not declared in this scope
         SZ = sqrt(n * 1.0);
                          ^
0_0_23635545_11924.cpp:51:16: error: 'ov' was not declared in this scope
         memset(ov, -1, sizeof ov);
                ^
0_0_23635545_11924.cpp:51:33: error: 'memset' was not declared in this scope
         memset(ov, -1, sizeof ov);
                                 ^
0_0_23635545_11924.cpp:52:36: error: 'mp' was not declared in this scope
         for(int i = 0; i < n; i++) mp[i].clear();
                                    ^
0_0_23635545_11924.cpp:54:26: error: 'c' was not declared in this scope
             scanf("%d", &c[i]);
                          ^
0_0_23635545_11924.cpp:55:13: error: 'mp' was not declared in this scope
             mp[i / SZ][c[i]]++; 
             ^
0_0_23635545_11924.cpp:63:46: error: 'printf' was not declared in this scope
                 printf("%d\n", query(l, r, z));
                                              ^


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-25 18:34:09, Gzip enabled