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

import java.io.BufferedReader;
import java.io.IOException;


public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(
                new InputStreamReader (System.in));
        String str=br.readLine();
        
        int suuti=Integer.parseInt(str);
	
	int zkn = suuti / 3600;
	int hun = (suuti % 3600 ) / 60;
	int byo = suuti % 60;
       
        System.out.println(zkn+ ":" +hun+ ":" +byo);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
                new InputStreamReader (System.in));
                    ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;


public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(
                new InputStreamReader(System.in));
        String str=br.readLine();
        
        int suuti=Integer.parseInt(str);
	
	int zkn = suuti / 3600;
	int hun = (suuti % 3600 ) / 60;
	int byo = suuti % 60;
       
        System.out.println(zkn+ ":" +hun+ ":" +byo);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
                new InputStreamReader(System.in));
                    ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;


public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        
        int suuti=Integer.parseInt(str);
	
	int zkn = suuti / 3600;
	int hun = (suuti % 3600 ) / 60;
	int byo = suuti % 60;
       
        System.out.println(zkn+ ":" +hun+ ":" +byo);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;


public class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        
        int suuti=Integer.parseInt(str);
	
	int zkn = suuti / 3600;
	int hun = (suuti % 3600 ) / 60;
	int byo = suuti % 60;
       
        System.out.println(zkn+ ":" +hun+ ":" +byo);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	                                           ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

import java.io.*;

public class Watch {
	public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String secStr = br.readLine();
		while( secStr.length() > 0 ) {
			int sec = Integer.parseInt(secStr);
			if ( sec <= 0 ) break;
			int[] hms = new int[3];
			for( int i = 0; i < 3 ; i++ ) {
				hms[i] = sec % 60;
				sec = sec / 60;
			}
			System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]);
			secStr = br.readLine();
		}
	}
}

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

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int x = sc.nextInt();
int h = x/3600;
int m = (x-h*3600)/60;
int s = x-h*3600-m*60
System.out.println(h+":"+m+":"+s);
}
}

Compiler output:
Main.java:8: error: ';' expected
int s = x-h*3600-m*60
                     ^
1 error
Language: Java

public class Watch {
	public static void main(String[] args){
		int S = new java.util.Scanner( System.in).nextInt();
		int h,m,s;
		h = S/3600;
		m = (S%3600)/60;
		s = (S%3600)%60;
		System.out.print(h + ":" + m + ":" +s);
	}

}

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

public class Main {
	public static void main(String[] args){
		int S = new java.util.Scanner( System.in).nextInt(0 <= S <86400);
		int h,m,s;
		h = S/3600;
		m = (S%3600)/60;
		s = (S%3600)%60;
		System.out.print(h + ":" + m + ":" +s);
	}

}

Compiler output:
Main.java:3: error: bad operand types for binary operator '<'
		int S = new java.util.Scanner( System.in).nextInt(0 <= S <86400);
		                                                         ^
  first type:  boolean
  second type: int
1 error
Language: Java

public class Main {
	public static void main(String[] args){
		boolean S = new java.util.Scanner( System.in).nextInt(0 <= S <86400);
		int h,m,s;
		h = S/3600;
		m = (S%3600)/60;
		s = (S%3600)%60;
		System.out.print(h + ":" + m + ":" +s);
	}

}

Compiler output:
Main.java:3: error: bad operand types for binary operator '<='
		boolean S = new java.util.Scanner( System.in).nextInt(0 <= S <86400);
		                                                        ^
  first type:  int
  second type: boolean
Main.java:5: error: bad operand types for binary operator '/'
		h = S/3600;
		     ^
  first type:  boolean
  second type: int
Main.java:6: error: bad operand types for binary operator '%'
		m = (S%3600)/60;
		      ^
  first type:  boolean
  second type: int
Main.java:7: error: bad operand types for binary operator '%'
		s = (S%3600)%60;
		      ^
  first type:  boolean
  second type: int
