Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >javac oie.java
- oie.java:2: error: class projetV is public, should be declared in a file named projetV.java
- public class projetV
- ^
- oie.java:61: error: cannot find symbol
- noms[i]=String.valueOf(flux.readLine()).StringValue();
- ^
- symbol: method StringValue()
- location: class String
- oie.java:190: error: cannot find symbol
- string [] numero=new int [n*n];
- ^
- symbol: class string
- location: class projetV
- oie.java:192: error: incompatible types: int[] cannot be converted to String[]
- String [] gages=new int [64];
- ^
- oie.java:275: error: incompatible types: int cannot be converted to boolean
- if (position=7)
- ^
- oie.java:371: error: cannot find symbol
- resultat[0]=gage[position];
- ^
- symbol: variable gage
- location: class projetV
- oie.java:372: error: incompatible types: String cannot be converted to int
- resultat[1]=String.valueOf(position);
- ^
- oie.java:374: error: incompatible types: int[] cannot be converted to int
- return(resultat);
- ^
- oie.java:381: error: variable fin is already defined in method jeu(int[])
- boolean fin,initialisation;
- ^
- oie.java:382: error: cannot find symbol
- int [][]plateau=new int [noms.length][nom.length]; //matrice contenant la numérotation du plateau, matrice de référence pour pouvoir faire avancer les pions
- ^
- symbol: variable noms
- location: class projetV
- oie.java:382: error: cannot find symbol
- int [][]plateau=new int [noms.length][nom.length]; //matrice contenant la numérotation du plateau, matrice de référence pour pouvoir faire avancer les pions
- ^
- symbol: variable nom
- location: class projetV
- oie.java:383: error: cannot find symbol
- char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
- ^
- symbol: variable noms
- location: class projetV
- oie.java:383: error: cannot find symbol
- char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
- ^
- symbol: variable noms
- location: class projetV
- oie.java:384: error: variable position is already defined in method jeu(int[])
- int [] position=new int [nom.length]; //tableau mémoire où on va sauvegarder tous les emplacements des joueurs en fonctio,n de l'avancement du jeu
- ^
- oie.java:384: error: cannot find symbol
- int [] position=new int [nom.length]; //tableau mémoire où on va sauvegarder tous les emplacements des joueurs en fonctio,n de l'avancement du jeu
- ^
- symbol: variable nom
- location: class projetV
- oie.java:386: error: incompatible types: void cannot be converted to int[][]
- plateau=general(); //initialisation matrice de jeu avec les bons numéros de case en fonction de la taille demandée par le joueur
- ^
- oie.java:388: error: cannot find symbol
- for (i=0;i<noms.length-1;i=i+1)
- ^
- symbol: variable noms
- location: class projetV
- oie.java:390: error: cannot find symbol
- system.out.println(noms[i]);
- ^
- symbol: variable noms
- location: class projetV
- oie.java:390: error: package system does not exist
- system.out.println(noms[i]);
- ^
- oie.java:394: error: incompatible types: int cannot be converted to boolean
- initialisation=Integer.valueOf(flux.readLine()).intValue();
- ^
- oie.java:395: error: incomparable types: boolean and int
- if (initialisation==1) // si le joueur joue tout seul ça n'a aucun intéret donc le jeu ne commence pas
- ^
- oie.java:397: error: break outside switch or loop
- break;
- ^
- oie.java:401: error: bad operand type int for unary operator '!'
- while (fin=!1) // DEBUT JEU
- ^
- oie.java:401: error: incompatible types: int cannot be converted to boolean
- while (fin=!1) // DEBUT JEU
- ^
- oie.java:402: error: cannot find symbol
- for (i=0;i<noms.length-1;i++) // PARCOURS LA LISTE DES NOMS POUR QUE CHAQUE JOUEUR JOUE A TOUR DE ROLE
- ^
- symbol: variable noms
- location: class projetV
- oie.java:404: error: cannot find symbol
- System.print.outln(noms[i]+"à toi de jouer, lance le dès en écrivant: d"); // INTERACTION AVEC LE MEC QUI JOUE POUR QUE L'ORDI NE FASSE PAS TOUT
- ^
- symbol: variable noms
- location: class projetV
- oie.java:404: error: cannot find symbol
- System.print.outln(noms[i]+"à toi de jouer, lance le dès en écrivant: d"); // INTERACTION AVEC LE MEC QUI JOUE POUR QUE L'ORDI NE FASSE PAS TOUT
- ^
- symbol: variable print
- location: class System
- oie.java:405: error: incompatible types: possible lossy conversion from int to char
- d=Integer.valueOf(flux.readLine()).intValue();
- ^
- oie.java:406: error: bad operand type char for unary operator '!'
- if (d=!d)
- ^
- oie.java:406: error: incompatible types: char cannot be converted to boolean
- if (d=!d)
- ^
- oie.java:412: error: cannot find symbol
- des= 1+(int)(maths.random()*6); //LANCE DE DES
- ^
- symbol: variable maths
- location: class projetV
- oie.java:419: error: cannot find symbol
- plateauAvecNoms[ligne][colonne]=noms[i]; // J AI REMPLACE DU COUP PLATEAU PAR PLATEAUAVECNOMS POUR QUE CA SOIT NOTRE MATRICE DE CHARACTRERE
- ^
- symbol: variable noms
- location: class projetV
- oie.java:425: error: cannot find symbol
- resultat=gages(n,position[i]);
- ^
- symbol: variable n
- location: class projetV
- oie.java:426: error: cannot find symbol
- System.Outprintln(resultat[0]);
- ^
- symbol: method Outprintln(int)
- location: class System
- oie.java:427: error: incompatible types: int cannot be converted to String
- position=Integer.parseInt(resultat[1]);
- ^
- oie.java:433: error: cannot find symbol
- System.print.outln("Congratulation, félicitation "+noms[i]+ ", tu viens de gagner ce jeu de l'oie de l'espace");// AFFICHAGE DU MESSAGE DE FIN DE JEU
- ^
- symbol: variable noms
- location: class projetV
- oie.java:433: error: cannot find symbol
- System.print.outln("Congratulation, félicitation "+noms[i]+ ", tu viens de gagner ce jeu de l'oie de l'espace");// AFFICHAGE DU MESSAGE DE FIN DE JEU
- ^
- symbol: variable print
- location: class System
- oie.java:439: error: variable i is already defined in method jeu(int[])
- for(int i=0;i<mat.length;i++)
- ^
- oie.java:439: error: cannot find symbol
- for(int i=0;i<mat.length;i++)
- ^
- symbol: variable mat
- location: class projetV
- oie.java:442: error: cannot find symbol
- for(int j=0;j<mat[0].length;j++)
- ^
- symbol: variable mat
- location: class projetV
- oie.java:444: error: cannot find symbol
- fileWriter.write(""+plateau[i][j]);
- ^
- symbol: variable fileWriter
- location: class projetV
- oie.java:445: error: cannot find symbol
- fileWriter.fluch();
- ^
- symbol: variable fileWriter
- location: class projetV
- oie.java:446: error: cannot find symbol
- fileWriter.close();
- ^
- symbol: variable fileWriter
- location: class projetV
- oie.java:471: error: cannot find symbol
- int [] position=new int [option().length-1];
- ^
- symbol: method option()
- location: class projetV
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable i
- location: class projetV
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable i
- location: class projetV
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable n
- location: class projetV
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable i
- location: class projetV
- oie.java:474: error: cannot find symbol
- position[i]=1;
- ^
- symbol: variable i
- location: class projetV
- oie.java:478: error: method jeu in class projetV cannot be applied to given types;
- case 2: jeu(); // avec une matrice position pré-enregistré
- ^
- required: int[]
- found: no arguments
- reason: actual and formal argument lists differ in length
- oie.java:482: error: cannot find symbol
- case 4: afficherContenu(regles);
- ^
- symbol: variable regles
- location: class projetV
- Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
- 51 errors
- >Exit code: 1
- >javac oie.java
- oie.java:61: error: cannot find symbol
- noms[i]=String.valueOf(flux.readLine()).StringValue();
- ^
- symbol: method StringValue()
- location: class String
- oie.java:190: error: cannot find symbol
- string [] numero=new int [n*n];
- ^
- symbol: class string
- location: class oie
- oie.java:192: error: incompatible types: int[] cannot be converted to String[]
- String [] gages=new int [64];
- ^
- oie.java:275: error: incompatible types: int cannot be converted to boolean
- if (position=7)
- ^
- oie.java:371: error: cannot find symbol
- resultat[0]=gage[position];
- ^
- symbol: variable gage
- location: class oie
- oie.java:372: error: incompatible types: String cannot be converted to int
- resultat[1]=String.valueOf(position);
- ^
- oie.java:374: error: incompatible types: int[] cannot be converted to int
- return(resultat);
- ^
- oie.java:381: error: variable fin is already defined in method jeu(int[])
- boolean fin,initialisation;
- ^
- oie.java:382: error: cannot find symbol
- int [][]plateau=new int [noms.length][nom.length]; //matrice contenant la numérotation du plateau, matrice de référence pour pouvoir faire avancer les pions
- ^
- symbol: variable noms
- location: class oie
- oie.java:382: error: cannot find symbol
- int [][]plateau=new int [noms.length][nom.length]; //matrice contenant la numérotation du plateau, matrice de référence pour pouvoir faire avancer les pions
- ^
- symbol: variable nom
- location: class oie
- oie.java:383: error: cannot find symbol
- char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
- ^
- symbol: variable noms
- location: class oie
- oie.java:383: error: cannot find symbol
- char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
- ^
- symbol: variable noms
- location: class oie
- oie.java:384: error: variable position is already defined in method jeu(int[])
- int [] position=new int [nom.length]; //tableau mémoire où on va sauvegarder tous les emplacements des joueurs en fonctio,n de l'avancement du jeu
- ^
- oie.java:384: error: cannot find symbol
- int [] position=new int [nom.length]; //tableau mémoire où on va sauvegarder tous les emplacements des joueurs en fonctio,n de l'avancement du jeu
- ^
- symbol: variable nom
- location: class oie
- oie.java:386: error: incompatible types: void cannot be converted to int[][]
- plateau=general(); //initialisation matrice de jeu avec les bons numéros de case en fonction de la taille demandée par le joueur
- ^
- oie.java:388: error: cannot find symbol
- for (i=0;i<noms.length-1;i=i+1)
- ^
- symbol: variable noms
- location: class oie
- oie.java:390: error: cannot find symbol
- system.out.println(noms[i]);
- ^
- symbol: variable noms
- location: class oie
- oie.java:390: error: package system does not exist
- system.out.println(noms[i]);
- ^
- oie.java:394: error: incompatible types: int cannot be converted to boolean
- initialisation=Integer.valueOf(flux.readLine()).intValue();
- ^
- oie.java:395: error: incomparable types: boolean and int
- if (initialisation==1) // si le joueur joue tout seul ça n'a aucun intéret donc le jeu ne commence pas
- ^
- oie.java:397: error: break outside switch or loop
- break;
- ^
- oie.java:401: error: bad operand type int for unary operator '!'
- while (fin=!1) // DEBUT JEU
- ^
- oie.java:401: error: incompatible types: int cannot be converted to boolean
- while (fin=!1) // DEBUT JEU
- ^
- oie.java:402: error: cannot find symbol
- for (i=0;i<noms.length-1;i++) // PARCOURS LA LISTE DES NOMS POUR QUE CHAQUE JOUEUR JOUE A TOUR DE ROLE
- ^
- symbol: variable noms
- location: class oie
- oie.java:404: error: cannot find symbol
- System.print.outln(noms[i]+"à toi de jouer, lance le dès en écrivant: d"); // INTERACTION AVEC LE MEC QUI JOUE POUR QUE L'ORDI NE FASSE PAS TOUT
- ^
- symbol: variable noms
- location: class oie
- oie.java:404: error: cannot find symbol
- System.print.outln(noms[i]+"à toi de jouer, lance le dès en écrivant: d"); // INTERACTION AVEC LE MEC QUI JOUE POUR QUE L'ORDI NE FASSE PAS TOUT
- ^
- symbol: variable print
- location: class System
- oie.java:405: error: incompatible types: possible lossy conversion from int to char
- d=Integer.valueOf(flux.readLine()).intValue();
- ^
- oie.java:406: error: bad operand type char for unary operator '!'
- if (d=!d)
- ^
- oie.java:406: error: incompatible types: char cannot be converted to boolean
- if (d=!d)
- ^
- oie.java:412: error: cannot find symbol
- des= 1+(int)(maths.random()*6); //LANCE DE DES
- ^
- symbol: variable maths
- location: class oie
- oie.java:419: error: cannot find symbol
- plateauAvecNoms[ligne][colonne]=noms[i]; // J AI REMPLACE DU COUP PLATEAU PAR PLATEAUAVECNOMS POUR QUE CA SOIT NOTRE MATRICE DE CHARACTRERE
- ^
- symbol: variable noms
- location: class oie
- oie.java:425: error: cannot find symbol
- resultat=gages(n,position[i]);
- ^
- symbol: variable n
- location: class oie
- oie.java:426: error: cannot find symbol
- System.Outprintln(resultat[0]);
- ^
- symbol: method Outprintln(int)
- location: class System
- oie.java:427: error: incompatible types: int cannot be converted to String
- position=Integer.parseInt(resultat[1]);
- ^
- oie.java:433: error: cannot find symbol
- System.print.outln("Congratulation, félicitation "+noms[i]+ ", tu viens de gagner ce jeu de l'oie de l'espace");// AFFICHAGE DU MESSAGE DE FIN DE JEU
- ^
- symbol: variable noms
- location: class oie
- oie.java:433: error: cannot find symbol
- System.print.outln("Congratulation, félicitation "+noms[i]+ ", tu viens de gagner ce jeu de l'oie de l'espace");// AFFICHAGE DU MESSAGE DE FIN DE JEU
- ^
- symbol: variable print
- location: class System
- oie.java:439: error: variable i is already defined in method jeu(int[])
- for(int i=0;i<mat.length;i++)
- ^
- oie.java:439: error: cannot find symbol
- for(int i=0;i<mat.length;i++)
- ^
- symbol: variable mat
- location: class oie
- oie.java:442: error: cannot find symbol
- for(int j=0;j<mat[0].length;j++)
- ^
- symbol: variable mat
- location: class oie
- oie.java:444: error: cannot find symbol
- fileWriter.write(""+plateau[i][j]);
- ^
- symbol: variable fileWriter
- location: class oie
- oie.java:445: error: cannot find symbol
- fileWriter.fluch();
- ^
- symbol: variable fileWriter
- location: class oie
- oie.java:446: error: cannot find symbol
- fileWriter.close();
- ^
- symbol: variable fileWriter
- location: class oie
- oie.java:471: error: cannot find symbol
- int [] position=new int [option().length-1];
- ^
- symbol: method option()
- location: class oie
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable i
- location: class oie
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable i
- location: class oie
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable n
- location: class oie
- oie.java:472: error: cannot find symbol
- for (i=0;i<n-1;i++)
- ^
- symbol: variable i
- location: class oie
- oie.java:474: error: cannot find symbol
- position[i]=1;
- ^
- symbol: variable i
- location: class oie
- oie.java:478: error: method jeu in class oie cannot be applied to given types;
- case 2: jeu(); // avec une matrice position pré-enregistré
- ^
- required: int[]
- found: no arguments
- reason: actual and formal argument lists differ in length
- oie.java:482: error: cannot find symbol
- case 4: afficherContenu(regles);
- ^
- symbol: variable regles
- location: class oie
- Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
- 50 errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement