0_0_21633848_8107.cpp: In function 'void Update(int, int)':
0_0_21633848_8107.cpp:3:10: error: 'M' was not declared in this scope
p += M;
^
0_0_21633848_8107.cpp:4:5: error: 'val' was not declared in this scope
val[p] = v;
^
0_0_21633848_8107.cpp:8:44: error: 'max' was not declared in this scope
val[p] = max(val[p<<1], val[p<<1|1]);
^
0_0_21633848_8107.cpp: In function 'int Query(int, int)':
0_0_21633848_8107.cpp:14:17: error: 'M' was not declared in this scope
for(l = l + M - 1, r = r + M + 1; l^r^1; l >>= 1, r >>= 1)
^
0_0_21633848_8107.cpp:16:28: error: 'val' was not declared in this scope
if(~l&1) ans = max(val[l^1], ans); //l为偶数
^
0_0_21633848_8107.cpp:16:41: error: 'max' was not declared in this scope
if(~l&1) ans = max(val[l^1], ans); //l为偶数
^
0_0_21633848_8107.cpp:17:27: error: 'val' was not declared in this scope
if(r&1) ans = max(val[r^1], ans); //r为奇数
^
0_0_21633848_8107.cpp:17:40: error: 'max' was not declared in this scope
if(r&1) ans = max(val[r^1], ans); //r为奇数
^
0_0_21633848_8107.cpp: At global scope:
0_0_21633848_8107.cpp:21:1: error: expected unqualified-id before 'for'
for(M = 1; M < n + 2; M <<= 1);
^
0_0_21633848_8107.cpp:21:12: error: 'M' does not name a type
for(M = 1; M < n + 2; M <<= 1);
^
0_0_21633848_8107.cpp:21:23: error: 'M' does not name a type
for(M = 1; M < n + 2; M <<= 1);
^
|