criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[1]);
int d=a/b;
int r=a%b;
float f=a/b;
System.out.print(d+" "+r+" ");
System.out.println("%.5f",f);
br.close();
}
}

Compiler output:
Main.java:13: error: no suitable method found for println(String,float)
System.out.println("%.5f",f);
          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[1]);
int d=a/b;
int r=a%b;
float fa=Float.parseFloat(a);
float fb=Float.parseFloat(b);
float f=fa/fb;

System.out.println(d+" "+r+" "+f);
br.close();
}
}

Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to String
float fa=Float.parseFloat(a);
                          ^
Main.java:12: error: incompatible types: int cannot be converted to String
float fb=Float.parseFloat(b);
                          ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

	public static void main(String[] args) throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		String [] digit=reader.readLine().split(" ");
		int a=Integer.parseInt(digit[0]);
		int b=Integer.parseInt(digit[1]);
		int d=a/b;
		int r=a%b;
		double f=a/b;
		sb.append(d+" "+r+" "+String.format("%.5f", (double)a/(double)b));
		System.out.println(sb);
	}
	

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) throws IOException{
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class Aizu1_13 {

	public static void main(String[] args) throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		String [] digit=reader.readLine().split(" ");
		int a=Integer.parseInt(digit[0]);
		int b=Integer.parseInt(digit[1]);
		int d=a/b;
		int r=a%b;
		double f=a/b;
		sb.append(d+" "+r+" "+String.format("%.5f", (double)a/(double)b));
		System.out.println(sb);
	}
	

}

Compiler output:
Main.java:1: error: class Aizu1_13 is public, should be declared in a file named Aizu1_13.java
public class Aizu1_13 {
       ^
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Aizu1_13
Main.java:4: error: cannot find symbol
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Aizu1_13
Main.java:4: error: cannot find symbol
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		                          ^
  symbol:   class BufferedReader
  location: class Aizu1_13
Main.java:4: error: cannot find symbol
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		                                             ^
  symbol:   class InputStreamReader
  location: class Aizu1_13
5 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner stdn = new Scanner(System.in);
		
		
		int a = stdn.nextInt();
		int b = stdn.nextInt();
		if(a > 1 && b <=1000000000){
			int d = a / b;
			int r = a % b;
			double f =(double) a /(double) b;
		}else{
			int d = a / b;
			int r = a % b;
		}
		System.out.println(d + " " + r + " " + f);
	}
}

Compiler output:
Main.java:18: error: cannot find symbol
		System.out.println(d + " " + r + " " + f);
		                   ^
  symbol:   variable d
  location: class Main
Main.java:18: error: cannot find symbol
		System.out.println(d + " " + r + " " + f);
		                             ^
  symbol:   variable r
  location: class Main
Main.java:18: error: cannot find symbol
		System.out.println(d + " " + r + " " + f);
		                                       ^
  symbol:   variable f
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int d = a / b;
		int r = a % b;
		double f = String.format("%.5f", a / b);

		System.out.println(d + " " + r + " " + f);		
	}
}

Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to double
		double f = String.format("%.5f", a / b);
		                        ^
1 error
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		double a = Double.parseDouble(str[0]);
		double b = Double.parseDouble(str[1]);
		System.out.println("%d %d %.5f", (int)a/b, a%b, (double)a/b);	
	}
}

Compiler output:
Main.java:11: error: no suitable method found for println(String,double,double,double)
		System.out.println("%d %d %.5f", (int)a/b, a%b, (double)a/b);	
		          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		double a = Double.parseDouble(str[0]);
		double b = Double.parseDouble(str[1]);
		System.out.println("%d %d %.5f?\n", (int)a/b, (int)a%b, (double)a/b);	
	}
}

