fork download
  1. void jednpodp(int wpx, int wpy, int skx, int sky, int tabel[9][9])
  2. {
  3. int tabelka[9][9];
  4.  
  5. int suma = 0;
  6. int j = 0;
  7.  
  8. for (int wy = 0; wy < 9; wy++)
  9. {
  10. for (int wx = 0; wx < 9; wx++)
  11. {
  12. suma = 0;
  13.  
  14. for ( int a = 1; a <= 9;a++)
  15. {
  16. if ( (sprawdz(wx, wy, a, tabel)!=0)){
  17. j = a;
  18. suma++;
  19.  
  20. }
  21.  
  22.  
  23. }
  24. if (suma == 1){
  25. gotoxy(wx, wy);
  26. tabel[wy][wx ] = j;
  27. break;
  28.  
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
void jednpodp(int wpx, int wpy, int skx, int sky, int tabel[9][9])
^
Main.java:5: error: class, interface, or enum expected
	int suma = 0;
	^
Main.java:6: error: class, interface, or enum expected
	int j = 0;
	^
Main.java:8: error: class, interface, or enum expected
	for (int wy = 0; wy < 9; wy++)
	^
Main.java:8: error: class, interface, or enum expected
	for (int wy = 0; wy < 9; wy++)
	                 ^
Main.java:8: error: class, interface, or enum expected
	for (int wy = 0; wy < 9; wy++)
	                         ^
Main.java:10: error: class, interface, or enum expected
		for (int wx = 0; wx < 9; wx++)
		                 ^
Main.java:10: error: class, interface, or enum expected
		for (int wx = 0; wx < 9; wx++)
		                         ^
Main.java:14: error: class, interface, or enum expected
			for ( int a = 1; a <= 9;a++)
			^
Main.java:14: error: class, interface, or enum expected
			for ( int a = 1; a <= 9;a++)
			                 ^
Main.java:14: error: class, interface, or enum expected
			for ( int a = 1; a <= 9;a++)
			                        ^
Main.java:18: error: class, interface, or enum expected
					suma++;
					^
Main.java:20: error: class, interface, or enum expected
					}
					^
Main.java:26: error: class, interface, or enum expected
				tabel[wy][wx ] = j;
				^
Main.java:27: error: class, interface, or enum expected
				break;
				^
Main.java:29: error: class, interface, or enum expected
			}
			^
16 errors
stdout
Standard output is empty