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_20984109_29552.cpp:12:20: error: stray '#' in program
 const int N = 1e5 + 5;
                    ^
0_0_20984109_29552.cpp:28:19: error: stray '#' in program
         if(r - l + 1 == old_cnt)
                   ^
0_0_20984109_29552.cpp:30:53: error: stray '#' in program
             blocks_colors[block_id][color] = r - l + 1;
                                                     ^
0_0_20984109_29552.cpp:34:67: error: stray '#' in program
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                   ^
0_0_20984109_29552.cpp:34:76: error: stray '#' in program
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                            ^
0_0_20984109_29552.cpp:34:81: error: stray '#' in program
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                                 ^
0_0_20984109_29552.cpp:41:49: error: stray '#' in program
         blocks_colors[block_id][color] = r - l + 1;
                                                 ^
0_0_20984109_29552.cpp:42:64: error: stray '#' in program
         blocks_colors[block_id][old_color] = old_cnt - (r - l + 1);
                                                                ^
0_0_20984109_29552.cpp:46:28: error: stray '#' in program
         for(int i=l;i<=r;i++)
                            ^
0_0_20984109_29552.cpp:46:33: error: stray '#' in program
         for(int i=l;i<=r;i++)
                                 ^
0_0_20984109_29552.cpp:55:44: error: stray '#' in program
             blocks_colors[block_id][color]++;
                                            ^
0_0_20984109_29552.cpp:55:49: error: stray '#' in program
             blocks_colors[block_id][color]++;
                                                 ^
0_0_20984109_29552.cpp:67:27: error: stray '#' in program
             return r - l + 1;
                           ^
0_0_20984109_29552.cpp:71:32: error: stray '#' in program
             for(int i=l;i<=r;i++)
                                ^
0_0_20984109_29552.cpp:71:37: error: stray '#' in program
             for(int i=l;i<=r;i++)
                                     ^
0_0_20984109_29552.cpp:73:22: error: stray '#' in program
                     ++ret;
                      ^
0_0_20984109_29552.cpp:73:27: error: stray '#' in program
                     ++ret;
                           ^
0_0_20984109_29552.cpp:90:38: error: stray '#' in program
     int rr = block_len * (block_id1 + 1) - 1;
                                      ^
0_0_20984109_29552.cpp:94:26: error: stray '#' in program
     for(int id=block_id1+1;id<block_id2;id++)
                          ^
0_0_20984109_29552.cpp:94:48: error: stray '#' in program
     for(int id=block_id1+1;id<block_id2;id++)
                                                ^
0_0_20984109_29552.cpp:94:53: error: stray '#' in program
     for(int id=block_id1+1;id<block_id2;id++)
                                                     ^
0_0_20984109_29552.cpp:107:38: error: stray '#' in program
     int rr = block_len * (block_id1 + 1) - 1;
                                      ^
0_0_20984109_29552.cpp:109:31: error: stray '#' in program
     int ret = bf_query(l,rr) + bf_query(ll,r);
                               ^
0_0_20984109_29552.cpp:110:26: error: stray '#' in program
     for(int id=block_id1+1;id<block_id2;id++)
                          ^
0_0_20984109_29552.cpp:110:48: error: stray '#' in program
     for(int id=block_id1+1;id<block_id2;id++)
                                                ^
0_0_20984109_29552.cpp:110:53: error: stray '#' in program
     for(int id=block_id1+1;id<block_id2;id++)
                                                     ^
0_0_20984109_29552.cpp:112:18: error: stray '#' in program
             ret += blocks_colors[id][color];
                  ^
0_0_20984109_29552.cpp:119:23: error: stray '#' in program
     for(int i=0;i<n;i++)
                       ^
0_0_20984109_29552.cpp:119:28: error: stray '#' in program
     for(int i=0;i<n;i++)
                            ^
0_0_20984109_29552.cpp:122:29: error: stray '#' in program
     for(int i=0;i<=max_id;i++)
                             ^
0_0_20984109_29552.cpp:122:34: error: stray '#' in program
     for(int i=0;i<=max_id;i++)
                                  ^