Compiler output:
Main.java:11: error: no suitable method found for println(String,double,double,double)
		System.out.println("%d %d %.5f?\n", (int)a/b, (int)a%b, (double)a/b);	
		          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc =new Scanner(Syste.in);
		String[] input=sc.nextLine().split(" ");
		int a=Integer.parseInt(input[0]);
		int b=Integer.parseInt(input[1]);
		int d =a/b;
		int r=a%b;
		double f=a/b;
		System.out.println(d+" "+r+" "+f);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc =new Scanner(Syste.in);
		                        ^
  symbol:   variable Syste
  location: class Main
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc =new Scanner(System.in);
		String[] input=sc.nextLine().split(" ");
		int a=Integer.parseInt(input[0]);
		int b=Integer.parseInt(input[1]);
		int d =a/b;
		int r=a%b;
		double f=a/b;
		int store=f*100000;
		f=store/100000;
		System.out.println(d+" "+r+" "+f);
	}
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from double to int
		int store=f*100000;
		           ^
1 error
Language: Java

import java.util.*;
import java.math.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] input=sc.nextLine().split(" ");
		
		int a = Integer.parseInt(input[0]);
		int b = Integer.parseInt(input[1]);
		
		int d = a/b;
		int r = a%b;
		BigDecimal aBd = new BigDecimal(a);
		BigDecimal bBd = new BigDecimal(b);
		
		BigDecimal f =aBd.divide(bBd, ROUND_HALF_DOWN);
		System.out.println(d+" "+r+" "+f.doubleValue());
	}
}
		

Compiler output:
Main.java:17: error: cannot find symbol
		BigDecimal f =aBd.divide(bBd, ROUND_HALF_DOWN);
		                              ^
  symbol:   variable ROUND_HALF_DOWN
  location: class Main
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int a=scanner.nextInt();
		int b=scanner.nextInt();
		
		int d=a/b;
		int r=a%b;
		
		BigDecimal aBig = new BigDecimal(a);
		BigDecimal bBig = new BigDecimal(b);
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		System.out.println(d+" "+r+" "+fBig.toPlainString());
}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int a=scanner.nextInt();
		int b=scanner.nextInt();
		
		int d=a/b;
		int r=a%b;
		
		BigDecimal aBig = new BigDecimal(a);
		BigDecimal bBig = new BigDecimal(b);
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		System.out.println(d+" "+r+" "+fBig.toPlainString());
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		BigDecimal aBig = new BigDecimal(a);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:12: error: cannot find symbol
		BigDecimal aBig = new BigDecimal(a);
		                      ^
  symbol:   class BigDecimal
  location: class Main
Main.java:13: error: cannot find symbol
		BigDecimal bBig = new BigDecimal(b);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:13: error: cannot find symbol
		BigDecimal bBig = new BigDecimal(b);
		                      ^
  symbol:   class BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		                                     ^
  symbol:   variable ROUND_HALF_EVEN
  location: class Main
6 errors
Language: Java

import java.util.*;
import java,math.*;

class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int a=scanner.nextInt();
		int b=scanner.nextInt();
		
		int d=a/b;
		int r=a%b;
		
		BigDecimal aBig = new BigDecimal(a);
		BigDecimal bBig = new BigDecimal(b);
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		System.out.println(d+" "+r+" "+fBig.toPlainString());
	}
}

Compiler output:
Main.java:2: error: '.' expected
import java,math.*;
           ^
1 error
Language: Java

import java.util.*;
import java.math.*;

class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int a=scanner.nextInt();
		int b=scanner.nextInt();
		
		int d=a/b;
		int r=a%b;
		
		BigDecimal aBig = new BigDecimal(a);
		BigDecimal bBig = new BigDecimal(b);
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		System.out.println(d+" "+r+" "+fBig.toPlainString());
	}
}

Compiler output:
Main.java:15: error: cannot find symbol
		BigDecimal fBig = aBig.divide(bBig,5,ROUND_HALF_EVEN);
		                                     ^
  symbol:   variable ROUND_HALF_EVEN
  location: class Main
1 error
Language: Java

import java.util.scanner;

public class Main() {

public static void main(String[] args) {
Scanner scan = new Scanner();
int p = scan.nextInt();
int q = scan.nextInt();
int w = p / q;
int c = p % q;
float r = p / q;

System.out.println(w + " " + c + " " + r);
}
}



