0_0_27894804_9883.cpp:12:7: error: 'maxn' was not declared in this scope
int c[maxn+1];
^
0_0_27894804_9883.cpp: In function 'int sum(int)':
0_0_27894804_9883.cpp:22:16: error: 'c' was not declared in this scope
sum += c[x];
^
0_0_27894804_9883.cpp: In function 'void add(int, int)':
0_0_27894804_9883.cpp:32:9: error: 'c' was not declared in this scope
c[x] += val;
^
0_0_27894804_9883.cpp: At global scope:
0_0_27894804_9883.cpp:39:6: error: 'maxn' was not declared in this scope
} a1[maxn];
^
0_0_27894804_9883.cpp: In function 'int main()':
0_0_27894804_9883.cpp:50:16: error: 'c' was not declared in this scope
memset(c,0,sizeof(c));
^
0_0_27894804_9883.cpp:51:16: error: 'val' was not declared in this scope
memset(val,0,sizeof(val));
^
0_0_27894804_9883.cpp:54:27: error: 'a1' was not declared in this scope
scanf("%d%d",&a1[i].x,&a1[i].y);
^
0_0_27894804_9883.cpp:55:13: error: 'b' was not declared in this scope
b[cnt++]=a1[i].x;
^
0_0_27894804_9883.cpp:58:14: error: 'b' was not declared in this scope
sort(b,b+2*n);
^
0_0_27894804_9883.cpp:63:42: error: 'a1' was not declared in this scope
int pos1=lower_bound(b,b+len,a1[i].x)-b+1;
^
|