4 errors
Language: Java

import java.util.Scanner;

public class Watch {
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int x = scan.nextInt();
    	int h,m,s;
    	h = x / (60*60);
    	m = (x-h*60*60)/60;
    	s = x-h*60*60-m*60;
        System.out.println(h+":"+m+":"+s);
    }
}

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

public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int seconds = Integer.parseInt(br.readLine());

		int hh = seconds / 3600;
		int mm = seconds / 3600 / 60;
		int ss = seconds % 3600 % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String args[]) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.scanner;
class Main[
public staic void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = a/3600;
int c = (a%3600)/60;
int d = a%60;
System.out.println(b+":"+c":"+d);





}





}

Compiler output:
Main.java:2: error: '{' expected
class Main[
          ^
Main.java:3: error: class, interface, enum, or record expected
public staic void main(String[] args){
       ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int a = sc.nextInt();
^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
System.out.println(b+":"+c":"+d);
^
Main.java:15: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

import java.util.Scanner;
public class D{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num = scan.nextInt();
	int h=0,m=0,s=0;

	while(true)
	    {
		if( num - 3600 >= 0 )
		    {
			num = num-3600;
		    h++;
		    }
		else if( num - 60 >= 0 )
		    {
			num = num-60;
			m++;
		    }
		else {
		        if( num == 0) break;
			s++;
			num--;
		}
	    }
	System.out.println(h+":"+m+":"+s);

    }
}

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

import java.io.*;

class Main
{
 public static void main(String[] args) throws IOException
 {
	 Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
 
 int h = n/3600;
 int m = n%3600/60;
 int s = n%60;
 
 System.out.println(h+":"+m+":"+s);
 }
}

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

import static java.lang.System.out;

public class Main{
    public static void main(String[] args)
        int S = new java.util.Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = S % 3600 / 60;
        int s = S % 3600 / 60;

        out.print(hour + ":");
        out.print(minute + ":");
        out.println(second);
}

Compiler output:
Main.java:4: error: ';' expected
    public static void main(String[] args)
                                          ^
Main.java:11: error: <identifier> expected
        out.print(hour + ":");
                 ^
Main.java:11: error: <identifier> expected
        out.print(hour + ":");
                      ^
Main.java:12: error: <identifier> expected
        out.print(minute + ":");
                 ^
Main.java:12: error: <identifier> expected
        out.print(minute + ":");
                        ^
Main.java:13: error: <identifier> expected
        out.println(second);
                   ^
Main.java:13: error: <identifier> expected
        out.println(second);
                          ^
7 errors
Language: Java

import static java.lang.System.out;                                                                                                            
import java.util.scanner;

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

        int h = S / 3600;
        int m = S % 3600 / 60;
        int s = S % 3600 / 60;

        out.print(hour + ":");
        out.print(minute + ":");
        out.println(second);
}

Compiler output:
Main.java:5: error: ';' expected
    public static void main(String[] args)
                                          ^
Main.java:12: error: <identifier> expected
        out.print(hour + ":");
                 ^
Main.java:12: error: <identifier> expected
        out.print(hour + ":");
                      ^
Main.java:13: error: <identifier> expected
        out.print(minute + ":");
                 ^
Main.java:13: error: <identifier> expected
        out.print(minute + ":");
                        ^
Main.java:14: error: <identifier> expected
        out.println(second);
                   ^
Main.java:14: error: <identifier> expected
        out.println(second);
                          ^
7 errors
Language: Java

import java.util.Scanner;
                                                                             
public class Watch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;
   
        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;
  
        System.out.println(h + ":" + m + ":" + s);
    }
}

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

import java.util.Scanner;
 
 public class Main {
     public static void main(String[] args) {
         Scanner scan = new Scanner(System.in) {
         int s = scan.nextInt();
         int h = s / 3600;
         int m = (s % 3600) / 60;
         s = s % 60;
 
         System.out.println(h + ":" + m + ":" + s);
         }
     }
 }

Compiler output:
Main.java:9: error: <identifier> expected
         s = s % 60;
          ^
Main.java:11: error: <identifier> expected
         System.out.println(h + ":" + m + ":" + s);
                           ^
Main.java:11: error: <identifier> expected
         System.out.println(h + ":" + m + ":" + s);
                             ^
Main.java:12: error: ';' expected
         }
          ^
4 errors
Language: Java

import java.lang.*;
import java.util.*;

public class AizuC {

    public static void main(String[] args) throws Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    }
}

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

import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int hour=0;
		int min=0;
		int sec=0;
		try{
			BufferedReader br = new BufferedReader(InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			BufferedReader br = new BufferedReader(InputStreamReader(System.in));
			                                       ^
  symbol:   method InputStreamReader(InputStream)
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main 
{
    public static void main(String[] args) {
        BufferdReader br = new BufferdReader(new InputStreamReader(System.in),1);
        
        String s = br.readLine();
        
        int second = s % 60;
        int minutes = (s/60)%60;
        int hour = s / 3600;
        
    
        
        System.out.println (hour + ":"+minutes +":"+second );
        
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        BufferdReader br = new BufferdReader(new InputStreamReader(System.in),1);
        ^
  symbol:   class BufferdReader
  location: class Main
Main.java:6: error: cannot find symbol
        BufferdReader br = new BufferdReader(new InputStreamReader(System.in),1);
                               ^
  symbol:   class BufferdReader
  location: class Main
Main.java:10: error: bad operand types for binary operator '%'
        int second = s % 60;
                       ^
  first type:  String
  second type: int
Main.java:11: error: bad operand types for binary operator '/'
        int minutes = (s/60)%60;
                        ^
  first type:  String
  second type: int
Main.java:12: error: bad operand types for binary operator '/'
        int hour = s / 3600;
                     ^
  first type:  String
  second type: int
5 errors
Language: Java

package algorithm;
import java.util.Scanner;

public class Xcubic {

	public static void main(String[] args) {
		int h = 0;
		int m = 0;
		Scanner sc = new Scanner(System.in);
		int s = sc.nextInt();   //60s 60m=3600s
		if(s>3600){
			h = s/3600;
			s %= 3600;
		}
        if(s>60){
        	m = s/60;
        	s %= 60;
        }
        System.out.printf("%d;%d;%d\n",h,m,s);

	}

}

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

public class Main{
	public static void main(){

		Scanner scan = new Scanner(System.in);

		int S = scan.nextInt();

		int h = S / 3600;
		int m = (S % 3600) / 60;
		int s = (S % 3600) % 60;
	}
}

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

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int S = scan.nextInt();

		int h = S / 3600;
		int m = (S % 3600) / 60;
		int s = (S % 3600) % 60;
	}
}

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

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int S;
		S = scan.nextInt();

		int h = S / 3600;
		int m = (S % 3600) / 60;
		int s = (S % 3600) % 60;
	}
}

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

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int a;
		a = scan.nextInt();

		int h = a / 3600;
		int m = (a % 3600) / 60;
		int s = (a % 3600) % 60;
	}
}

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

import java.io.*;
public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System\
.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
}

Compiler output:
Main.java:4: error: illegal character: '\'
        BufferedReader reader = new BufferedReader(new InputStreamReader(System\
                                                                               ^
Main.java:5: error: not a statement
.in));
 ^
Main.java:5: error: ';' expected
.in));
   ^
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Watch {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        int h, m, s;
        if(n>=0 && n<86400){
        	h = n/3600;
        	int rim = n % 3600;
        	m= rim/60;
        	s =rim%60;
        	System.out.println(h +":" + m + ":" + s);
        }
	}
}

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

