0_0_20975697_31637.cpp:20:22: error: stray '#' in program
int mid = (l+r)>>1;
^
0_0_20975697_31637.cpp:22:18: error: stray '#' in program
init(mid+1,r,2*i+1);
^
0_0_20975697_31637.cpp:22:30: error: stray '#' in program
init(mid+1,r,2*i+1);
^
0_0_20975697_31637.cpp:29:16: error: stray '#' in program
a[i].n++;
^
0_0_20975697_31637.cpp:29:21: error: stray '#' in program
a[i].n++;
^
0_0_20975697_31637.cpp:32:27: error: stray '#' in program
int mid = (a[i].l+a[i].r)>>1;
^
0_0_20975697_31637.cpp:36:24: error: stray '#' in program
insert(2*i+1,x,y);
^
0_0_20975697_31637.cpp:40:24: error: stray '#' in program
insert(2*i+1,mid+1,y);
^
0_0_20975697_31637.cpp:40:34: error: stray '#' in program
insert(2*i+1,mid+1,y);
^
0_0_20975697_31637.cpp:48:34: error: stray '#' in program
for(i = a[x].l; i<=a[x].r; i++)//该区间所有编号都被刷了一次
^
0_0_20975697_31637.cpp:48:39: error: stray '#' in program
for(i = a[x].l; i<=a[x].r; i++)//该区间所有编号都被刷了一次
^
0_0_20975697_31637.cpp:49:16: error: stray '#' in program
ans[i]+=a[x].n;
^
0_0_20975697_31637.cpp:53:13: error: stray '#' in program
add(2*x+1);
^
0_0_20975697_31637.cpp:62:28: error: stray '#' in program
for(i = 1; i<=n; i++)
^
0_0_20975697_31637.cpp:62:33: error: stray '#' in program
for(i = 1; i<=n; i++)
^
0_0_20975697_31637.cpp:70:28: error: stray '#' in program
for(i = 2; i<=n; i++)
^
0_0_20975697_31637.cpp:70:33: error: stray '#' in program
for(i = 2; i<=n; i++)
^
0_0_20975697_31637.cpp: In function 'void init(int, int, int)':
0_0_20975697_31637.cpp:20:25: error: expected ')' before ';' token
int mid = (l+r)>>1;
^
0_0_20975697_31637.cpp:20:27: error: expected ';' before ')' token
int mid = (l+r)>>1;
^
0_0_20975697_31637.cpp:22:21: error: expected ')' before ';' token
init(mid+1,r,2*i+1);
^
0_0_20975697_31637.cpp:22:35: error: expected ';' before ')' token
init(mid+1,r,2*i+1);
^
0_0_20975697_31637.cpp: In function 'void insert(int, int, int)':
0_0_20975697_31637.cpp:29:22: error: lvalue required as unary '&' operand
a[i].n++;
^
0_0_20975697_31637.cpp:30:5: error: 'else' without a previous 'if'
else
^
0_0_20975697_31637.cpp:32:30: error: expected ')' before ';' token
int mid = (a[i].l+a[i].r)>>1;
^
0_0_20975697_31637.cpp:32:37: error: expected ';' before ')' token
int mid = (a[i].l+a[i].r)>>1;
^
0_0_20975697_31637.cpp:36:27: error: expected ')' before ';' token
insert(2*i+1,x,y);
^
0_0_20975697_31637.cpp:36:33: error: expected ';' before ')' token
insert(2*i+1,x,y);
^
0_0_20975697_31637.cpp:37:9: error: 'else' without a previous 'if'
else
^
0_0_20975697_31637.cpp:40:27: error: expected ')' before ';' token
insert(2*i+1,mid+1,y);
^
0_0_20975697_31637.cpp:40:41: error: expected ';' before ')' token
insert(2*i+1,mid+1,y);
^
0_0_20975697_31637.cpp: In function 'void add(int)':
0_0_20975697_31637.cpp:48:37: error: expected ')' before ';' token
for(i = a[x].l; i<=a[x].r; i++)//该区间所有编号都被刷了一次
^
0_0_20975697_31637.cpp:48:40: error: lvalue required as unary '&' operand
for(i = a[x].l; i<=a[x].r; i++)//该区间所有编号都被刷了一次
^
0_0_20975697_31637.cpp:48:43: error: expected primary-expression before ')' token
for(i = a[x].l; i<=a[x].r; i++)//该区间所有编号都被刷了一次
^
0_0_20975697_31637.cpp:49:20: error: expected primary-expression before '=' token
ans[i]+=a[x].n;
^
0_0_20975697_31637.cpp:53:16: error: expected ')' before ';' token
add(2*x+1);
^
0_0_20975697_31637.cpp:53:18: error: expected ';' before ')' token
add(2*x+1);
^
0_0_20975697_31637.cpp: In function 'int main()':
0_0_20975697_31637.cpp:62:31: error: expected ')' before ';' token
for(i = 1; i<=n; i++)
^
0_0_20975697_31637.cpp:62:34: error: lvalue required as unary '&' operand
for(i = 1; i<=n; i++)
^
0_0_20975697_31637.cpp:62:37: error: expected primary-expression before ')' token
for(i = 1; i<=n; i++)
^
0_0_20975697_31637.cpp:70:31: error: expected ')' before ';' token
for(i = 2; i<=n; i++)
^
0_0_20975697_31637.cpp:70:34: error: lvalue required as unary '&' operand
for(i = 2; i<=n; i++)
^
0_0_20975697_31637.cpp:70:37: error: expected primary-expression before ')' token
for(i = 2; i<=n; i++)
^
|