Compiler output:
Main.java:3: error: '{' expected
public class Main() {
                 ^
1 error
Language: Java

import java.util.scanner;

public class Main{

public static void main(String[] args) {
Scanner scan = new Scanner();
int p = scan.nextInt();
int q = scan.nextInt();
int w = p / q;
int c = p % q;
float r = p / q;

System.out.println(w + " " + c + " " + r);
}
}



Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
Main.java:6: error: cannot find symbol
Scanner scan = new Scanner();
^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
Scanner scan = new Scanner();
                   ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main{

public static void main(String[] args) {
Scanner scan = new Scanner();
int p = scan.nextInt();
int q = scan.nextInt();
int w = p / q;
int c = p % q;
float r = p / q;

System.out.println(w + " " + c + " " + r);
}
}



Compiler output:
Main.java:6: error: no suitable constructor found for Scanner(no arguments)
Scanner scan = new Scanner();
               ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args) {
int p = scan.nextInt();
int q = scan.nextInt();
int w = (float) p / q;
System.out.format(%d + " " + %d + " " + %f.10);
}
}


Compiler output:
Main.java:8: error: illegal start of expression
System.out.format(%d + " " + %d + " " + %f.10);
                  ^
Main.java:8: error: illegal start of expression
System.out.format(%d + " " + %d + " " + %f.10);
                             ^
Main.java:8: error: illegal start of expression
System.out.format(%d + " " + %d + " " + %f.10);
                                        ^
Main.java:8: error: ')' or ',' expected
System.out.format(%d + " " + %d + " " + %f.10);
                                          ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args) {
int p = scan.nextInt();
int q = scan.nextInt();
int w = (float) p / q;
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
}
}


Compiler output:
Main.java:8: error: illegal start of expression
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                  ^
Main.java:8: error: illegal start of expression
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                             ^
Main.java:8: error: illegal start of expression
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                        ^
Main.java:8: error: ')' or ',' expected
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                          ^
Main.java:8: error: not a statement
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                               ^
Main.java:8: error: ';' expected
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                                ^
Main.java:8: error: not a statement
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                                  ^
Main.java:8: error: ';' expected
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                                   ^
Main.java:8: error: not a statement
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                                     ^
Main.java:8: error: ';' expected
System.out.format(%d + " " + %d + " " + %f.10, p, q, w);
                                                      ^
10 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args) {
int p = scan.nextInt();
int q = scan.nextInt();
int w = (float) p / q;
System.out.format("%d %d %f.10", p, q, w);
}
}


Compiler output:
Main.java:5: error: cannot find symbol
int p = scan.nextInt();
        ^
  symbol:   variable scan
  location: class Main
Main.java:6: error: cannot find symbol
int q = scan.nextInt();
        ^
  symbol:   variable scan
  location: class Main
Main.java:7: error: incompatible types: possible lossy conversion from float to int
int w = (float) p / q;
                  ^
3 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = (float) p / q;
System.out.format("%d %d %f.10", p, q, w);
}
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from float to int
int w = (float) p / q;
                  ^
1 error
Language: Java

class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		
		double a = in.nextInt();
		double b = in.nextInt();
		
		System.out.println((int)(a/b)) + (int)(a%b) + (a/b));
	}
}


Compiler output:
Main.java:8: error: not a statement
		System.out.println((int)(a/b)) + (int)(a%b) + (a/b));
		                                            ^
Main.java:8: error: ';' expected
		System.out.println((int)(a/b)) + (int)(a%b) + (a/b));
		                                                   ^
2 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		
		double a = in.nextInt();
		double b = in.nextInt();
		
		System.out.println((int)(a/b)) + (int)(a%b) + (a/b));
	}
}


Compiler output:
Main.java:9: error: not a statement
		System.out.println((int)(a/b)) + (int)(a%b) + (a/b));
		                                            ^
Main.java:9: error: ';' expected
		System.out.println((int)(a/b)) + (int)(a%b) + (a/b));
		                                                   ^