class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	int hours = 0;
	int minutes = 0;
	for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	}
	for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	}
	System.out.println(hours+":"+minutes+":"+seconds);


    }
}

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] args) throws IOException{
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
	BufferedReader br =
	^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	    new BufferedReader(new InputStreamReader(System.in));
	        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	    new BufferedReader(new InputStreamReader(System.in));
	                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
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();

  int x=Integer.parseInt(str),h=x/3600,m,s;
  x%=3600;

  m=x/60;
  x%=60;

  s=x;

  System.out.println(h+":"+m+":"+s);
 } 

Compiler output:
Main.java:3: error: '{' expected
class Main
          ^
Main.java:5: 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)
2 errors
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();

  int x=Integer.parseInt(str),h=x/3600,m,s;
  x%=3600;

  m=x/60;
  x%=60;

  s=x;

  System.out.println(h+":"+m+":"+s);

Compiler output:
Main.java:3: error: '{' expected
class Main
          ^
Main.java:5: 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)
Main.java:5: error: ';' expected
public static void main(String[] args) throws IOException
                                                         ^
Main.java:11: error: class, interface, enum, or record expected
  x%=3600;
  ^
Main.java:13: error: class, interface, enum, or record expected
  m=x/60;
  ^
Main.java:14: error: class, interface, enum, or record expected
  x%=60;
  ^
Main.java:16: error: class, interface, enum, or record expected
  s=x;
  ^
Main.java:18: error: class, interface, enum, or record expected
  System.out.println(h+":"+m+":"+s);
  ^
8 errors
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();

  int x=Integer.parseInt(str),h=x/3600,m,s;
  x%=3600;

  m=x/60;
  x%=60;

  s=x;
}
  System.out.println(h+":"+m+":"+s);

Compiler output:
Main.java:3: error: '{' expected
class Main
          ^
Main.java:5: 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)
Main.java:19: error: class, interface, enum, or record expected
  System.out.println(h+":"+m+":"+s);
  ^
3 errors
Language: Java


class Main
{
	public static void main(String[] args)
	{
		int h,m,s;
		
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.print(h+":"+m+":"+s);
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
		h=S/3600;
		  ^
  symbol:   variable S
  location: class Main
Main.java:9: error: cannot find symbol
		m=S%3600/60;
		  ^
  symbol:   variable S
  location: class Main
Main.java:10: error: cannot find symbol
		s=S%60;
		  ^
  symbol:   variable S
  location: class Main
3 errors
Language: Java

class Main
{
	public static void main(String[] args)
	{
		int S;
		int h,m,s;
		
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.print(h+":"+m+":"+s);
	}
}

Compiler output:
Main.java:8: error: variable S might not have been initialized
		h=S/3600;
		  ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.nextline();
        int S, h, m, s
        S = Integer.parseInt(str);
        int h = S / 3600;
        int S = S % 3600;
        int m = S / 60;
        int s = S % 60;
        System.out.println(h+":"+m+":"+s);
    }
    
}

Compiler output:
Main.java:9: error: ';' expected
        int S, h, m, s
                      ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.nextline();
        int S, h, m, s;
        S = Integer.parseInt(str);
        int h = S / 3600;
        int S = S % 3600;
        int m = S / 60;
        int s = S % 60;
        System.out.println(h+":"+m+":"+s);
    }
    
}

Compiler output:
Main.java:8: error: cannot find symbol
        String str = in.nextline();
                       ^
  symbol:   method nextline()
  location: variable in of type Scanner
Main.java:11: error: variable h is already defined in method main(String[])
        int h = S / 3600;
            ^
Main.java:12: error: variable S is already defined in method main(String[])
        int S = S % 3600;
            ^
Main.java:13: error: variable m is already defined in method main(String[])
        int m = S / 60;
            ^
Main.java:14: error: variable s is already defined in method main(String[])
        int s = S % 60;
            ^
5 errors
Language: Java

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        int S, h, m, s;
        S = Integer.parseInt(str);
        int h = S / 3600;
        int S = S % 3600;
        int m = S / 60;
        int s = S % 60;
        System.out.println(h+":"+m+":"+s);
    }
    
}

