simple_crypt.c:7:12: error: incompatible integer to pointer conversion passing
'char' to parameter of type 'const char *'; take the address with &
[-Werror]
if(strcmp(origchar, " ") != 0){
You are passing a character when the function expects a char *. origchar is not a char *.
simple_crypt.c:20:10: error: unused variable 'message'
[-Werror,-Wunused-variable]
string message = argv[1];
I'm assuming that cs50.h has a 'string' type for you with this one. You are making an initialization within an if statement and you expect it to be seen outside of the if statement's scope, which is not going to happen. The message
outside of your if statement is not the same as the message
inside. The message inside is just declared and initialized but nothing is done with it, essentially making it unused for its scope. To the compiler the message outside the if statement is an undeclared variable.
You should declare message
outside of the if statements first so the compiler knows that message is and will be created within the scope of main or at least is to be seen outside of the scope of the if statements. You can assign values to it in the if statements, but you shouldn't declare it within an if statement if you expect it to be seen outside of the if statement. The if statement has its own scope and therefore after it is done the message
you initialized will be gone without doing any operations on it.
same for offset
and the rest of your message
errors.