0_0_13725150_18698.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13725150_18698.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13725150_18698.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13725150_18698.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13725150_18698.cpp:12:1: error: expected ']' before 'void'
void PushUp(int root) //�ڵ㱣���������ֵ
^
0_0_13725150_18698.cpp: In function 'void Build_Tree(int, int, int)':
0_0_13725150_18698.cpp:21:16: error: 'segtree' was not declared in this scope
scanf("%d", &segtree[root]);
^
0_0_13725150_18698.cpp:21:29: error: 'scanf' was not declared in this scope
scanf("%d", &segtree[root]);
^
0_0_13725150_18698.cpp:25:19: error: expected ',' or ';' before numeric constant
int m = (l + r) 1;
^
0_0_13725150_18698.cpp:28:13: error: 'PushUp' was not declared in this scope
PushUp(root);
^
0_0_13725150_18698.cpp: In function 'void Update(int, int, int, int, int)':
0_0_13725150_18698.cpp:35:3: error: 'segtree' was not declared in this scope
segtree[root] = data;
^
0_0_13725150_18698.cpp:38:19: error: expected ',' or ';' before numeric constant
int m = (l + r) 1;
^
0_0_13725150_18698.cpp:40:3: error: expected ')' before 'Update'
Update(pos, data, lson);
^
0_0_13725150_18698.cpp:43:13: error: 'PushUp' was not declared in this scope
PushUp(root);
^
0_0_13725150_18698.cpp: In function 'int Query(int, int, int, int, int)':
0_0_13725150_18698.cpp:50:3: error: expected ')' before 'return'
return segtree[root];
^
0_0_13725150_18698.cpp:51:19: error: expected ',' or ';' before numeric constant
int m = (l + r) 1;
^
0_0_13725150_18698.cpp:53:3: error: expected ')' before 'sum'
sum = max(sum, Query(L, R, lson));
^
0_0_13725150_18698.cpp:54:8: error: expected ')' before 'm'
if(R m)
^
0_0_13725150_18698.cpp:55:35: error: 'max' was not declared in this scope
sum = max(sum, Query(L, R, rson));
^
0_0_13725150_18698.cpp: In function 'int main()':
0_0_13725150_18698.cpp:64:32: error: 'scanf' was not declared in this scope
while(scanf("%d%d", &num, &que) != EOF)
^
0_0_13725150_18698.cpp:64:37: error: 'EOF' was not declared in this scope
while(scanf("%d%d", &num, &que) != EOF)
^
0_0_13725150_18698.cpp:71:3: error: expected ';' before '{' token
{
^
0_0_13725150_18698.cpp:71:3: error: expected primary-expression before '{' token
0_0_13725150_18698.cpp:71:3: error: expected ')' before '{' token
0_0_13725150_18698.cpp:76:42: error: 'printf' was not declared in this scope
printf("%d\n", Query(a, b, 1, num, 1));
^
|