how to create a code to return an integer based on the value code example Example: c++ check function return value #pragma GCC diagnostic error "-Wreturn-type"