I believe the error is caused because you didn't #include <string>
.
But there are other problems too. It sort of looks like you meant to create a send
function but the semicolon ;
is causing it to look like a declaration of a global variable send
constructed with message
, and then a code block which is a syntax error because it isn't part of a function.