how to make a function in c++ that returns a value code example Example: c++ check function return value #pragma GCC diagnostic error "-Wreturn-type"