#include <algorithm> int maximum = max({ one, two, three });

{ }로 다 감싸버리면 편하게 가능하다.