0_0_20973551_17579.cpp:9:20: error: stray '#' in program
const int maxn=5e4+10;
^
0_0_20973551_17579.cpp:30:14: error: stray '#' in program
c[x]+=val;
^
0_0_20973551_17579.cpp:31:11: error: stray '#' in program
x+=lowbit(x);
^
0_0_20973551_17579.cpp:39:11: error: stray '#' in program
s+=c[x];
^
0_0_20973551_17579.cpp:53:23: error: stray '#' in program
for(i=0;i<n;i++)
^
0_0_20973551_17579.cpp:53:28: error: stray '#' in program
for(i=0;i<n;i++)
^
0_0_20973551_17579.cpp:58:34: error: stray '#' in program
if(x1<r&&x1>l)tt++;//平行y轴,且在(l,r)内的线
^
0_0_20973551_17579.cpp:58:39: error: stray '#' in program
if(x1<r&&x1>l)tt++;//平行y轴,且在(l,r)内的线
^
0_0_20973551_17579.cpp:63:24: error: stray '#' in program
e[t].a=l*k+b;
^
0_0_20973551_17579.cpp:64:17: error: stray '#' in program
e[t++].b=r*k+b;
^
0_0_20973551_17579.cpp:64:22: error: stray '#' in program
e[t++].b=r*k+b;
^
0_0_20973551_17579.cpp:64:34: error: stray '#' in program
e[t++].b=r*k+b;
^
0_0_20973551_17579.cpp:66:18: error: stray '#' in program
sort(e,e+t,cmp1);
^
0_0_20973551_17579.cpp:67:23: error: stray '#' in program
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:67:28: error: stray '#' in program
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:68:24: error: stray '#' in program
e[i].num=i+1;
^
0_0_20973551_17579.cpp:69:18: error: stray '#' in program
sort(e,e+t,cmp2);
^
0_0_20973551_17579.cpp:71:23: error: stray '#' in program
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:71:28: error: stray '#' in program
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:74:17: error: stray '#' in program
ans+=sum(e[i].num-1);
^
0_0_20973551_17579.cpp:76:27: error: stray '#' in program
printf("%d\n",ans+tt*t);//加上平行y轴的直线所产生的交点
^
0_0_20973551_17579.cpp:9:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
const int maxn=5e4+10;
^
0_0_20973551_17579.cpp:9:24: error: expected unqualified-id before numeric constant
const int maxn=5e4+10;
^
0_0_20973551_17579.cpp:13:8: error: size of array 'e' is not an integral constant-expression
}e[maxn];
^
0_0_20973551_17579.cpp:15:11: error: size of array 'c' is not an integral constant-expression
int c[maxn];
^
0_0_20973551_17579.cpp: In function 'void add(int, int)':
0_0_20973551_17579.cpp:30:18: error: expected primary-expression before '=' token
c[x]+=val;
^
0_0_20973551_17579.cpp:31:15: error: expected primary-expression before '=' token
x+=lowbit(x);
^
0_0_20973551_17579.cpp: In function 'int sum(int)':
0_0_20973551_17579.cpp:39:15: error: expected primary-expression before '=' token
s+=c[x];
^
0_0_20973551_17579.cpp: In function 'int main()':
0_0_20973551_17579.cpp:53:26: error: expected ')' before ';' token
for(i=0;i<n;i++)
^
0_0_20973551_17579.cpp:53:29: error: lvalue required as unary '&' operand
for(i=0;i<n;i++)
^
0_0_20973551_17579.cpp:53:32: error: expected primary-expression before ')' token
for(i=0;i<n;i++)
^
0_0_20973551_17579.cpp:66:19: error: invalid operands of types 'node [1]' and 'int' to binary 'operator&'
sort(e,e+t,cmp1);
^
0_0_20973551_17579.cpp:66:28: error: expected ';' before ')' token
sort(e,e+t,cmp1);
^
0_0_20973551_17579.cpp:67:26: error: expected ')' before ';' token
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:67:29: error: lvalue required as unary '&' operand
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:67:32: error: expected primary-expression before ')' token
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:69:19: error: invalid operands of types 'node [1]' and 'int' to binary 'operator&'
sort(e,e+t,cmp2);
^
0_0_20973551_17579.cpp:69:28: error: expected ';' before ')' token
sort(e,e+t,cmp2);
^
0_0_20973551_17579.cpp:71:26: error: expected ')' before ';' token
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:71:29: error: lvalue required as unary '&' operand
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:71:32: error: expected primary-expression before ')' token
for(i=0;i<t;i++)
^
0_0_20973551_17579.cpp:76:30: error: expected ')' before ';' token
printf("%d\n",ans+tt*t);//加上平行y轴的直线所产生的交点
^
0_0_20973551_17579.cpp:76:35: error: expected ';' before ')' token
printf("%d\n",ans+tt*t);//加上平行y轴的直线所产生的交点
^
|