0_0_35444234_9696.cpp: In function 'void update(int, ll, int, int, int)':
0_0_35444234_9696.cpp:34:10: error: expected unqualified-id before '[' token
auto [pf, sf, sum, best] = t[u];
^
0_0_35444234_9696.cpp:35:25: error: 'pf' was not declared in this scope
return void(t[u] = {pf + v, sf + v, sum + v, best + v});
^
0_0_35444234_9696.cpp:35:33: error: 'sf' was not declared in this scope
return void(t[u] = {pf + v, sf + v, sum + v, best + v});
^
0_0_35444234_9696.cpp:35:41: error: 'sum' was not declared in this scope
return void(t[u] = {pf + v, sf + v, sum + v, best + v});
^
0_0_35444234_9696.cpp:35:50: error: 'best' was not declared in this scope
return void(t[u] = {pf + v, sf + v, sum + v, best + v});
^
0_0_35444234_9696.cpp:35:22: error: no match for 'operator=' (operand types are 'node' and '<brace-enclosed initializer list>')
return void(t[u] = {pf + v, sf + v, sum + v, best + v});
^
0_0_35444234_9696.cpp:35:22: note: candidates are:
0_0_35444234_9696.cpp:9:8: note: node& node::operator=(const node&)
struct node {
^
0_0_35444234_9696.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const node&'
0_0_35444234_9696.cpp:9:8: note: node& node::operator=(node&&)
0_0_35444234_9696.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'node&&'
0_0_35444234_9696.cpp:35:59: error: return-statement with a value, in function returning 'void' [-fpermissive]
return void(t[u] = {pf + v, sf + v, sum + v, best + v});
^
0_0_35444234_9696.cpp: In function 'int main()':
0_0_35444234_9696.cpp:49:16: error: expected unqualified-id before '[' token
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp:49:16: error: expected ';' before '[' token
0_0_35444234_9696.cpp:49:17: error: 'x' was not declared in this scope
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp:49:20: error: 'y' was not declared in this scope
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp:49:23: error: 'w' was not declared in this scope
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp: In lambda function:
0_0_35444234_9696.cpp:49:26: error: expected '{' before ':' token
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp: In function 'int main()':
0_0_35444234_9696.cpp:49:26: error: expected ';' before ':' token
0_0_35444234_9696.cpp:49:26: error: expected primary-expression before ':' token
0_0_35444234_9696.cpp:49:26: error: expected ')' before ':' token
0_0_35444234_9696.cpp:49:26: error: expected primary-expression before ':' token
0_0_35444234_9696.cpp:57:16: error: expected unqualified-id before '[' token
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp:57:16: error: expected ';' before '[' token
0_0_35444234_9696.cpp:57:17: error: 'x' was not declared in this scope
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp:57:20: error: 'y' was not declared in this scope
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp:57:23: error: 'w' was not declared in this scope
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp: In lambda function:
0_0_35444234_9696.cpp:57:26: error: expected '{' before ':' token
for (auto &[x, y, w] : vec) {
^
0_0_35444234_9696.cpp: In function 'int main()':
0_0_35444234_9696.cpp:57:26: error: expected ';' before ':' token
0_0_35444234_9696.cpp:57:26: error: expected primary-expression before ':' token
0_0_35444234_9696.cpp:57:26: error: expected ')' before ':' token
0_0_35444234_9696.cpp:57:26: error: expected primary-expression before ':' token
0_0_35444234_9696.cpp:64:14: error: expected unqualified-id before '[' token
auto [x, p, v] = vec[j]; update(p, v);
^
0_0_35444234_9696.cpp:64:41: error: 'p' was not declared in this scope
auto [x, p, v] = vec[j]; update(p, v);
^
0_0_35444234_9696.cpp:64:44: error: 'v' was not declared in this scope
auto [x, p, v] = vec[j]; update(p, v);
^
0_0_35444234_9696.cpp:65:52: error: 'x' was not declared in this scope
while (j + 1 < n and get<0>(vec[j + 1]) == x) {
^
0_0_35444234_9696.cpp:66:16: error: expected unqualified-id before '[' token
auto [cur_x, cur_p, cur_v] = vec[++j]; update(cur_p, cur_v);
^
0_0_35444234_9696.cpp:66:57: error: 'cur_p' was not declared in this scope
auto [cur_x, cur_p, cur_v] = vec[++j]; update(cur_p, cur_v);
^
0_0_35444234_9696.cpp:66:64: error: 'cur_v' was not declared in this scope
auto [cur_x, cur_p, cur_v] = vec[++j]; update(cur_p, cur_v);
^
|