Programmation C sur code blocks

IMENmejri Messages postés 4 Statut Membre -  
IMENmejri Messages postés 4 Statut Membre -
Bonjour,
j'ai un grand problème s'il vous plait aidez moi , lors de la compilation d'un programme c sur code blocks une message d'erreurs m'apparaît toujours " can't create output directory bin/debug/"

1 réponse

  1. JwTdd
     
    Salut tu devrais regarder si ton antivirus ou parefeu ne bloque pas le compilateur.
    0
    1. IMENmejri Messages postés 4 Statut Membre
       
      Salut, merci,mais comment je pourrai savoir si mon antivirus ou parefeu bloque le compilateur.
      0
    2. JwTdd
       
      tu les desactive temporairement, si la compilation fonctionne, il faut trouver un moyen d'ajouter une exception.
      0
    3. IMENmejri Messages postés 4 Statut Membre
       
      mercii ,
      j'ai une autre question s'il vous plait,
      je suis débutante en programmation C, je suis bloqué à ce niveau :
      void read_input_file() {
      int a,b,c,i,j;
      FILE* input = fopen("mf.in","r");
      // read number of nodes and edges
      fscanf(input,"%d %d",&n,&e);
      // initialize empty capacity matrix
      for (i=0; i<n; i++) {
      for (j=0; j<n; j++) {
      capacity[i][j] = 0;
      }
      }
      // read edge capacities
      for (i=0; i<e; i++) {
      fscanf(input,"%d %d %d",&a,&b,&c);
      capacity[a][b] = c;
      }
      fclose(input);
      }

      int main () {
      read_input_file();
      printf("%d\n",max_flow(0,n-1));
      return 0;
      }


      ==> je voulais appliquer ce programme pour l'exemple suivant :
      The Input File

      6 10 // 6 nodes, 10 edges
      0 1 16 // capacity from 0 to 1 is 16
      0 2 13 // capacity from 0 to 2 is 13
      1 2 10 // capacity from 1 to 2 is 10
      2 1 4 // capacity from 2 to 1 is 4
      3 2 9 // capacity from 3 to 2 is 9
      1 3 12 // capacity from 1 to 3 is 12
      2 4 14 // capacity from 2 to 4 is 14
      4 3 7 // capacity from 4 to 3 is 7
      3 5 20 // capacity from 3 to 5 is 20
      4 5 4 // capacity from 4 to 5 is 4

      comment je devrai modifier le programme
      Aidez moi s'il vous plait
      0