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