/in/foo.cc: In function 'int main()':
/in/foo.cc:37:14: error: expected unqualified-id before '[' token
for(auto [l, r, index] : Q)
^
/in/foo.cc:37:14: error: expected ';' before '[' token
/in/foo.cc:37:15: error: 'l' was not declared in this scope
for(auto [l, r, index] : Q)
^
/in/foo.cc:37:18: error: 'r' was not declared in this scope
for(auto [l, r, index] : Q)
^
/in/foo.cc:37: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:37:28: error: expected '{' before ':' token
for(auto [l, r, index] : Q)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:37:28: error: expected ';' before ':' token
/in/foo.cc:37:28: error: expected primary-expression before ':' token
/in/foo.cc:37:28: error: expected ')' before ':' token
/in/foo.cc:37:28: error: expected primary-expression before ':' token