Advertisement
Guest User

oie

a guest
Jan 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.83 KB | None | 0 0
  1. >javac oie.java
  2. oie.java:2: error: class projetV is public, should be declared in a file named projetV.java
  3. public class projetV
  4. ^
  5. oie.java:61: error: cannot find symbol
  6. noms[i]=String.valueOf(flux.readLine()).StringValue();
  7. ^
  8. symbol: method StringValue()
  9. location: class String
  10. oie.java:190: error: cannot find symbol
  11. string [] numero=new int [n*n];
  12. ^
  13. symbol: class string
  14. location: class projetV
  15. oie.java:192: error: incompatible types: int[] cannot be converted to String[]
  16. String [] gages=new int [64];
  17. ^
  18. oie.java:275: error: incompatible types: int cannot be converted to boolean
  19. if (position=7)
  20. ^
  21. oie.java:371: error: cannot find symbol
  22. resultat[0]=gage[position];
  23. ^
  24. symbol: variable gage
  25. location: class projetV
  26. oie.java:372: error: incompatible types: String cannot be converted to int
  27. resultat[1]=String.valueOf(position);
  28. ^
  29. oie.java:374: error: incompatible types: int[] cannot be converted to int
  30. return(resultat);
  31. ^
  32. oie.java:381: error: variable fin is already defined in method jeu(int[])
  33. boolean fin,initialisation;
  34. ^
  35. oie.java:382: error: cannot find symbol
  36. 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
  37. ^
  38. symbol: variable noms
  39. location: class projetV
  40. oie.java:382: error: cannot find symbol
  41. 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
  42. ^
  43. symbol: variable nom
  44. location: class projetV
  45. oie.java:383: error: cannot find symbol
  46. char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
  47. ^
  48. symbol: variable noms
  49. location: class projetV
  50. oie.java:383: error: cannot find symbol
  51. char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
  52. ^
  53. symbol: variable noms
  54. location: class projetV
  55. oie.java:384: error: variable position is already defined in method jeu(int[])
  56. 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
  57. ^
  58. oie.java:384: error: cannot find symbol
  59. 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
  60. ^
  61. symbol: variable nom
  62. location: class projetV
  63. oie.java:386: error: incompatible types: void cannot be converted to int[][]
  64. plateau=general(); //initialisation matrice de jeu avec les bons numéros de case en fonction de la taille demandée par le joueur
  65. ^
  66. oie.java:388: error: cannot find symbol
  67. for (i=0;i<noms.length-1;i=i+1)
  68. ^
  69. symbol: variable noms
  70. location: class projetV
  71. oie.java:390: error: cannot find symbol
  72. system.out.println(noms[i]);
  73. ^
  74. symbol: variable noms
  75. location: class projetV
  76. oie.java:390: error: package system does not exist
  77. system.out.println(noms[i]);
  78. ^
  79. oie.java:394: error: incompatible types: int cannot be converted to boolean
  80. initialisation=Integer.valueOf(flux.readLine()).intValue();
  81. ^
  82. oie.java:395: error: incomparable types: boolean and int
  83. if (initialisation==1) // si le joueur joue tout seul ça n'a aucun intéret donc le jeu ne commence pas
  84. ^
  85. oie.java:397: error: break outside switch or loop
  86. break;
  87. ^
  88. oie.java:401: error: bad operand type int for unary operator '!'
  89. while (fin=!1) // DEBUT JEU
  90. ^
  91. oie.java:401: error: incompatible types: int cannot be converted to boolean
  92. while (fin=!1) // DEBUT JEU
  93. ^
  94. oie.java:402: error: cannot find symbol
  95. for (i=0;i<noms.length-1;i++) // PARCOURS LA LISTE DES NOMS POUR QUE CHAQUE JOUEUR JOUE A TOUR DE ROLE
  96. ^
  97. symbol: variable noms
  98. location: class projetV
  99. oie.java:404: error: cannot find symbol
  100. 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
  101. ^
  102. symbol: variable noms
  103. location: class projetV
  104. oie.java:404: error: cannot find symbol
  105. 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
  106. ^
  107. symbol: variable print
  108. location: class System
  109. oie.java:405: error: incompatible types: possible lossy conversion from int to char
  110. d=Integer.valueOf(flux.readLine()).intValue();
  111. ^
  112. oie.java:406: error: bad operand type char for unary operator '!'
  113. if (d=!d)
  114. ^
  115. oie.java:406: error: incompatible types: char cannot be converted to boolean
  116. if (d=!d)
  117. ^
  118. oie.java:412: error: cannot find symbol
  119. des= 1+(int)(maths.random()*6); //LANCE DE DES
  120. ^
  121. symbol: variable maths
  122. location: class projetV
  123. oie.java:419: error: cannot find symbol
  124. plateauAvecNoms[ligne][colonne]=noms[i]; // J AI REMPLACE DU COUP PLATEAU PAR PLATEAUAVECNOMS POUR QUE CA SOIT NOTRE MATRICE DE CHARACTRERE
  125. ^
  126. symbol: variable noms
  127. location: class projetV
  128. oie.java:425: error: cannot find symbol
  129. resultat=gages(n,position[i]);
  130. ^
  131. symbol: variable n
  132. location: class projetV
  133. oie.java:426: error: cannot find symbol
  134. System.Outprintln(resultat[0]);
  135. ^
  136. symbol: method Outprintln(int)
  137. location: class System
  138. oie.java:427: error: incompatible types: int cannot be converted to String
  139. position=Integer.parseInt(resultat[1]);
  140. ^
  141. oie.java:433: error: cannot find symbol
  142. 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
  143. ^
  144. symbol: variable noms
  145. location: class projetV
  146. oie.java:433: error: cannot find symbol
  147. 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
  148. ^
  149. symbol: variable print
  150. location: class System
  151. oie.java:439: error: variable i is already defined in method jeu(int[])
  152. for(int i=0;i<mat.length;i++)
  153. ^
  154. oie.java:439: error: cannot find symbol
  155. for(int i=0;i<mat.length;i++)
  156. ^
  157. symbol: variable mat
  158. location: class projetV
  159. oie.java:442: error: cannot find symbol
  160. for(int j=0;j<mat[0].length;j++)
  161. ^
  162. symbol: variable mat
  163. location: class projetV
  164. oie.java:444: error: cannot find symbol
  165. fileWriter.write(""+plateau[i][j]);
  166. ^
  167. symbol: variable fileWriter
  168. location: class projetV
  169. oie.java:445: error: cannot find symbol
  170. fileWriter.fluch();
  171. ^
  172. symbol: variable fileWriter
  173. location: class projetV
  174. oie.java:446: error: cannot find symbol
  175. fileWriter.close();
  176. ^
  177. symbol: variable fileWriter
  178. location: class projetV
  179. oie.java:471: error: cannot find symbol
  180. int [] position=new int [option().length-1];
  181. ^
  182. symbol: method option()
  183. location: class projetV
  184. oie.java:472: error: cannot find symbol
  185. for (i=0;i<n-1;i++)
  186. ^
  187. symbol: variable i
  188. location: class projetV
  189. oie.java:472: error: cannot find symbol
  190. for (i=0;i<n-1;i++)
  191. ^
  192. symbol: variable i
  193. location: class projetV
  194. oie.java:472: error: cannot find symbol
  195. for (i=0;i<n-1;i++)
  196. ^
  197. symbol: variable n
  198. location: class projetV
  199. oie.java:472: error: cannot find symbol
  200. for (i=0;i<n-1;i++)
  201. ^
  202. symbol: variable i
  203. location: class projetV
  204. oie.java:474: error: cannot find symbol
  205. position[i]=1;
  206. ^
  207. symbol: variable i
  208. location: class projetV
  209. oie.java:478: error: method jeu in class projetV cannot be applied to given types;
  210. case 2: jeu(); // avec une matrice position pré-enregistré
  211. ^
  212. required: int[]
  213. found: no arguments
  214. reason: actual and formal argument lists differ in length
  215. oie.java:482: error: cannot find symbol
  216. case 4: afficherContenu(regles);
  217. ^
  218. symbol: variable regles
  219. location: class projetV
  220. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  221. 51 errors
  222. >Exit code: 1
  223. >javac oie.java
  224. oie.java:61: error: cannot find symbol
  225. noms[i]=String.valueOf(flux.readLine()).StringValue();
  226. ^
  227. symbol: method StringValue()
  228. location: class String
  229. oie.java:190: error: cannot find symbol
  230. string [] numero=new int [n*n];
  231. ^
  232. symbol: class string
  233. location: class oie
  234. oie.java:192: error: incompatible types: int[] cannot be converted to String[]
  235. String [] gages=new int [64];
  236. ^
  237. oie.java:275: error: incompatible types: int cannot be converted to boolean
  238. if (position=7)
  239. ^
  240. oie.java:371: error: cannot find symbol
  241. resultat[0]=gage[position];
  242. ^
  243. symbol: variable gage
  244. location: class oie
  245. oie.java:372: error: incompatible types: String cannot be converted to int
  246. resultat[1]=String.valueOf(position);
  247. ^
  248. oie.java:374: error: incompatible types: int[] cannot be converted to int
  249. return(resultat);
  250. ^
  251. oie.java:381: error: variable fin is already defined in method jeu(int[])
  252. boolean fin,initialisation;
  253. ^
  254. oie.java:382: error: cannot find symbol
  255. 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
  256. ^
  257. symbol: variable noms
  258. location: class oie
  259. oie.java:382: error: cannot find symbol
  260. 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
  261. ^
  262. symbol: variable nom
  263. location: class oie
  264. oie.java:383: error: cannot find symbol
  265. char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
  266. ^
  267. symbol: variable noms
  268. location: class oie
  269. oie.java:383: error: cannot find symbol
  270. char [][] plateauAvecNoms= new char [noms.length][noms.length]; // matrice avec que les emplacements des noms des joueur
  271. ^
  272. symbol: variable noms
  273. location: class oie
  274. oie.java:384: error: variable position is already defined in method jeu(int[])
  275. 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
  276. ^
  277. oie.java:384: error: cannot find symbol
  278. 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
  279. ^
  280. symbol: variable nom
  281. location: class oie
  282. oie.java:386: error: incompatible types: void cannot be converted to int[][]
  283. plateau=general(); //initialisation matrice de jeu avec les bons numéros de case en fonction de la taille demandée par le joueur
  284. ^
  285. oie.java:388: error: cannot find symbol
  286. for (i=0;i<noms.length-1;i=i+1)
  287. ^
  288. symbol: variable noms
  289. location: class oie
  290. oie.java:390: error: cannot find symbol
  291. system.out.println(noms[i]);
  292. ^
  293. symbol: variable noms
  294. location: class oie
  295. oie.java:390: error: package system does not exist
  296. system.out.println(noms[i]);
  297. ^
  298. oie.java:394: error: incompatible types: int cannot be converted to boolean
  299. initialisation=Integer.valueOf(flux.readLine()).intValue();
  300. ^
  301. oie.java:395: error: incomparable types: boolean and int
  302. if (initialisation==1) // si le joueur joue tout seul ça n'a aucun intéret donc le jeu ne commence pas
  303. ^
  304. oie.java:397: error: break outside switch or loop
  305. break;
  306. ^
  307. oie.java:401: error: bad operand type int for unary operator '!'
  308. while (fin=!1) // DEBUT JEU
  309. ^
  310. oie.java:401: error: incompatible types: int cannot be converted to boolean
  311. while (fin=!1) // DEBUT JEU
  312. ^
  313. oie.java:402: error: cannot find symbol
  314. for (i=0;i<noms.length-1;i++) // PARCOURS LA LISTE DES NOMS POUR QUE CHAQUE JOUEUR JOUE A TOUR DE ROLE
  315. ^
  316. symbol: variable noms
  317. location: class oie
  318. oie.java:404: error: cannot find symbol
  319. 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
  320. ^
  321. symbol: variable noms
  322. location: class oie
  323. oie.java:404: error: cannot find symbol
  324. 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
  325. ^
  326. symbol: variable print
  327. location: class System
  328. oie.java:405: error: incompatible types: possible lossy conversion from int to char
  329. d=Integer.valueOf(flux.readLine()).intValue();
  330. ^
  331. oie.java:406: error: bad operand type char for unary operator '!'
  332. if (d=!d)
  333. ^
  334. oie.java:406: error: incompatible types: char cannot be converted to boolean
  335. if (d=!d)
  336. ^
  337. oie.java:412: error: cannot find symbol
  338. des= 1+(int)(maths.random()*6); //LANCE DE DES
  339. ^
  340. symbol: variable maths
  341. location: class oie
  342. oie.java:419: error: cannot find symbol
  343. plateauAvecNoms[ligne][colonne]=noms[i]; // J AI REMPLACE DU COUP PLATEAU PAR PLATEAUAVECNOMS POUR QUE CA SOIT NOTRE MATRICE DE CHARACTRERE
  344. ^
  345. symbol: variable noms
  346. location: class oie
  347. oie.java:425: error: cannot find symbol
  348. resultat=gages(n,position[i]);
  349. ^
  350. symbol: variable n
  351. location: class oie
  352. oie.java:426: error: cannot find symbol
  353. System.Outprintln(resultat[0]);
  354. ^
  355. symbol: method Outprintln(int)
  356. location: class System
  357. oie.java:427: error: incompatible types: int cannot be converted to String
  358. position=Integer.parseInt(resultat[1]);
  359. ^
  360. oie.java:433: error: cannot find symbol
  361. 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
  362. ^
  363. symbol: variable noms
  364. location: class oie
  365. oie.java:433: error: cannot find symbol
  366. 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
  367. ^
  368. symbol: variable print
  369. location: class System
  370. oie.java:439: error: variable i is already defined in method jeu(int[])
  371. for(int i=0;i<mat.length;i++)
  372. ^
  373. oie.java:439: error: cannot find symbol
  374. for(int i=0;i<mat.length;i++)
  375. ^
  376. symbol: variable mat
  377. location: class oie
  378. oie.java:442: error: cannot find symbol
  379. for(int j=0;j<mat[0].length;j++)
  380. ^
  381. symbol: variable mat
  382. location: class oie
  383. oie.java:444: error: cannot find symbol
  384. fileWriter.write(""+plateau[i][j]);
  385. ^
  386. symbol: variable fileWriter
  387. location: class oie
  388. oie.java:445: error: cannot find symbol
  389. fileWriter.fluch();
  390. ^
  391. symbol: variable fileWriter
  392. location: class oie
  393. oie.java:446: error: cannot find symbol
  394. fileWriter.close();
  395. ^
  396. symbol: variable fileWriter
  397. location: class oie
  398. oie.java:471: error: cannot find symbol
  399. int [] position=new int [option().length-1];
  400. ^
  401. symbol: method option()
  402. location: class oie
  403. oie.java:472: error: cannot find symbol
  404. for (i=0;i<n-1;i++)
  405. ^
  406. symbol: variable i
  407. location: class oie
  408. oie.java:472: error: cannot find symbol
  409. for (i=0;i<n-1;i++)
  410. ^
  411. symbol: variable i
  412. location: class oie
  413. oie.java:472: error: cannot find symbol
  414. for (i=0;i<n-1;i++)
  415. ^
  416. symbol: variable n
  417. location: class oie
  418. oie.java:472: error: cannot find symbol
  419. for (i=0;i<n-1;i++)
  420. ^
  421. symbol: variable i
  422. location: class oie
  423. oie.java:474: error: cannot find symbol
  424. position[i]=1;
  425. ^
  426. symbol: variable i
  427. location: class oie
  428. oie.java:478: error: method jeu in class oie cannot be applied to given types;
  429. case 2: jeu(); // avec une matrice position pré-enregistré
  430. ^
  431. required: int[]
  432. found: no arguments
  433. reason: actual and formal argument lists differ in length
  434. oie.java:482: error: cannot find symbol
  435. case 4: afficherContenu(regles);
  436. ^
  437. symbol: variable regles
  438. location: class oie
  439. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  440. 50 errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement