0_0_17208750_12290.cpp:26:1: error: expected initializer before 'void'
void build(int root, int l, int r);
^
0_0_17208750_12290.cpp: In function 'void build(int, int, int)':
0_0_17208750_12290.cpp:31:15: error: 'tree' was not declared in this scope
if(l == r){ tree[root] = (temp[root] - D)%MOD; return;}
^
0_0_17208750_12290.cpp: In function 'void pushUp(int)':
0_0_17208750_12290.cpp:39:3: error: 'tree' was not declared in this scope
tree[root] = (tree[root << 1] * tree[root<<1 | 1]) %MOD;
^
0_0_17208750_12290.cpp: In function 'void lookUp(int, int, int, int, int)':
0_0_17208750_12290.cpp:44:12: error: 'tree' was not declared in this scope
return tree[root];
^
0_0_17208750_12290.cpp:44:21: error: return-statement with a value, in function returning 'void' [-fpermissive]
return tree[root];
^
0_0_17208750_12290.cpp:47:3: error: 'ret' was not declared in this scope
ret = 1;
^
0_0_17208750_12290.cpp: At global scope:
0_0_17208750_12290.cpp:50:6: error: expected unqualified-id before 'return'
} return ret;
^
0_0_17208750_12290.cpp:51:1: error: expected declaration before '}' token
}
^
|