/in/foo.cc: In function 'int main()':
/in/foo.cc:36:14: error: expected unqualified-id before '[' token
for(auto [l, r, index] : Q)
^
/in/foo.cc:36:14: error: expected ';' before '[' token
/in/foo.cc:36:15: error: 'l' was not declared in this scope
for(auto [l, r, index] : Q)
^
/in/foo.cc:36:18: error: 'r' was not declared in this scope
for(auto [l, r, index] : Q)
^
/in/foo.cc:36:21: error: capture by copy of incomplete type '<unresolved overloaded function type>'
for(auto [l, r, index] : Q)
^~~~~
/in/foo.cc: In lambda function:
/in/foo.cc:36:28: error: expected '{' before ':' token
for(auto [l, r, index] : Q)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:28: error: expected ';' before ':' token
/in/foo.cc:36:28: error: expected primary-expression before ':' token
/in/foo.cc:36:28: error: expected ')' before ':' token
/in/foo.cc:36:28: error: expected primary-expression before ':' token