Bonjour a tous, alors voila j'ai un problème( 
 ) avec un "programme" que j'ai fait, et je n'arrive pas a voir mon erreur, voici le programme(il calcul la distance entre 2 points):
 
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
 
typedef struct{
    float x;
    float y;
}Point;
 
void lirepoint (Point *P){
    printf("x=" );
    scanf("%f", &((*P).x));
    printf("y=" );
    scanf("%f", &((*P).y));
}
 
void afficherpoint (x,y){
    printf("(%d;%d)", x, y);
}
 
 
int main()
{
    Point A;
    Point B;
    float AB;
    printf("Point A: \n" );
    lirepoint(A);
    printf("Point B: \n" );
    lirepoint(B);
    AB = sqrt(((B.x-A.x)*(B.x-A.x)+(B.y-A.y)*(B.y-A.y)));
    printf("La dictance AB = %f", AB);
 
    return 0;
}
 
Merci a tous pour vos futures réponses