longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:43:43: error: expected primary-expression before '{' token
43 | path_ends[0] = (path[0].size() > 1u)? {path[0][0], path[0].back()} : {path[0][0]};
| ^
longesttrip.cpp:43:42: error: expected ':' before '{' token
43 | path_ends[0] = (path[0].size() > 1u)? {path[0][0], path[0].back()} : {path[0][0]};
| ^~
| :
longesttrip.cpp:43:43: error: expected primary-expression before '{' token
43 | path_ends[0] = (path[0].size() > 1u)? {path[0][0], path[0].back()} : {path[0][0]};
| ^
longesttrip.cpp:43:72: error: expected primary-expression before ':' token
43 | path_ends[0] = (path[0].size() > 1u)? {path[0][0], path[0].back()} : {path[0][0]};
| ^
longesttrip.cpp:44:43: error: expected primary-expression before '{' token
44 | path_ends[1] = (path[1].size() > 1u)? {path[1][0], path[0].back()} : {path[1][0]};
| ^
longesttrip.cpp:44:42: error: expected ':' before '{' token
44 | path_ends[1] = (path[1].size() > 1u)? {path[1][0], path[0].back()} : {path[1][0]};
| ^~
| :
longesttrip.cpp:44:43: error: expected primary-expression before '{' token
44 | path_ends[1] = (path[1].size() > 1u)? {path[1][0], path[0].back()} : {path[1][0]};
| ^
longesttrip.cpp:44:72: error: expected primary-expression before ':' token
44 | path_ends[1] = (path[1].size() > 1u)? {path[1][0], path[0].back()} : {path[1][0]};
| ^