All challenges
Code AnalysisIntermediate 60s

atomic_ref Misalignment

What is the problem?
Starter code
#include <atomic>
struct S {
    char c;
    int x;
};
void f(S *s) { std::atomic_ref<int> r(s->x); }

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