All challenges
Code AnalysisHard 60s

string_view elements dangle

What is the bug?
Starter code
std::vector<std::string_view> views;
for (const auto& w : split("a b c")) views.push_back(w);

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle