api2captcha::client_t client ("YOUR_API_KEY");
This doesn't work anymore, but I got it to work by doing:
api2captcha::client_t client;
client.set_api_key("YOUR_API_KEY");
But great way of implementing this, worked flawless even for a programming beginner like me.