2 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		
		double a = in.nextInt();
		double b = in.nextInt();
		
		System.out.println((int)(a/b)) + " " + (int)(a%b) +  " " + (a/b));
	}
}


Compiler output:
Main.java:9: error: not a statement
		System.out.println((int)(a/b)) + " " + (int)(a%b) +  " " + (a/b));
		                                                         ^
Main.java:9: error: ';' expected
		System.out.println((int)(a/b)) + " " + (int)(a%b) +  " " + (a/b));
		                                                                ^
2 errors
Language: Java

import java.util.Scanner;

public class ABProgram {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int numA, numB;

        numA = Integer.parseInt(scan.next());
        numB = Integer.parseInt(scan.next());

        System.out.print(numA / numA + " ");
        System.out.print(numA % numA + " ");
        System.out.println((double)numA / (double)numB);
    }
}



Compiler output:
Main.java:3: error: class ABProgram is public, should be declared in a file named ABProgram.java
public class ABProgram {
       ^
1 error
Language: Java

mport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
 
    public static void main(String[] args) throws IOException{
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String str =br.readLine();
        String[] stra = str.split(" ");
         
        int a = Integer.parseInt(stra[0]);
        int b = Integer.parseInt(stra[1]);
        double f= (double)a/b;
        int d = a/b;
        int r = a%b;
        System.out.printf("%d %d %.7f",d,r,f);
    }
 
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: Java

import java.util.*;

public class Ex10{
  public static void Main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a,b;
    double f;
    a = sc.nextInt();
    b = sc.nextInt();
    System.out.println(a / b + " " + a % b + " " + a / b + "." + ((double)a / b - a / b));
    sc.close();
  }
}



Compiler output:
Main.java:3: error: class Ex10 is public, should be declared in a file named Ex10.java
public class Ex10{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		int a,b;
		int d,r;
		double f;
		
		a = sc.nextInt();
		b = sc.nextInt();
		
		d = a/b;
		r =a%b;
		f = (double)(a/b);
		
		System.out.println(d,r,f);
		
		
		sc.close();
	}

}


Compiler output:
Main.java:18: error: no suitable method found for println(int,int,double)
		System.out.println(d,r,f);
		          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc  = new Sncanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d=a/b,r=a%b;
        double f=a/b;
        
        System.out.println(d+" "+r+" "+f);
    }
    
}


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc  = new Sncanner(System.in);
                          ^
  symbol:   class Sncanner
  location: class Main
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

		int a = Integer.parseInt(strs[0]);
		int b = Integer.parseInt(strs[1]);

		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;



		System.out.printf("%d %d %f",d, r, f);
		sc.close();


	}

}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		float a = sc.nextfloat();
		float b = sc.nextfloat();
		
		int one = (int)(a / b);
		int two = a % b;
		float three = (float)a / (float)b;
		
		System.out.println((int)(a / b) + " " + a % b + " " + (a/b));
		
		//有効数字問題があるかもしれない

		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		float a = sc.nextfloat();
		            ^
  symbol:   method nextfloat()
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
		float b = sc.nextfloat();
		            ^
  symbol:   method nextfloat()
  location: variable sc of type Scanner
Main.java:14: error: incompatible types: possible lossy conversion from float to int
		int two = a % b;
		            ^
3 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		float a = sc.nextfloat();
		float b = sc.nextfloat();
		
		int one = (int)(a / b);
		int two = a % b;
		float three = (float)a / (float)b;
		
		System.out.println((int)a / b + " " + a % b + " " + (a/b));
		
		//有効数字問題があるかもしれない

		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		float a = sc.nextfloat();
		            ^
  symbol:   method nextfloat()
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
		float b = sc.nextfloat();
		            ^
  symbol:   method nextfloat()
  location: variable sc of type Scanner
Main.java:14: error: incompatible types: possible lossy conversion from float to int
		int two = a % b;
		            ^