0_0_20984109_29552.cpp:124:61: error: stray '#' in program
         printf("the %dth block[%d,%d]=>\n",i,i*block_len,(i+1)*block_len-1);
                                                             ^
0_0_20984109_29552.cpp:125:94: error: stray '#' in program
         for(map<int,int>::iterator it=blocks_colors[i].begin();it!=blocks_colors[i].end();it++)
                                                                                              ^
0_0_20984109_29552.cpp:125:99: error: stray '#' in program
         for(map<int,int>::iterator it=blocks_colors[i].begin();it!=blocks_colors[i].end();it++)
                                                                                                   ^
0_0_20984109_29552.cpp:139:27: error: stray '#' in program
         for(int i=0;i<n;i++)
                           ^
0_0_20984109_29552.cpp:139:32: error: stray '#' in program
         for(int i=0;i<n;i++)
                                ^
0_0_20984109_29552.cpp:142:39: error: stray '#' in program
         for(int i=0;i<=block_id_max;i++)
                                       ^
0_0_20984109_29552.cpp:142:44: error: stray '#' in program
         for(int i=0;i<=block_id_max;i++)
                                            ^
0_0_20984109_29552.cpp:144:27: error: stray '#' in program
         for(int i=0;i<n;i++)
                           ^
0_0_20984109_29552.cpp:144:32: error: stray '#' in program
         for(int i=0;i<n;i++)
                                ^
0_0_20984109_29552.cpp:147:45: error: stray '#' in program
             blocks_colors[block_id][ a[i] ]++;
                                             ^
0_0_20984109_29552.cpp:147:50: error: stray '#' in program
             blocks_colors[block_id][ a[i] ]++;
                                                  ^
0_0_20984109_29552.cpp:12:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
 const int N = 1e5 + 5;
                     ^
0_0_20984109_29552.cpp:12:25: error: expected unqualified-id before numeric constant
 const int N = 1e5 + 5;
                         ^
0_0_20984109_29552.cpp:14:16: error: size of array 'a' is not an integral constant-expression
 int n,color,a[N],block_len;
                ^
0_0_20984109_29552.cpp: In function 'void bf_update(int, int)':
0_0_20984109_29552.cpp:28:22: error: expected ')' before ';' token
         if(r - l + 1 == old_cnt)
                      ^
0_0_20984109_29552.cpp:28:36: error: expected ';' before ')' token
         if(r - l + 1 == old_cnt)
                                    ^
0_0_20984109_29552.cpp:34:70: error: expected ')' before ';' token
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                      ^
0_0_20984109_29552.cpp:34:74: error: 'i' was not declared in this scope
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                          ^
0_0_20984109_29552.cpp:34:82: error: lvalue required as unary '&' operand
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                                  ^
0_0_20984109_29552.cpp:34:85: error: expected primary-expression before ')' token
         for(int i=block_len*block_id;i<n && i<block_len*(block_id+1);i++)
                                                                                     ^
0_0_20984109_29552.cpp:42:67: error: expected ')' before ';' token
         blocks_colors[block_id][old_color] = old_cnt - (r - l + 1);
                                                                   ^
0_0_20984109_29552.cpp:42:70: error: expected ';' before ')' token
         blocks_colors[block_id][old_color] = old_cnt - (r - l + 1);
                                                                      ^
0_0_20984109_29552.cpp:46:31: error: expected ')' before ';' token
         for(int i=l;i<=r;i++)
                               ^
0_0_20984109_29552.cpp:46:34: error: lvalue required as unary '&' operand
         for(int i=l;i<=r;i++)
                                  ^
0_0_20984109_29552.cpp:46:37: error: expected primary-expression before ')' token
         for(int i=l;i<=r;i++)
                                     ^
0_0_20984109_29552.cpp: In function 'int bf_query(int, int)':
0_0_20984109_29552.cpp:68:9: error: expected '}' before 'else'
         else
         ^
0_0_20984109_29552.cpp:71:35: error: expected ')' before ';' token
             for(int i=l;i<=r;i++)
                                   ^
0_0_20984109_29552.cpp:71:38: error: lvalue required as unary '&' operand
             for(int i=l;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-25 20:17:04, Gzip enabled