All challenges
Code AnalysisBeginner 60s

Use after move of string

What is the risk?
Starter code
std::string s = "hello";
auto t = std::move(s);
std::cout << s.size();   // using moved-from s

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