0_0_28953041_7956.cpp: In function 'void init()':
0_0_28953041_7956.cpp:19:9: error: 'minPoint' was not declared in this scope
minPoint[i][0] = maxPoint[i][0] = a[i];
^
0_0_28953041_7956.cpp:19:26: error: 'maxPoint' was not declared in this scope
minPoint[i][0] = maxPoint[i][0] = a[i];
^
0_0_28953041_7956.cpp:24:13: error: 'minPoint' was not declared in this scope
minPoint[i][j] = min(minPoint[i][j - 1], minPoint[i + p][j - 1]);
^
0_0_28953041_7956.cpp:25:13: error: 'maxPoint' was not declared in this scope
maxPoint[i][j] = max(maxPoint[i][j - 1], maxPoint[i + p][j - 1]);
^
0_0_28953041_7956.cpp: In function 'int queryMin(int, int)':
0_0_28953041_7956.cpp:31:16: error: 'minPoint' was not declared in this scope
return min(minPoint[l][k], minPoint[r - (1 << k) + 1][k]);
^
0_0_28953041_7956.cpp: In function 'int queryMax(int, int)':
0_0_28953041_7956.cpp:36:16: error: 'maxPoint' was not declared in this scope
return max(maxPoint[l][k], maxPoint[r - (1 << k) + 1][k]);
^
0_0_28953041_7956.cpp: In function 'bool calc(node)':
0_0_28953041_7956.cpp:39:10: error: 'struct node' has no member named 'mx'
if (tmp.mx-tmp.mi+1==cnt) return true;
^
0_0_28953041_7956.cpp:39:17: error: 'struct node' has no member named 'mi'
if (tmp.mx-tmp.mi+1==cnt) return true;
^
0_0_28953041_7956.cpp: In function 'void add(int)':
0_0_28953041_7956.cpp:52:6: error: 'mp' was not declared in this scope
if (mp[tmp]==0){
^
0_0_28953041_7956.cpp:55:2: error: 'mp' was not declared in this scope
mp[tmp]++;
^
0_0_28953041_7956.cpp: In function 'void del(int)':
0_0_28953041_7956.cpp:59:6: error: 'mp' was not declared in this scope
if (mp[tmp]==1){
^
0_0_28953041_7956.cpp:62:2: error: 'mp' was not declared in this scope
mp[tmp]--;
^
0_0_28953041_7956.cpp: In function 'bool calc(node)':
0_0_28953041_7956.cpp:64:6: error: redefinition of 'bool calc(node)'
bool calc(node tmp){
^
0_0_28953041_7956.cpp:38:6: note: 'bool calc(node)' previously defined here
bool calc(node tmp){
^
0_0_28953041_7956.cpp: In function 'int main()':
0_0_28953041_7956.cpp:83:21: error: 'mp' was not declared in this scope
ll=1,rr=0; cnt=0; mp.clear();
^
|