void correct(r) is declaration and it means – correct is a function that takes r type in arguments and returns void. Just remove
void to call function.
correct(r). And you need to change
char * or
const char *c1 = "Cristoforo"; const char *c2 = "cristoforo"; const char *c3 = "CRISTOFORO";