Compiler output:
Main.java:11: error: variable h is already defined in method main(String[])
        int h = S / 3600;
            ^
Main.java:12: error: variable S is already defined in method main(String[])
        int S = S % 3600;
            ^
Main.java:13: error: variable m is already defined in method main(String[])
        int m = S / 60;
            ^
Main.java:14: error: variable s is already defined in method main(String[])
        int s = S % 60;
            ^
4 errors
Language: Java

import java.util.*;
public class Main4{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    //int h,m,s;
    
    //int amari = a%60;
    if(a < 60){
       int s = a;
       int m = 0;
       int h = 0;
        System.out.println(+  h + ":" + m + ":" + s);
     }
    if(a > 60){
       int syou = a/60;
      if(syou < 60){
       int m = syou;
       int amari = a%60;
       int s = amari;
       int h = 0;
        System.out.println(+  h + ":" + m + ":" + s);

      }else if(syou > 60){
       int syou2 = syou/60;
       int h = syou2;
       int amari = a%60;
       int s = amari;
       int amari2 = syou2%60;
       int m = amari2;
        System.out.println( +  h + ":" + m + ":" + s);
      }
     }

       
   
  }

}

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

import java.util.*;
public class Main4{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int h,m,s;

    h = a / 3600;
    a %= 3600;

    m = a / 60;
    a %= 60;

    s = a;

    System.out.println(h + ":" + m + ":" + s);   

       
   
  }

}

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

import java.util.Scanner;

class Main{

  public static void main(String[] args){
  
  Scanner scan = new Scanner(System.in);
  
  int sec = scan.nextInt();
  
  int hour = sec / 60;
  int min = hour / 60;
  int sec = min % 60;
  
  System.out.println(hour + ":" + min + ":" + sec);
  }
}

Compiler output:
Main.java:13: error: variable sec is already defined in method main(String[])
  int sec = min % 60;
      ^
1 error
Language: Java

import java.io.*;
class main
{
private static String format(long startTime, long endTime) {

    String diffTime = DurationFormatUtils.formatPeriod(startTime,
            endTime, "HH:mm:ss.SSS");

    return diffTime;


}
           }

Compiler output:
Main.java:6: error: cannot find symbol
    String diffTime = DurationFormatUtils.formatPeriod(startTime,
                      ^
  symbol:   variable DurationFormatUtils
  location: class main
1 error
Language: Java


import java.io.*;
class main
{
private static String main(long startTime, long endTime) {

    String diffTime = DurationFormatUtils.formatPeriod(startTime,
            endTime, "HH:mm:ss.SSS");

    return diffTime;


}
           }

Compiler output:
Main.java:7: error: cannot find symbol
    String diffTime = DurationFormatUtils.formatPeriod(startTime,
                      ^
  symbol:   variable DurationFormatUtils
  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 hour = a / 3600;
            int	b = a % 3600;
            int min = b / 60;
            int sec = b % 60;
            System.out.printf("%d:%d:%d%n",hour,min,sec);
        }
	}

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

import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        long seconds = Long.parseLong(br.readLine);
        int h = (int) seconds/60/60;
        int m = (int) (seconds/60)%60;
        int s = (int) seconds%60;
        System.out.println(h + ":" + m + ":" + s);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        long seconds = Long.parseLong(br.readLine);
                                        ^
  symbol:   variable readLine
  location: variable br of type BufferedReader
1 error
Language: Java

import java.util.Scanner;

public class Mian{
	public static void main(String[] args){
	
		Scanner a = new Scanner(System.in);
		
		int S = a.nextInt();
		int h = a.nextInt(S/3600);
		int m = a.nextInt((S % 3600)/60);
		int s = a.nextInt(S- (h*3600+m*60));
		System.out.println(h + ":" + m + ":" + s);
	}
}

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

import java.util.Scanner;