3 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextdouble();
		double b = sc.nextdouble();
		
		System.out.println((int)a / b + " " + a % b + " " + (a/b));
		
		//有効数字問題があるかもしれない

		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		double a = sc.nextdouble();
		             ^
  symbol:   method nextdouble()
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
		double b = sc.nextdouble();
		             ^
  symbol:   method nextdouble()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		Double a = sc.nextDouble();
		Double b = sc.nextDouble();
		
		System.out.println((int)a / b + " " + a % b + " " + (a/b));
		
		//有効数字問題があるかもしれない

		
				
	}
}



Compiler output:
Main.java:13: error: incompatible types: Double cannot be converted to int
		System.out.println((int)a / b + " " + a % b + " " + (a/b));
		                        ^
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		Double a = sc.nextDouble();
		Double b = sc.nextDouble();
		
		System.out.println((int)a / b + " " + (a % b) + " " + (a/b));
		
		//有効数字問題があるかもしれない

		
				
	}
}



Compiler output:
Main.java:13: error: incompatible types: Double cannot be converted to int
		System.out.println((int)a / b + " " + (a % b) + " " + (a/b));
		                        ^
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int one = (int)(a / b);
		int two = a % b;
		Double three = (double)a / (double)b;
		
		System.out.println(one + " " + two + " " + threed);
		
		//有効数字問題があるかもしれない

		
				
	}
}



Compiler output:
Main.java:17: error: cannot find symbol
		System.out.println(one + " " + two + " " + threed);
		                                           ^
  symbol:   variable threed
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int one = a / b;
		int two = a % b;[

float x = a;
float y = b;

		float three = x / y;
		
		System.out.println((int)(a / b) + " " + a % b + " " + (a/b));

		
				
	}
}



Compiler output:
Main.java:14: error: illegal start of expression
		int two = a % b;[
		                ^
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int one = a / b;
		int two = a % b;[

float x = a;
float y = b;

		float three = x / y;
		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:14: error: illegal start of expression
		int two = a % b;[
		                ^
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int long = a / b;
		int long = a % b;

float x = a;
float y = b;

		float three = x / y;
		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:13: error: not a statement
		int long = a / b;
		^
Main.java:13: error: ';' expected
		int long = a / b;
		   ^
Main.java:13: error: not a statement
		int long = a / b;
		    ^
Main.java:13: error: ';' expected
		int long = a / b;
		        ^
Main.java:13: error: not a statement
		int long = a / b;
		             ^
Main.java:14: error: not a statement
		int long = a % b;
		^
Main.java:14: error: ';' expected
		int long = a % b;
		   ^
Main.java:14: error: not a statement
		int long = a % b;
		    ^
Main.java:14: error: ';' expected
		int long = a % b;
		        ^
Main.java:14: error: not a statement
		int long = a % b;
		             ^
10 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		long a = sc.nextlong();
		long b = sc.nextlong();
		
		long one = a / b;
		long two = a % b;

float x = a;
float y = b;

		float three = x / y;
		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		long a = sc.nextlong();
		           ^
  symbol:   method nextlong()
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
		long b = sc.nextlong();
		           ^
  symbol:   method nextlong()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		long a = sc.nextlong();
		long b = sc.nextlong();
		
		long one = a / b;
		long two = a % b;

double x = a;
double y = b;

		double three = x / y;
		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		long a = sc.nextlong();
		           ^
  symbol:   method nextlong()
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
		long b = sc.nextlong();
		           ^
  symbol:   method nextlong()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		Long a = sc.nextLong();
		Long b = sc.nextLong();
		
		Long one = a / b;
		Long two = a % b;

Double x = a;
Double y = b;

		Double three = x / y;
		
		System.out.println(one + " " + two + " " + (Double)(three));

		
				
	}
}



Compiler output:
Main.java:16: error: incompatible types: Long cannot be converted to Double
Double x = a;
           ^
Main.java:17: error: incompatible types: Long cannot be converted to Double
Double y = b;
           ^
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		Long a = sc.nextLong();
		Long b = sc.nextLong();
		
		Long one = a / b;
		Long two = a % b;

Double x = a;
Double y = b;

		Double three = x / y;
		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:16: error: incompatible types: Long cannot be converted to Double
Double x = a;
           ^
Main.java:17: error: incompatible types: Long cannot be converted to Double
Double y = b;
           ^
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		Long a = sc.nextLong();
		Long b = sc.nextLong();
		
		Long one = a / b;
		Long two = a % b;

Double x = a;
Double y = b;

		Double three = (Double)(x / y);
		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:16: error: incompatible types: Long cannot be converted to Double
Double x = a;
           ^
Main.java:17: error: incompatible types: Long cannot be converted to Double
Double y = b;
           ^
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		Long a = sc.nextLong();
		Long b = sc.nextLong();
		
		Long one = a / b;
		Long two = a % b;

float x = a;
float y = b;

		double three = new BigDecimal(String.valueOf(a / b)).setScale(10, BigDecimal.ROUND_HALF_UP).doubleValue();

		
		System.out.println(one + " " + two + " " + three);

		
				
	}
}



