0_0_37818477_10772.cpp:23:17: error: 'split' function uses 'auto' type specifier without trailing return type
auto split(int x){
^
0_0_37818477_10772.cpp:23:17: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37818477_10772.cpp: In function 'auto split(int)':
0_0_37818477_10772.cpp:26:10: error: expected unqualified-id before '[' token
auto [l, r, val] = *it;
^
0_0_37818477_10772.cpp:27:36: error: 'l' was not declared in this scope
odt.erase(it), odt.insert(Node(l, x - 1, val));
^
0_0_37818477_10772.cpp:27:46: error: 'val' was not declared in this scope
odt.erase(it), odt.insert(Node(l, x - 1, val));
^
0_0_37818477_10772.cpp:28:31: error: 'r' was not declared in this scope
return odt.insert(Node(x, r, val)).first;
^
0_0_37818477_10772.cpp: In function 'void solve()':
0_0_37818477_10772.cpp:102:18: error: expected unqualified-id before '[' token
auto [l, r, val] = *it;
^
0_0_37818477_10772.cpp:103:13: error: 'val' was not declared in this scope
val = c;
^
0_0_37818477_10772.cpp:108:13: error: 'l' was not declared in this scope
l = itl->l, r = itr->l - 1;
^
0_0_37818477_10772.cpp:108:25: error: 'r' was not declared in this scope
l = itl->l, r = itr->l - 1;
^
|