public class Mian{
	public static void main(String[] args){
	
		Scanner a = new Scanner(System.in);
		
		int S = a.nextInt();
		int h = S/3600;
		int m = (S % 3600)/60;
		int s = S- (h*3600+m*60);
		System.out.println(h + ":" + m + ":" + s);
	}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	
		Scanner a = new Scanner(System.in);
		
		int S = a.nextInt();
		int h = S/3600;
		int m = (S % 3600)/60;
		int s = S- (h*3600+m*60);
		System.out.println(h + ":" + m + ":" + s);
	}

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

public class Main {
    public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int minutes = i / 60;
        int second = i % 60;
        int minute = minutes % 60;
        int hour = minutes / 60;
        System.out.println(hour + ":" + minute + ":" + second);
    }
}

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

import java.io.*;
public class Main14{
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] param = input.spplit(" ");
    int time = Integer.parseInt(param[0]);
    int h = time / 60;
    int m = (time % 60) / 60;
    int s = time - 60 * h - 60 * m;
    System.out.println(h + " " + m + " " + s);
}

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

import java.io.*;
public class Main{
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] param = input.spplit(" ");
    int time = Integer.parseInt(param[0]);
    int h = time / 60;
    int m = (time % 60) / 60;
    int s = time - 60 * h - 60 * m;
    System.out.println(h + " " + m + " " + s);
}

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

import java.io.*;
public class Main14{
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] param = input.spplit(" ");
    int time = Integer.parseInt(param[0]);
    int h = time / 60;
    int m = (time % 60) / 60;
    int s = time - 60 * h - 60 * m;
    System.out.println(h + " " + m + " " + s);
  }
}

Compiler output:
Main.java:2: error: class Main14 is public, should be declared in a file named Main14.java
public class Main14{
       ^
Main.java:6: error: cannot find symbol
    String[] param = input.spplit(" ");
                          ^
  symbol:   method spplit(String)
  location: variable input of type String
2 errors
Language: Java

import java.io.*;
public class Main{
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] param = input.spplit(" ");
    int time = Integer.parseInt(param[0]);
    int h = time / 60;
    int m = (time % 60) / 60;
    int s = time - 60 * h - 60 * m;
    System.out.println(h + " " + m + " " + s);
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    String[] param = input.spplit(" ");
                          ^
  symbol:   method spplit(String)
  location: variable input of type String
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		 try {
		 BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		 String ln;
		ln = buf.readLine();
		
//       String[] strAry = ln.split(" ");
//       int x = Integer.parseInt(strAry[0]);
//       int y = Integer.parseInt(strAry[1]);
		
       int z = Integer.parseInt(ln);
       int min = z/60;
       int hour = min/60;
       int min = min - hour/60;
       int sec = z - hour*3600 - min*60;
       
       System.out.println(hour + ":" + min + ":" +  sec + ":");
			} catch (IOException e) {
				// TODO ????????????????????? catch ????????????
				e.printStackTrace();
			}
    }
}

Compiler output:
Main.java:20: error: variable min is already defined in method main(String[])
       int min = min - hour/60;
           ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		 try {
		 BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		 String ln;
		ln = buf.readLine();
		
//       String[] strAry = ln.split(" ");
//       int x = Integer.parseInt(strAry[0]);
//       int y = Integer.parseInt(strAry[1]);
		
       int z = Integer.parseInt(ln);
       int min = z/60;
       int hour = min/60;
       int min = min - hour*60;
       int sec = z - hour*3600 - min*60;
       
       System.out.println(hour + ":" + min + ":" +  sec);
			} catch (IOException e) {
				// TODO ????????????????????? catch ????????????
				e.printStackTrace();
			}
    }
}

Compiler output:
Main.java:20: error: variable min is already defined in method main(String[])
       int min = min - hour*60;
           ^
1 error
Language: Java

