Main.cc: In function ‘int main()’:
Main.cc:60:16: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for (auto& [u, v] : edges)
^
Main.cc: In lambda function:
Main.cc:75:23: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for (auto [u, v] : edges) {
^
Main.cc: In function ‘int main()’:
Main.cc:90:24: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
auto dfs = [&](auto&& self, int idx = 1) {
^~~~
Main.cc: In lambda function:
Main.cc:105:35: error: expression cannot be used as a function
self(self, idx + 1);
^
Main.cc: In function ‘int main()’:
Main.cc:109:16: error: no match for call to ‘(main()::) (main()::&)’
dfs(dfs);
^
Main.cc:90:48: note: candidate: main()::
auto dfs = [&](auto&& self, int idx = 1) {
^
Main.cc:90:48: note: no known conversion for argument 1 from ‘main()::’ to ‘int&&’
Main.cc: In lambda function:
Main.cc:116:19: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for (auto [u, v] : edges) {
^