All challenges
Code AnalysisHard 60s

friend injection capture output

template<int N> struct tag{ friend constexpr int get(tag<N>){return N;} }; constexpr int f(tag<5>); What is the classic result and mechanism?

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