private static String format(long startTime, long endTime) {

    String diffTime = DurationFormatUtils.formatPeriod(startTime,
            endTime, "HH:mm:ss.SSS");

    return diffTime;

}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
private static String format(long startTime, long endTime) {
               ^
  (use --enable-preview to enable unnamed classes)
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();
		
		int S=Integer.parseInt(str);
                int h=S/3600;
                int m=(S%3600)/60
                int s=(S%3600)%60

		System.out.println(h+":"+m+":"+s);
	}
}

Compiler output:
Main.java:15: error: ';' expected
                int m=(S%3600)/60
                                 ^
Main.java:16: error: ';' expected
                int s=(S%3600)%60
                                 ^
2 errors
Language: Java

using System;
 
namespace Watch
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
 
            int h = a / 3600;
            int x = a % 3600;
 
            int m = x / 60;
            int s = x % 60;
 
            Console.WriteLine(h + ":" + m + ":" + s);
        }
    }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
using System;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
namespace Watch
^
Main.java:9: error: class expected
            int a = int.Parse(Console.ReadLine());
                        ^
Main.java:9: error: ';' expected
            int a = int.Parse(Console.ReadLine());
                             ^
Main.java:9: error: ';' expected
            int a = int.Parse(Console.ReadLine());
                                                ^
Main.java:20: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
import java.io.*;
  
class Main {
public static void main (String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] strArr = br.readLine().split(" ");
int[] numArr = {
Integer.parseInt(strArr[0]),
 Integer.parseInt(strArr[2])
};
int i, j, temp;
for (i = 0; i < 2; i++) {
for (j = 0; j < 2 - i; j++) {
if (numArr[j] > numArr[j+1]) {
temp = numArr[j];
numArr[j] = numArr[j+1];
numArr[j+1] = temp;
}
}
 System.out.println(numArr[0]+" "+numArr[1]+" "+numArr[2]);
}
}
 

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
2
^
Main.java:46: error: reached end of file while parsing
}
 ^
2 errors
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();

      int S = Integer.parseInt(str);
      int h = S/3600
      int m = S%3600/60
      int s = S%60
      System.out.print( h + ":" + m + ":" + s );
   }
}

Compiler output:
Main.java:15: error: ';' expected
      int h = S/3600
                    ^
Main.java:16: error: ';' expected
      int m = S%3600/60
                       ^
Main.java:17: error: ';' expected
      int s = S%60
                  ^
3 errors
Language: Java

#include <iostream>
using namespace std;
 
