0_0_29013107_8288.cpp: In function 'void build(int, int, int)':
0_0_29013107_8288.cpp:9:8: error: expected primary-expression before ')' token
if()
^
0_0_29013107_8288.cpp:10:1: error: expected primary-expression before '}' token
}
^
0_0_29013107_8288.cpp: In function 'void q(int, int, int, int, int)':
0_0_29013107_8288.cpp:16:22: error: return-statement with a value, in function returning 'void' [-fpermissive]
return sum[rt];
^
0_0_29013107_8288.cpp:19:16: error: invalid operands of types 'int' and 'void' to binary 'operator+'
if(L<=m)ans+=q(l,m,rt<<1 ,L,R);
^
0_0_29013107_8288.cpp:19:16: error: in evaluation of 'operator+=(int, void)'
0_0_29013107_8288.cpp:20:16: error: invalid operands of types 'int' and 'void' to binary 'operator+'
if(R> m)ans+=q(m+1,r,rt<<1|1,L,R);
^
0_0_29013107_8288.cpp:20:16: error: in evaluation of 'operator+=(int, void)'
0_0_29013107_8288.cpp:21:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return ans;
^
0_0_29013107_8288.cpp: In function 'int main()':
0_0_29013107_8288.cpp:29:25: error: 'stdin' was not declared in this scope
freopen("i.txt","r",stdin);
^
0_0_29013107_8288.cpp:29:30: error: 'freopen' was not declared in this scope
freopen("i.txt","r",stdin);
^
0_0_29013107_8288.cpp:31:11: error: 'cin' was not declared in this scope
while(cin>>n>>m)
^
|