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_34748445_2632.cpp: In member function 'void<anonymous struct>::add(long long int, long long int)':
0_0_34748445_2632.cpp:43:11: error: 'n' was not declared in this scope
   for(;x<=n;x+=x&(-x))c[x]+=v;
           ^
0_0_34748445_2632.cpp:43:23: error: 'c' was not declared in this scope
   for(;x<=n;x+=x&(-x))c[x]+=v;
                       ^
0_0_34748445_2632.cpp: In member function 'long long int<anonymous struct>::ask(long long int)':
0_0_34748445_2632.cpp:47:25: error: 'c' was not declared in this scope
   for(;x;x-=x&(-x))ans+=c[x];
                         ^
0_0_34748445_2632.cpp: In function 'void reverse_C(long long int)':
0_0_34748445_2632.cpp:52:6: error: 'c' was not declared in this scope
  if(!c[x]){
      ^
0_0_34748445_2632.cpp:53:11: error: 'C' was not declared in this scope
   c[x]=1; C.insert(i); szsz.add(i,1);
           ^
0_0_34748445_2632.cpp:53:20: error: 'i' was not declared in this scope
   c[x]=1; C.insert(i); szsz.add(i,1);
                    ^
0_0_34748445_2632.cpp:55:11: error: 'C' was not declared in this scope
   c[x]=0; C.erase(i);  szsz.add(i,-1);
           ^
0_0_34748445_2632.cpp:55:19: error: 'i' was not declared in this scope
   c[x]=0; C.erase(i);  szsz.add(i,-1);
                   ^
0_0_34748445_2632.cpp: In function 'void Reverse_c(long long int)':
0_0_34748445_2632.cpp:59:2: error: 'ans' was not declared in this scope
  ans-=calc((*it).fi,(*it).se);
  ^
0_0_34748445_2632.cpp:59:29: error: 'calc' was not declared in this scope
  ans-=calc((*it).fi,(*it).se);
                             ^
0_0_34748445_2632.cpp:60:12: error: 'x1' was not declared in this scope
  reverse_C(x1);
            ^
0_0_34748445_2632.cpp: In function 'int main()':
0_0_34748445_2632.cpp:69:3: error: 'n' was not declared in this scope
   n=read(); m=read();
   ^
0_0_34748445_2632.cpp:69:13: error: 'm' was not declared in this scope
   n=read(); m=read();
             ^
0_0_34748445_2632.cpp:70:15: error: 'total' was not declared in this scope
   For(i,1,n)++total,++ans,reverse_C(i);
               ^
0_0_34748445_2632.cpp:70:23: error: 'ans' was not declared in this scope
   For(i,1,n)++total,++ans,reverse_C(i);
                       ^
0_0_34748445_2632.cpp:71:15: error: 'up' was not declared in this scope
   For(i,1,n-1)up[i]=1,down[i]=1,++total,++total,++ans,++ans;
               ^
0_0_34748445_2632.cpp:71:23: error: 'down' was not declared in this scope
   For(i,1,n-1)up[i]=1,down[i]=1,++total,++total,++ans,++ans;
                       ^
0_0_34748445_2632.cpp:71:35: error: 'total' was not declared in this scope
   For(i,1,n-1)up[i]=1,down[i]=1,++total,++total,++ans,++ans;
                                   ^
0_0_34748445_2632.cpp:71:51: error: 'ans' was not declared in this scope
   For(i,1,n-1)up[i]=1,down[i]=1,++total,++total,++ans,++ans;
                                                   ^
0_0_34748445_2632.cpp:74:4: error: 'opt' was not declared in this scope
    opt=read();x1=read(),y1=read(),x2=read(),y2=read();
    ^
0_0_34748445_2632.cpp:74:15: error: 'x1' was not declared in this scope
    opt=read();x1=read(),y1=read(),x2=read(),y2=read();
               ^
0_0_34748445_2632.cpp:15:12: error: 'y11111111111111' was not declared in this scope
 #define y1 y11111111111111
            ^
0_0_34748445_2632.cpp:74:25: note: in expansion of macro 'y1'
    opt=read();x1=read(),y1=read(),x2=read(),y2=read();
                         ^
0_0_34748445_2632.cpp:74:35: error: 'x2' was not declared in this scope
    opt=read();x1=read(),y1=read(),x2=read(),y2=read();
                                   ^
0_0_34748445_2632.cpp:74:45: error: 'y2' was not declared in this scope
    opt=read();x1=read(),y1=read(),x2=read(),y2=read();
                                             ^
0_0_34748445_2632.cpp:77:8: error: 'total' was not declared in this scope
      ++total;
        ^
0_0_34748445_2632.cpp:78:10: error: 'up' was not declared in this scope
      if (up[i-1]&&down[i-1]){
          ^
0_0_34748445_2632.cpp:78:19: error: 'down' was not declared in this scope
      if (up[i-1]&&down[i-1]){
                   ^
0_0_34748445_2632.cpp:81:17: error: 'x' was not declared in this scope
       Reverse_c(x);
                 ^
0_0_34748445_2632.cpp:85:17: error: 'x' was not declared in this scope
       Reverse_c(x);
                 ^
0_0_34748445_2632.cpp:88:8: error: 'total' was not declared in this scope
      --total;
        ^
0_0_34748445_2632.cpp:89:10: error: 'up' was not declared in this scope
      if (up[i-1]&&down[i-1]){
          ^
0_0_34748445_2632.cpp:89:19: error: 'down' was not declared in this scope
      if (up[i-1]&&down[i-1]){
                   ^
0_0_34748445_2632.cpp:92:17: error: 'x' was not declared in this scope
       Reverse_c(x);
                 ^
0_0_34748445_2632.cpp:96:17: error: 'x' was not declared in this scope
       Reverse_c(x);
                 ^
0_0_34748445_2632.cpp:102:8: error: 'total' was not declared in this scope
      ++total;
        ^
0_0_34748445_2632.cpp:103:14: error: 'up' was not declared in this scope
      if(!y1) up[x1]=1;
              ^
0_0_34748445_2632.cpp:104:11: error: 'down' was not declared in this scope
      else down[x1]=1;
           ^
0_0_34748445_2632.cpp:105:10: error: 'up' was not declared in this scope
      if (up[x1]&&down[x1]){
          ^
0_0_34748445_2632.cpp:105:18: error: 'down' was not declared in this scope
      if (up[x1]&&down[x1]){
                  ^
0_0_34748445_2632.cpp:10:12: error: 'std::multiset<std::pair<long long int, long long int> >::iterator' has no member named 'first'
 #define fi first
            ^
0_0_34748445_2632.cpp:110:14: note: in expansion of macro 'fi'
         L=it.fi; s.erase(it);
              ^
0_0_34748445_2632.cpp:111:9: error: 'ans' was not declared in this scope
         ans-=calc((*it).fi,(*it).se);
         ^
0_0_34748445_2632.cpp:115:11: error: request for member 'it' in 'R', which is of non-class type 'long long int'
         R.it.se; s.erase(it);
           ^
0_0_34748445_2632.cpp:116:9: error: 'ans' was not declared in this scope
         ans-=calc((*it).fi,(*it).se);
         ^
0_0_34748445_2632.cpp:119:8: error: 'ans' was not declared in this scope
        ans+=calc(L,R);
        ^
0_0_34748445_2632.cpp:123:10: error: 'up' was not declared in this scope
      if (up[x1]&&down[x1]){
          ^
0_0_34748445_2632.cpp:123:18: error: 'down' was not declared in this scope
      if (up[x1]&&down[x1]){
                  ^
0_0_34748445_2632.cpp:127:8: error: 'ans' was not declared in this scope
        ans-=calc((*it).fi,(*it).se);
        ^
0_0_34748445_2632.cpp:138:8: error: 'total' was not declared in this scope
      --total;
        ^
0_0_34748445_2632.cpp:139:14: error: 'up' was not declared in this scope
      if(!y1) up[x1]=0;
              ^
0_0_34748445_2632.cpp:140:11: error: 'down' was not declared in this scope
      else down[x1]=0;
           ^
0_0_34748445_2632.cpp:143:10: error: 'total' was not declared in this scope
    write(total-ans);puts("");
          ^
0_0_34748445_2632.cpp:143:16: error: 'ans' was not declared in this scope
    write(total-ans);puts("");
                ^


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-09-29 20:20:37, Gzip enabled