I'm creating my first C Program, this program must crypt your password. But there's a problem: give me many error, But I don't know how to fix it.
Anyone could fix it and say me why my program doesn't run?
These are the errors:

```
psw-crypter.C: In function ‘void cripta_password()’:
psw-crypter.C:6:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
                 int psw = scanf("%d", &i);
                                         ^
psw-crypter.C: In function ‘int main()’:
psw-crypter.C:18:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
  int psw = scanf("%d", &i);
                          ^
psw-crypter.C:19:23: error: invalid conversion from ‘void (*)()’ to ‘int’ [-fpermissive]
  int passwordfinale = cripta_password;
                       ^

```

..and this is my code:

```
#include <stdio.h>

void cripta_password() {
        char i;
        int psw = scanf("%d", &i);
        int psw1 = psw %  10;
        for(int number = psw1; number < psw1;psw1++) {
        int psw2 = psw1 * psw1;
        int psw3 = psw2 % psw1;
        int pswcript = psw3 + 3.14;
}
}

int main() {
printf("Cripta la tua password!");
char i;
int psw = scanf("%d", &i);
int passwordfinale = cripta_password;
printf("La tua password completa è:");
printf("%d", passwordfinale);
}

```