Intra- and intermolecular amidation of C-C unsaturated bonds through palladium-catalyzed reactions of carbamoyl derivatives.