int main() {
    int S;
    cin >> S;
    int h = S / 3600;
    int m = S / 60 - 60 * h;
    int s = S - 3600 * h - 60 * m;
 
    cout << h << ":" << m << ":" << s << endl;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:6: error: not a statement
    cin >> S;
        ^
Main.java:11: error: not a statement
    cout << h << ":" << m << ":" << s << endl;
                                      ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main
{
   public static void main(String[] args) throws IOException
   {

      
      BufferedReader br =
       new BufferedReader( new InputStreamReader(System.in));

      String str = br.readLine();

      int sec = Integer.parseInt(str);
      int h = sec/3600;
      int m = (sec%3600)/60;
      int s = (sec%3600)% 60;
      System.out.print( h + ":" + m + ":" + s );
   }
}

Compiler output:
Main.java:6: error: cannot find symbol
   public static void main(String[] args) throws IOException
                                                 ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

import java.io.*;
 
class Main{
   public static void main(String[] args) throws Exception{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int n = Integer.parseInt(br.readLine());
   int s = n%60;
   int h = n/3600;   
   int m = h-n/60;

   System.out.println(h + ":" + m + ":" + s);
}

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

import java.io.*;
  
class Main{
   public static void main(String[] args) throws Exception{
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int n = Integer.parseInt(br.readLine());
   int s = n%60;
   int h = n/3600;   
   int m = h-n/60;
 
   System.out.println(h + : + m + : + s);
}
}

Compiler output:
Main.java:11: error: illegal start of expression
   System.out.println(h + : + m + : + s);
                          ^
Main.java:11: error: illegal start of expression
   System.out.println(h + : + m + : + s);
                                  ^
Main.java:11: error: not a statement
   System.out.println(h + : + m + : + s);
                                ^
Main.java:11: error: not a statement
   System.out.println(h + : + m + : + s);
                                      ^
Main.java:11: error: ';' expected
   System.out.println(h + : + m + : + s);
                                       ^
5 errors
Language: Java

import java.util.Scanner;

public class Main1D {
	public static void main(String[]args){
		
		//????????£????????????
		Scanner S = new Scanner(System.in);
		
		//int h = 46979; //?????? 
		int h = S.nextInt();
		
		h = h / 3600; 
		//int m = 46979; //???
		int m = S.nextInt();
		
		m = m % 360 / 60;
		//int s = 46979; //?§?
		int s = S.nextInt();
		s = s % 60;
		System.out.println(h + ":" + m + ":" +s);
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args){

		//????????£?????????????????§????????????????????????
				//????????\???
				Scanner sc = new Scanner(System.in);

				//int???????????? ??????
			     int h = S.nextInt();
			     h = h / 3600;

			     //int???????????? ???
			     int m = S.nextInt();
			     m = m   / 3600 /60 ;
			     //int????????? ?§?
			     int s = S.nextInt();
			     s = s  % 60;
			     //????????????????§??????¨???
			     System.out.println(h + ":" + m + ":" + s);
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
			     int h = S.nextInt();
			             ^
  symbol:   variable S
  location: class Main
Main.java:15: error: cannot find symbol
			     int m = S.nextInt();
			             ^
  symbol:   variable S
  location: class Main
Main.java:18: error: cannot find symbol
			     int s = S.nextInt();
			             ^
  symbol:   variable S
  location: class Main
3 errors
Language: Java

// watch.java
import java.io.*;
public class watch
{
	public static void main(String args[])
	{
		int x;
		//System.out.print("input integer: ");
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try{
			String buf = br.readLine();
			x = Integer.parseInt(buf);
		}catch(Exception e){
			x = 0;
		}
		int h = x / 3600;
		int m = (x - (h * 3600)) / 60;
		int s = (x - (h * 3600) - (m * 60));
		System.out.println(h + ":" + m + ":" + s);
		
	}
}

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

import java.util.Scanner;

public class Time{
    public static void main(String[] args){
	Scanner  stdin = new Scanner(System.in);
	int t = stdin.nextInt();
	int h = t/3600;
	int m = (t-h*3600)/60;
	int s = (t-h*3600)%60;
	System.out.println(h+":"+m+":"+s);
    }
}

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

public class Main {
	public static void main(String[] args) {

		int S;//??????????§???????
		int h;		int m;		int s;
		int Wm;

		//S = new java.util.Scanner(System.in).nextInt();
	        
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                int S = Integer.parseInt(br.readLine());
                
	
		s = S % 60;
		Wm = S / 60;
		
		m = Wm % 60;
		h  = Wm / 60;
		System.out.print( h + ":" + m + ":" + s );
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:10: error: cannot find symbol
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:10: error: cannot find symbol
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:11: error: variable S is already defined in method main(String[])
                int S = Integer.parseInt(br.readLine());
                    ^
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = reader.readLine();

int a = Integer.parseInt(str);
int h = a/3600;
int m = (a-(3600*h) )/60;
int s = (a-(3600*h)-(m*60));

System.out.println(h+":"m+":"+s);
}

}

Compiler output:
Main.java:17: error: ')' or ',' expected
System.out.println(h+":"m+":"+s);
                        ^
Main.java:17: error: not a statement
System.out.println(h+":"m+":"+s);
                             ^
Main.java:17: error: ';' expected
System.out.println(h+":"m+":"+s);
                               ^
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
try {
^
Main.java:20: error: reached end of file while parsing
}
 ^
5 errors