Compiler output:
Main.java:19: error: cannot find symbol
		double three = new BigDecimal(String.valueOf(a / b)).setScale(10, BigDecimal.ROUND_HALF_UP).doubleValue();
		                                                                  ^
  symbol:   variable BigDecimal
  location: class Main
Main.java:19: error: cannot find symbol
		double three = new BigDecimal(String.valueOf(a / b)).setScale(10, BigDecimal.ROUND_HALF_UP).doubleValue();
		                   ^
  symbol:   class BigDecimal
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		
	Scanner sc = new Scanner(System.in);
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d,r;
	double f;
	
	d = a/b;
	r = a%b;
	f = (double)a/b;
	
	System.out.printf("%d %d %f\ｎ" ,d,r,f);
	sc.close();
	}
}



Compiler output:
Main.java:16: error: illegal escape character
	System.out.printf("%d %d %f\?" ,d,r,f);
	                            ^
Main.java:16: error: not a statement
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                ^
Main.java:16: error: ';' expected
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                 ^
Main.java:16: error: not a statement
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                  ^
Main.java:16: error: ';' expected
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                   ^
Main.java:16: error: not a statement
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                    ^
Main.java:16: error: ';' expected
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                     ^
7 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		
	Scanner sc = new Scanner(System.in);
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d,r;
	double f;
	
	d = a/b;
	r = a%b;
	f = (double)a/b;
	
	System.out.printf("%d %d %f\ｎ" ,d,r,f);
	sc.close();
	}
}


Compiler output:
Main.java:16: error: illegal escape character
	System.out.printf("%d %d %f\?" ,d,r,f);
	                            ^
Main.java:16: error: not a statement
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                ^
Main.java:16: error: ';' expected
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                 ^
Main.java:16: error: not a statement
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                  ^
Main.java:16: error: ';' expected
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                   ^
Main.java:16: error: not a statement
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                    ^
Main.java:16: error: ';' expected
	System.out.printf("%d %d %f\?" ,d,r,f);
	                                     ^
7 errors
Language: Java

import java.util.Scanner;

class Main{
public static void main(String[] args){
 scanner sc=new scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double af,bf,cf;
double af=a;
double bf=b;
double cf=a/b;

System.out.println(d+" "+r+" "+cf);

}
}



Compiler output:
Main.java:5: error: cannot find symbol
 scanner sc=new scanner(System.in);
 ^
  symbol:   class scanner
  location: class Main
Main.java:5: error: cannot find symbol
 scanner sc=new scanner(System.in);
                ^
  symbol:   class scanner
  location: class Main
Main.java:16: error: variable af is already defined in method main(String[])
double af=a;
       ^
Main.java:17: error: variable bf is already defined in method main(String[])
double bf=b;
       ^
Main.java:18: error: variable cf is already defined in method main(String[])
double cf=a/b;
       ^
5 errors
Language: Java

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double af,bf,cf;
double af=a;
double bf=b;
double cf=a/b;

