0_0_17024981_26072.cpp: In function 'void init()':
0_0_17024981_26072.cpp:5:19: error: 'MAX' was not declared in this scope
for(int i=1;i<MAX;i++)
^
0_0_17024981_26072.cpp:11:13: error: 'd' was not declared in this scope
d[i][j]=1;
^
0_0_17024981_26072.cpp:13:13: error: 'c' was not declared in this scope
c[i][j]=lowbit(i)*lowbit(j);
^
0_0_17024981_26072.cpp:13:29: error: 'lowbit' was not declared in this scope
c[i][j]=lowbit(i)*lowbit(j);
^
0_0_17024981_26072.cpp: In function 'int sum(int, int)':
0_0_17024981_26072.cpp:25:32: error: 'lowbit' was not declared in this scope
for(int x=i;x>0;x-=lowbit(x))
^
0_0_17024981_26072.cpp:31:18: error: 'c' was not declared in this scope
tot+=c[x][y];
^
0_0_17024981_26072.cpp: In function 'void add(int, int, int)':
0_0_17024981_26072.cpp:43:19: error: 'MAX' was not declared in this scope
for(int x=i;x<MAX;x+=lowbit(x))
^
0_0_17024981_26072.cpp:43:34: error: 'lowbit' was not declared in this scope
for(int x=i;x<MAX;x+=lowbit(x))
^
0_0_17024981_26072.cpp:49:13: error: 'c' was not declared in this scope
c[x][y]+=v;
^
|