Counterterm method in Lovelock theory and horizonless solutions in dimensionally continued gravity | Synapse