0_0_24725855_16400.cpp:52:8: error: missing terminating " character
scanf("%d,&n);
^
0_0_24725855_16400.cpp:5:1: error: 'struce' does not name a type
struce li{
^
0_0_24725855_16400.cpp:9:2: error: 'stu' does not name a type
}stu[500];
^
0_0_24725855_16400.cpp: In function 'void build(int, int, int)':
0_0_24725855_16400.cpp:13:6: error: 'stu' was not declared in this scope
stu[step].val=0;
^
0_0_24725855_16400.cpp: In function 'int query(int, int, int)':
0_0_24725855_16400.cpp:24:10: error: 'stu' was not declared in this scope
if(l==stu[step].left&&r==stu[step].right) return stu[step].val;
^
0_0_24725855_16400.cpp:25:13: error: 'stu' was not declared in this scope
int mid=(stu[step].left+stu[step].right)>>1;
^
0_0_24725855_16400.cpp: In function 'void add1(int, int, int, int)':
0_0_24725855_16400.cpp:33:4: error: 'stu' was not declared in this scope
stu[step].val+=add2;
^
0_0_24725855_16400.cpp:39:27: error: invalid conversion from 'void (*)(int, int, int, int)' to 'int' [-fpermissive]
add1(l,mid,add1,step<<1);
^
0_0_24725855_16400.cpp:31:6: note: initializing argument 3 of 'void add1(int, int, int, int)'
void add1(int l,int r,int add2,int step)
^
0_0_24725855_16400.cpp:40:26: error: too few arguments to function 'void add1(int, int, int, int)'
add1(mid+1,r,step<<1|1);
^
0_0_24725855_16400.cpp:31:6: note: declared here
void add1(int l,int r,int add2,int step)
^
0_0_24725855_16400.cpp: In function 'int main()':
0_0_24725855_16400.cpp:53:20: error: expected ')' before ';' token
build(1,n,1);
^
0_0_24725855_16400.cpp:77:27: error: 'adda' was not declared in this scope
adda(a,a,-b,1);
^
0_0_24725855_16400.cpp:82:1: error: expected '}' at end of input
}
^
|