System.out.println(d+" "+r+" "+cf);

}
}



Compiler output:
Main.java:16: error: variable af is already defined in method main(String[])
double af=a;
       ^
Main.java:17: error: variable bf is already defined in method main(String[])
double bf=b;
       ^
Main.java:18: error: variable cf is already defined in method main(String[])
double cf=a/b;
       ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double aq,bq,cq;
double aq=a;
double bq=b;
double cq=a/b;

System.out.println(d+" "+r+" "+cq);

}
}



Compiler output:
Main.java:16: error: variable aq is already defined in method main(String[])
double aq=a;
       ^
Main.java:17: error: variable bq is already defined in method main(String[])
double bq=b;
       ^
Main.java:18: error: variable cq is already defined in method main(String[])
double cq=a/b;
       ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double k,l,m;
k=a;
l=b;
m=a/b;

System.out.println(d+" "+r+" "+cq);

}
}



Compiler output:
Main.java:20: error: cannot find symbol
System.out.println(d+" "+r+" "+cq);
                               ^
  symbol:   variable cq
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f = 1.0 * a_f / b_f ;
	System.out.println(d + " " + r + " " + f);
	}
}


Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to float
	float f = 1.0 * a_f / b_f ;
	                    ^
1 error
Language: Java

import java.util.Scanner;

public class main{
  
  public static void main(String[] args) {
    
    Scanner sin = new Scanner(System.in);

    int a = sin.nextInt();
    int b = sin.nextInt();

    System.out.println(a/b + " " + a % b +" " + Double.valueOf((double)a / (double)b));
  }
}


Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f =  a_f / b_f ;
		if (f > 1000000){int x = a / b;
		System.out.println(d + " " + r + " "+ xava);}
			else{
			System.out.println(d + " " + r + " " + f);
		}
	}
}


Compiler output:
Main.java:13: error: cannot find symbol
		System.out.println(d + " " + r + " "+ xava);}
		                                      ^
  symbol:   variable xava
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f =  a_f / b_f ;
		if (f > 1000000){
		int x = a / b;
		float r_f = (float)r :
		float y = r_f / b_f;
		float z = x + y;
		System.out.println(d + " " + r + " "+ z);}
			else{
			System.out.println(d + " " + r + " " + f);
		}
	}
}


Compiler output:
Main.java:14: error: ';' expected
		float r_f = (float)r :
		                    ^
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f =  a_f / b_f ;
		if (f > 1000000){
		int x = a / b;
		float r_f = (float)r ;
		float y = r_f / b_f;
		float z = x + y;
			if(z = 0){System.out.println(d +" "+ r + " " + x);}
			else{ System.out.println(d + " " + r + " "+ z);}}
			else{
			System.out.println(d + " " + r + " " + f);
		}
	}
}


Compiler output:
Main.java:17: error: incompatible types: float cannot be converted to boolean
			if(z = 0){System.out.println(d +" "+ r + " " + x);}
			     ^
1 error
Language: Java

public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f =  a_f / b_f ;
		if (f > 1000000){
		int x = a / b;
		float r_f = (float)r ;
		float y = r_f / b_f;
		float z = x + y;
		
			if(r_f == 0){System.out.println(d +" "+ r + " " + x);}
			else{ if(y == 0.5 ){System.out.println(d +" "+ r + " " + x + ".5");} else{ System.out.println(d + " " + r + " "+ z);}}}
			else{
			System.out.println(d + " " + r + " " + f);
		}
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.math.BigDecimal;
public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f =  a_f / b_f ;
			int x = a / b;
		float r_f = (float)r ;
		float y = r_f / b_f;
		
			float z = x + y;
		BigDecimal bd = new BigDecimal(z);
		if (y ==0.5){System.out.println(d + " " + r + " " + x + ".5");}
		else{
		BigDecimal bd3 = bd.setScale(6, BigDecimal.ROUND_DOWN);
			System.out.println(d + " " + r + " " + bd3);}
		
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	                 ^
  symbol:   class Scanner
  location: class Main
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors