0_0_29137251_23584.cpp:15:7: error: expected initializer before 'data'
Node data[maxsize];
^
0_0_29137251_23584.cpp: In function 'void update(int, int, int, int, int)':
0_0_29137251_23584.cpp:21:9: error: 'data' was not declared in this scope
if(data[k].tag==1)
^
0_0_29137251_23584.cpp:25:10: error: 'data' was not declared in this scope
data[k].sum=sqrt(data[k].sum);
^
0_0_29137251_23584.cpp:35:9: error: 'data' was not declared in this scope
if(data[lc].tag&&data[rc].tag)
^
0_0_29137251_23584.cpp:37:6: error: 'data' was not declared in this scope
data[k].sum=data[lc].sum+data[rc].sum;
^
0_0_29137251_23584.cpp: In function 'll query(int, int, int, int, int)':
0_0_29137251_23584.cpp:46:17: error: 'data' was not declared in this scope
return data[k].sum;
^
0_0_29137251_23584.cpp: In function 'void init(int, int, int)':
0_0_29137251_23584.cpp:54:24: error: 'data' was not declared in this scope
scanf("%lld",&data[k].sum);
^
0_0_29137251_23584.cpp:62:9: error: 'data' was not declared in this scope
if(data[lc].tag&&data[rc].tag)
^
0_0_29137251_23584.cpp:64:5: error: 'data' was not declared in this scope
data[k].sum=data[lc].sum+data[rc].sum;
^
0_0_29137251_23584.cpp: In function 'int main()':
0_0_29137251_23584.cpp:72:17: error: 'data' was not declared in this scope
memset(data,0,sizeof(Node)*4*n);
^
|