Help me with this code please where is the error

Help me with this code please where is the error in langage c

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
typedef int bool;
#define true 1
#define false 0

typedef struct {
int h, m;

}temps;

typedef struct {
int nb;
temps hd, hf;
}Session;

void Duree(Session s,temps d){
d.m=s.hf.m-s.hd.m;
d.h=s.hf.h-s.hd.h;
if(d.m<0){
d.m=d.m+60;
d.h=d.h-1;
}

}
bool valide(Session s){
temps d;
Duree(s,d);
if ( d.h>0 ||( d.h=0 && d.m>0))
{return true;}
else {return false;}
}
int main()
{
int pmax,max,n,i; Session T[100]; temps d,t;
do{
printf(“Donner le numero de session n/n”);
scanf("%d",&n);}while(n<1 || n>100);
for(i=0; i<n; i++){
printf(“les information de la session N=%d \n”,i+1);
do{
printf(“Donner le numero de poste entre 1 et 20 \n”);
scanf("%d",&T[i].nb);
}while(T[i].nb<0 || T[i].nb>20);

do{
printf(“Donner L’heur de debut \n”);
scanf("%d",&T[i].hd.h);
printf(“Donner L’heur de debut en minute \n”);
scanf("%d",&T[i].hd.m);
printf(“Donner l’heure de fin \n”);
scanf("%d",&T[i].hf.h);
printf(“Donner l’heure de fin en minute \n”);
scanf("%d",&T[i].hf.m);

}while(valide(T[i])!= true);}
for(i=0; i<n; i++){
Duree(T[i],t);
printf(“le tarif de la session est %d dinar\n”,(t.h60)+t.m);
}
Duree(T[0],d);
max=d.h
60+d.m;
pmax=0;
for(i=0; i<n; i++){
Duree(T[i],d);
if(d.h60+d.m>max){
max=d.h
60+d.m;
pmax=i; }
}
printf(“le nbd ayant la Duree maximale est %d”, T[pmax].nb);

return 0;
}

Dear @djamel
Could you please elaborate your error? It’s compiling. But since, I don’t understand French, could you please explain what’s the error and what you want to do.

1 Like

@Radip_Kar :sweat_smile: :heart_eyes:
Thank you, my friend, I found a solution, but is there a way to delete this post, I am new to the site