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


import java.util.Scanner;

class Main{
  public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int i = Integer.parseInt(scan.next());
        
        hh = i / 60 * 60;
        mm = (i - hh * 3600) / 60;
        ss = i - hh * 3600 - mm * 60 ;
        
        System.out.println(hh + ":" + mm + ":" + ss);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
        hh = i / 60 * 60;
        ^
  symbol:   variable hh
  location: class Main
Main.java:10: error: cannot find symbol
        mm = (i - hh * 3600) / 60;
        ^
  symbol:   variable mm
  location: class Main
Main.java:10: error: cannot find symbol
        mm = (i - hh * 3600) / 60;
                  ^
  symbol:   variable hh
  location: class Main
Main.java:11: error: cannot find symbol
        ss = i - hh * 3600 - mm * 60 ;
        ^
  symbol:   variable ss
  location: class Main
Main.java:11: error: cannot find symbol
        ss = i - hh * 3600 - mm * 60 ;
                 ^
  symbol:   variable hh
  location: class Main
Main.java:11: error: cannot find symbol
        ss = i - hh * 3600 - mm * 60 ;
                             ^
  symbol:   variable mm
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(hh + ":" + mm + ":" + ss);
                           ^
  symbol:   variable hh
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(hh + ":" + mm + ":" + ss);
                                      ^
  symbol:   variable mm
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(hh + ":" + mm + ":" + ss);
                                                 ^
  symbol:   variable ss
  location: class Main
9 errors
Language: Java

import java.util.Scanner;
??
public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int i = Integer.parseInt(scan.next());
    
    int hh = i / 60 * 60;
    int mm = (i - hh * 3600) / 60;
    int ss = i - hh * 3600 - mm * 60 ;
    ??????????????????
    System.out.println(hh + ":" + mm + ":" + ss);
????}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:11: error: illegal start of expression
    ??????????????????
    ^
Main.java:11: error: illegal start of expression
    ??????????????????
     ^
Main.java:11: error: illegal start of expression
    ??????????????????
      ^
Main.java:11: error: illegal start of expression
    ??????????????????
       ^
Main.java:11: error: illegal start of expression
    ??????????????????
        ^
Main.java:11: error: illegal start of expression
    ??????????????????
         ^
Main.java:11: error: illegal start of expression
    ??????????????????
          ^
Main.java:11: error: illegal start of expression
    ??????????????????
           ^
Main.java:11: error: illegal start of expression
    ??????????????????
            ^
Main.java:11: error: illegal start of expression
    ??????????????????
             ^
Main.java:11: error: illegal start of expression
    ??????????????????
              ^
Main.java:11: error: illegal start of expression
    ??????????????????
               ^
Main.java:11: error: illegal start of expression
    ??????????????????
                ^
Main.java:11: error: illegal start of expression
    ??????????????????
                 ^
Main.java:11: error: illegal start of expression
    ??????????????????
                  ^
Main.java:11: error: illegal start of expression
    ??????????????????
                   ^
Main.java:11: error: illegal start of expression
    ??????????????????
                    ^
Main.java:11: error: illegal start of expression
    ??????????????????
                     ^
Main.java:12: error: : expected
    System.out.println(hh + ":" + mm + ":" + ss);
                                                ^
Main.java:13: error: illegal start of expression
????}
^
Main.java:13: error: illegal start of expression
????}
 ^
Main.java:13: error: illegal start of expression
????}
  ^
Main.java:13: error: illegal start of expression
????}
   ^
Main.java:13: error: illegal start of expression
????}
    ^
25 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int i = Integer.parseInt(scan.next());
    
    int hh = i / 60 * 60;
    int mm = (i - hh * 3600) / 60;
    int ss = i - hh * 3600 - mm * 60 ;

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

Compiler output:
Main.java:13: error: illegal start of expression
????}
^
Main.java:13: error: illegal start of expression
????}
 ^
Main.java:13: error: illegal start of expression
????}
  ^
Main.java:13: error: illegal start of expression
????}
   ^
Main.java:13: error: illegal start of expression
????}
    ^
5 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int i = Integer.parseInt(scan.next());
    
    int hh = i / 60 * 60;
    int mm = (i - hh * 3600) / 60;
    int ss = i - hh * 3600 - mm * 60 ;

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

Compiler output:
Main.java:12: error: not a statement
    System.out.println(hh + ":" + mm + ":" + ss) + "\n";
                                                 ^
1 error
Language: Java

import java.util.Scanner;

public class po {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int e, f, g, h;
		
		e=a/3600;
		f=a%3600;
		g=f/60;
		h=f%60;
		
		
		System.out.println(""+e+":"+g+":"+h+"");
		sc.close();

	}

}

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

import java.util.Scanner;

public class po {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int e, f, g, h;
		
		e=a/3600;
		f=a%3600;
		g=f/60;
		h=f%60;
		
		System.out.println(""+e+":"+g+":"+h+"");
		sc.close();

	}

}

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

import java.util.Scanner;

class Main{

public static String hours(int sec){
int seconds = sec % min / 60
int min = sec% 3600 / 60;
int hour = sec / 3600;
return hour + ":" + min + ":" + sec;

}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();

System.out.println(hours(p));

}
}



Compiler output:
Main.java:6: error: ';' expected
int seconds = sec % min / 60
                            ^
1 error
Language: Java

import java.util.Scanner;

class Main{

public static String hours(int sec){
int seconds = sec % min / 60;
int min = sec% 3600 / 60;
int hour = sec / 3600;
return hour + ":" + min + ":" + sec;

}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();

System.out.println(hours(p));

}
}



Compiler output:
Main.java:6: error: cannot find symbol
int seconds = sec % min / 60;
                    ^
  symbol:   variable min
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main{

public static String hours(int sec){
int min = sec% 3600 / 60;
int seconds = sec % 3600 %36 / 60
int hour = sec / 3600;
return hour + ":" + min + ":" + sec;

}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();

System.out.println(hours(p));

}
}



Compiler output:
Main.java:7: error: ';' expected
int seconds = sec % 3600 %36 / 60
                                 ^
1 error
Language: Java

class Main { public static void main(String args[]) { 
Scanner sc = new Scanner(System.in);
long n=sc.nextLong(); 
int x=0;
int y=0;
int z=0;
while(n>=3600){
n=n-3600;
x=x+1;
}
while(n>=60){
n=n-60;
y=y+1;
}
z=n;
System.out.print(x);
System.out.print(":");
System.out.print(y);
System.out.print(":");
System.out.println(z); } }


Compiler output:
Main.java:2: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:2: error: cannot find symbol
Scanner sc = new Scanner(System.in);
                 ^
  symbol:   class Scanner
  location: class Main
Main.java:15: error: incompatible types: possible lossy conversion from long to int
z=n;
  ^
3 errors
Language: Java

import java.util.Scanner;
class Main { public static void main(String args[]) { 
Scanner sc = new Scanner(System.in);
long n=sc.nextLong(); 
int x=0;
int y=0;
int z=0;
while(n>=3600){
n=n-3600;
x=x+1;
}
while(n>=60){
n=n-60;
y=y+1;
}
z=n;
System.out.print(x);
System.out.print(":");
System.out.print(y);
System.out.print(":");
System.out.println(z); } }


Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from long to int
z=n;
  ^
1 error
Language: Java

import java.util.Scanner;

public class Main1d {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner in = new Scanner(System.in);

		int time = in.nextInt();
		int hours;
		int minuts;
		int second;

		hours = time/3600;
		minuts = (time%360)/60;
		second = (time%360)%60;

		System.out.println(hours + ":" + minuts + ":" + second);






	}

}



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

public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner (System.in);
	int num1 = scanner.nextint();
	int num2 = num1/3600;
	int num3 = num1%3600/60;
	int num4 = num1%60;
	System.out.println(String.formet("%s:%s;%s , num2,num3,num4));
	}
}



Compiler output:
Main.java:8: error: unclosed string literal
	System.out.println(String.formet("%s:%s;%s , num2,num3,num4));
	                                 ^
1 error
Language: Java

import java.until.scanner;

public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner (System.in);
	int num1 = scanner.nextint();
	int num2 = num1/3600;
	int num3 = num1%3600/60;
	int num4 = num1%60;
	System.out.println(String.formet("%s:%s:%s" , num2,num3,num4));
	}
}


Compiler output:
Main.java:1: error: package java.until does not exist
import java.until.scanner;
                 ^
Main.java:5: error: cannot find symbol
	Scanner scanner = new Scanner (System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	Scanner scanner = new Scanner (System.in);
	                      ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
	System.out.println(String.formet("%s:%s:%s" , num2,num3,num4));
	                         ^
  symbol:   method formet(String,int,int,int)
  location: class String
4 errors
Language: Java

import java.util.Scanner;

public class Main4 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int input_sec = sc.nextInt();
		int hour = input_sec / 3600;
		int min = ( input_sec % 3600 ) / 60;
		int sec = ( input_sec % 3600 ) % 60;

		System.out.println( hour + ":" + min + ":" + sec );
	}

}


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

public class Main{							
	public static void main(String[] args){						
	Scanner scanner = new Scanner (System.in);						
	int num1 = scanner.nextint();						
	int num2 = num1/3600;						
	int num3 = num1%3600/60;						
	int num4 = num1%60;						
	System.out.println(String.formet("%s:%s;%s , num2,num3,num4));						
	}						
}							



Compiler output:
Main.java:8: error: unclosed string literal
	System.out.println(String.formet("%s:%s;%s , num2,num3,num4));						
	                                 ^
1 error
Language: Java

public class Main{							
	public static void main(String[] args){						
	Scanner scanner = new Scanner (System.in);						
	int num1 = scanner.nextInt();						
	int num2 = num1/3600;						
	int num3 = num1%3600/60;						
	int num4 = num1%60;						
	System.out.println(String.formet("%s:%s;%s , num2,num3,num4));						
	}						
}							



Compiler output:
Main.java:8: error: unclosed string literal
	System.out.println(String.formet("%s:%s;%s , num2,num3,num4));						
	                                 ^
1 error
Language: Java

import java.util.Scanner;
public class watch {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner x = new Scanner(System.in);
		int a = x.nextInt();
		int b= a%3600;
        int c=(a-a%3600)%60;
        int d= a-b*3600-c*60;

		System.out.println(b+":"+c+":"+d);
	}
}



Compiler output:
Main.java:2: 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  {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner x = new Scanner(System.in);
		int a = x.nextInt();
		int b= a%3600;
        int c=(a-a%3600)%60;
        int d= a-b*3600-c*60;

		System.out.println(b+":"+c+":"+d);
	}
}



Compiler output:
Main.java:2: error: <identifier> expected
public class  {
            ^
1 error
Language: Java

import java.util.Scanner;
public class main {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner x = new Scanner(System.in);
		int a = x.nextInt();
		int b= a%3600;
        int c=(a-a%3600)%60;
        int d= a-b*3600-c*60;

		System.out.println(b+":"+c+":"+d);
	}
}



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.util.Scanner;
class watch{
      public static void main(String a[ ]){
           Scanner s=new Scanner(System.in);
           System.out.print("Enter seconds");
           int sec=s.nextInt();
           int h,m,s;
           h=(int)sec/3600;
           h=sec%3600;
           m=(int)h/3600;
           sec=m%3600;
           System.out.print(h+":"+m+":"+"s");
       }
}


Compiler output:
Main.java:7: error: variable s is already defined in method main(String[])
           int h,m,s;
                   ^
1 error
Language: Java

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


Compiler output:
Main.java:7: error: variable s is already defined in method main(String[])
           int h,m,s;
                   ^
1 error
Language: Java

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


Compiler output:
Main.java:7: error: variable s is already defined in method main(String[])
           int h,m,s;
                   ^
1 error
Language: Java

# -*- coding: utf-8 -*-
"""
Watch
"""
if __name__ == '__main__':
    t = int(raw_input())
    h = t / 3600
    m = (t - 3600 * h) / 60
    s = t % 60
    print('{0}:{1}:{2}'.format(h, m, s))


Compiler output:
Main.java:1: error: illegal character: '#'
# -*- coding: utf-8 -*-
^
Main.java:1: error: class, interface, enum, or record expected
# -*- coding: utf-8 -*-
   ^
Main.java:5: error: unclosed character literal
if __name__ == '__main__':
               ^
Main.java:5: error: unclosed character literal
if __name__ == '__main__':
                        ^
Main.java:10: error: unclosed character literal
    print('{0}:{1}:{2}'.format(h, m, s))
          ^
Main.java:10: error: unclosed character literal
    print('{0}:{1}:{2}'.format(h, m, s))
                      ^
6 errors
Language: Java

if __name__ == '__main__':
    t = int(raw_input())
    h = t / 3600
    m = (t - 3600 * h) / 60
    s = t % 60
    print('{0}:{1}:{2}'.format(h, m, s))


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
if __name__ == '__main__':
^
Main.java:1: error: unclosed character literal
if __name__ == '__main__':
               ^
Main.java:1: error: unclosed character literal
if __name__ == '__main__':
                        ^
Main.java:6: error: unclosed character literal
    print('{0}:{1}:{2}'.format(h, m, s))
          ^
Main.java:6: error: unclosed character literal
    print('{0}:{1}:{2}'.format(h, m, s))
                      ^
5 errors
Language: Java

import java.util.*;

class Main
{
public static void main(String args[])
{
 Scanner sc = new Scanner(System.in);
 
 String str = "";
 
 while(sc.hasNext(){
 str = sc.next();
 
}
System.out.println(str);
}
}


Compiler output:
Main.java:11: error: ')' expected
 while(sc.hasNext(){
                   ^
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        hour = n/3600;
        min = (n%  3600)/60;
        n = n%60;

         System.out.println(hour+":"+min+":"+n);
        
            }
}



Compiler output:
Main.java:8: error: cannot find symbol
        hour = n/3600;
        ^
  symbol:   variable hour
  location: class Main
Main.java:9: error: cannot find symbol
        min = (n%  3600)/60;
        ^
  symbol:   variable min
  location: class Main
Main.java:12: error: cannot find symbol
         System.out.println(hour+":"+min+":"+n);
                            ^
  symbol:   variable hour
  location: class Main
Main.java:12: error: cannot find symbol
         System.out.println(hour+":"+min+":"+n);
                                     ^
  symbol:   variable min
  location: class Main
4 errors
Language: Java

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

        if (0 <= second && second < 86400) {
            /*
             * 34524 / 3600 = 9.59
             * (34524 - (3600 * 9)) / 60 = 35.4
             * (34524 - (3600 * 9)) - (35 * 60) = 24
             */
            int h = second / 3600;
            int m = (second - (h * 3600)) / 60;
            int s = (second - (h * 3600)) - (m * 60);

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


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.util.Scanner;

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

    int s = sc%60;
    int m = sc/60%60;
    int h = sc/60/60;

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

  }
}


Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to Scanner
    Scanner sc = new Scanner(System.in).nextInt();
                                               ^
Main.java:7: error: bad operand types for binary operator '%'
    int s = sc%60;
              ^
  first type:  Scanner
  second type: int
Main.java:8: error: bad operand types for binary operator '/'
    int m = sc/60%60;
              ^
  first type:  Scanner
  second type: int
Main.java:9: error: bad operand types for binary operator '/'
    int h = sc/60/60;
              ^
  first type:  Scanner
  second type: int
4 errors
Language: Java

public class Main {
    Main(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        try{
            int i = Integer.parseInt(br.readLine());
            System.out.printf("%d:%d:%d\n", i/3600, (i%3600)/60, i%60);
        }catch(IOException e) {

        }
    }

    public static void main(String[] args){
        new Main();
    }
}



Compiler output:
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
Main.java:8: error: cannot find symbol
        }catch(IOException e) {
               ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Hello{
 public static void main (String[] args) throws java.lang.Exception
 {
  System.out.println("Hello World!!");
  // your code goes here
 }


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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Watch {
    public static void main(String[] args) throws IOException {
        int t = 0;
        int s = 0;
        int m = 0;
        int h = 0;
 
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
         t = Integer.parseInt(br.readLine());//数値
        //String buf = br.readLine();
 
        if (t >= 0 && t < 86400)
        {
            h = t / 3600;
            m = t % 3600 / 60;
            s = t % 60;
            System.out.println(h+":"+m+":"+s);
        }
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
1
^
Main.java:27: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:28: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
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 {
        int t = 0;
        int s = 0;
        int m = 0;
        int h = 0;
 
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
         t = Integer.parseInt(br.readLine());//数値
        //String buf = br.readLine();
 
        if (t >= 0 && t < 86400)
        {
            h = t / 3600;
            m = t % 3600 / 60;
            s = t % 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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
  
public class Watch {
    public static void main(String[] args) throws IOException {
        int t = 0;
        int s = 0;
        int m = 0;
        int h = 0;
  
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
         t = Integer.parseInt(br.readLine());//数値
        //String buf = br.readLine();
  
        if (t >= 0 && t < 86400)
        {
            h = t / 3600;
            m = t % 3600 / 60;
            s = t % 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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
  
public class Watch {
    public static void main(String[] args) throws IOException {
        int t = 0;
        int s = 0;
        int m = 0;
        int h = 0;
  
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
         t = Integer.parseInt(br.readLine());//数値
        //String buf = br.readLine();
  
        if (t >= 0 && t < 86400)
        {
            h = t / 3600;
            m = (t % 3600) / 60;
            s = t % 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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
  
public class Watch {
    public static void main(String[] args) throws IOException {
        int t = 0;
        int s = 0;
        int m = 0;
        int h = 0;
  
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
         t = Integer.parseInt(br.readLine());//数値
        //String buf = br.readLine();
  
        if (t >= 0 && t < 86400)
        {
            h = t / 3600;
            m = t % 3600 / 60;
            s = t - (3600 * h + m * 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

public class Main {
 
    public static void main(String[] args) {
         
    t = int(raw_input())
    h = t / 3600
    m = (t - 3600 * h) / 60
    s = t % 60
    print('{0}:{1}:{2}'.format(h, m, s))
          
        sc.close();
 
    }
 
}


Compiler output:
Main.java:5: error: '.class' expected
    t = int(raw_input())
           ^
Main.java:5: error: ';' expected
    t = int(raw_input())
                       ^
Main.java:6: error: ';' expected
    h = t / 3600
                ^
Main.java:7: error: ';' expected
    m = (t - 3600 * h) / 60
                           ^
Main.java:8: error: ';' expected
    s = t % 60
              ^
Main.java:9: error: unclosed character literal
    print('{0}:{1}:{2}'.format(h, m, s))
          ^
Main.java:9: error: illegal start of type
    print('{0}:{1}:{2}'.format(h, m, s))
              ^
Main.java:9: error: not a statement
    print('{0}:{1}:{2}'.format(h, m, s))
                ^
Main.java:9: error: ';' expected
    print('{0}:{1}:{2}'.format(h, m, s))
                 ^
Main.java:9: error: illegal start of type
    print('{0}:{1}:{2}'.format(h, m, s))
                  ^
Main.java:9: error: not a statement
    print('{0}:{1}:{2}'.format(h, m, s))
                    ^
Main.java:9: error: ';' expected
    print('{0}:{1}:{2}'.format(h, m, s))
                     ^
Main.java:9: error: unclosed character literal
    print('{0}:{1}:{2}'.format(h, m, s))
                      ^
Main.java:9: error: illegal start of type
    print('{0}:{1}:{2}'.format(h, m, s))
                              ^
Main.java:9: error: <identifier> expected
    print('{0}:{1}:{2}'.format(h, m, s))
                                ^
Main.java:9: error: <identifier> expected
    print('{0}:{1}:{2}'.format(h, m, s))
                                   ^
Main.java:9: error: <identifier> expected
    print('{0}:{1}:{2}'.format(h, m, s))
                                      ^
Main.java:9: error: ';' expected
    print('{0}:{1}:{2}'.format(h, m, s))
                                       ^
Main.java:15: error: class, interface, enum, or record expected
}
^
19 errors
Language: Java

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


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

public class Main {
 
    public static void main(String[] args) {
 
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 
         try{
 
             int S = Integer.parseInt(br.readLine());
 
             System.out.printf("%d:%d:%d\n",S/3600,(S%3600)/60,S%60);
 
         }catch(IOException e){
             e.printStackTrace();
         }
    }
}


Compiler output:
Main.java:5: error: cannot find symbol
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                 ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                    ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:13: error: cannot find symbol
         }catch(IOException e){
                ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

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


Compiler output:
Main.java:10: error: cannot find symbol
        System.out.println(h+ ":" + m + ":" + S);
                                              ^
  symbol:   variable S
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public calss Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args){
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[] args){
		 Scanner sc = new Scanner(System.in);
	        int sec, min, hour;
	        System.out.print("秒数を入力：");
	        sec = sc.nextInt();

	        hour = sec / 3600;
	        min = (sec%3600) / 60;
	        sec = sec % 60;

	        System.out.println(hour+":"+min+":"+sec);
	      
}
}


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.Scanner;

public class main {
	public static void main(String[] args){
		 Scanner sc = new Scanner(System.in);
	        int sec, min, hour;
	        System.out.print("秒数を入力：");
	        sec = sc.nextInt();

	        hour = sec / 3600;
	        min = (sec%3600) / 60;
	        sec = sec % 60;

	        System.out.println(hour+":"+min+":"+sec);
	        sc.close();
	}
}


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.Scanner;

public class main {
	public static void main(String[] args){
		 Scanner sc = new Scanner(System.in);
	        int sec, min, hour;
	        System.out.println("秒数を入力：");
	        sec = sc.nextInt();

	        hour = sec / 3600;
	        min = (sec%3600) / 60;
	        sec = sec % 60;

	        System.out.println(hour+":"+min+":"+sec);
	        sc.close();
	}
}


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.Scanner;

public class main {
	public static void main(String[] args){
		 Scanner sc = new Scanner(System.in);
	        int sec, min, hour;
	        sec = sc.nextInt();

	        hour = sec / 3600;
	        min = (sec%3600) / 60;
	        sec = sec % 60;

	        System.out.println(hour+":"+min+":"+sec);
	        sc.close();
	}
}


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.Scanner;

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

	        h = s / 3600;
	        m = (s%3600) / 60;
	        s = s % 60;

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



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.Scanner;

public Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int time = scan.nextInt();
        int h, m, s;
        h = time/3600;
        m = time%3600/60;
        s = time%3600%60;
        System.out.printf("%d : %d : %d", h, m, s);
    }
}


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args){
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

public Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int time = scan.nextInt();
        int h, m, s;
        h = time/3600;
        m = time%3600/60;
        s = time%3600%60;
        System.out.printf("%d : %d : %d", h, m, s);
        scan.close();
    }
}


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args){
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

public class Main {

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

		String str=br.readLine();
		long S=Integer.parseInt(str);
		long h=S/3600;
		long m=S%3600/60;
		long s=S%60;

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

}


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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System .in));
		String str=br.readLine();
		long S=Integer.parseInt(str);
		long h=S/3600;
		long m=S%3600/60;
		long s=S%60;
                System.out.println(h+":"+m+":"+s);
	}

}


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

public class Main {

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


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

import java.io.*;
import java.util.*;

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

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

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



Compiler output:
Main.java:11: error: -> expected
    int s=()(S%3600)%60);
            ^
Main.java:11: error: ';' expected
    int s=()(S%3600)%60);
                       ^
2 errors
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:4: error: <identifier> expected
    public static void main(String[],args){
                                    ^
Main.java:4: error: <identifier> expected
    public static void main(String[],args){
                                         ^
2 errors
Language: Java

import java.util.Scanner;
public class Main(){
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int time[] = new int[3];
        int x = sc.nexInt();
        time[0]=x/3600;
        x = x-time[0];
        time[1]=x/60;
        time[2]=x%60;
        System.out.println(time[0]+":"+time[1]+":"+time[2]);
    }
    
}


Compiler output:
Main.java:2: error: '{' expected
public 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 time[] = new int[3];
        int x = sc.nexInt();
        time[0]=x/3600;
        x = x-time[0];
        time[1]=x/60;
        time[2]=x%60;
        System.out.println(time[0]+":"+time[1]+":"+time[2]);
    }
    
}


Compiler output:
Main.java:6: error: cannot find symbol
        int x = sc.nexInt();
                  ^
  symbol:   method nexInt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;
public class s1 {

		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int time[] = new int[3];
	        int x = sc.nextInt();


	        time[0]=x/3600;
	        x = x-time[0]*3600;
	        time[1]=x/60;
	        time[2]=x%60;
	        System.out.println(time[0]+":"+time[1]+":"+time[2]);
	        sc.close();
	}
}



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

import java.util.*;

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

Scanner sc = new Scanner(System.in);

int x=sc.nextInt();

int h,m,s;
s=x%60;
m=(x/60)%60;
h=x/3600;
System.out.println(h ":" m ":" s);
}
}





Compiler output:
Main.java:14: error: ')' or ',' expected
System.out.println(h ":" m ":" s);
                    ^
Main.java:14: error: not a statement
System.out.println(h ":" m ":" s);
                         ^
Main.java:14: error: ';' expected
System.out.println(h ":" m ":" s);
                          ^
Main.java:14: error: not a statement
System.out.println(h ":" m ":" s);
                               ^
Main.java:14: error: ';' expected
System.out.println(h ":" m ":" s);
                                ^
5 errors
Language: Java

import java.util.*;

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

Scanner sc = new Scanner(System.in);

int x=sc.nextInt();

int h,m,s;
s=x%60;
m=(x/60)%60;
h=x/3600;

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





Compiler output:
Main.java:15: error: ')' or ',' expected
System.out.println(h ":" m ":" s);
                    ^
Main.java:15: error: not a statement
System.out.println(h ":" m ":" s);
                         ^
Main.java:15: error: ';' expected
System.out.println(h ":" m ":" s);
                          ^
Main.java:15: error: not a statement
System.out.println(h ":" m ":" s);
                               ^
Main.java:15: error: ';' expected
System.out.println(h ":" m ":" s);
                                ^
5 errors
Language: Java

import.java.util.Scanner;

class Main {

public static void main(String []  args){
     

      Scanner sc = new Scanner(System.in);

      int Smax = sc.nextInt();

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

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

}
}



Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
1 error
Language: Java

import java.util.Scanner;

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

Scanner sc = new Scanner(System.in);

int x=sc.nextInt();

System.out.println((x/3600)":"((x/60)%60)":" (x%60));
}
}





Compiler output:
Main.java:10: error: ')' or ',' expected
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                           ^
Main.java:10: error: not a statement
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                 ^
Main.java:10: error: ';' expected
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                    ^
Main.java:10: error: not a statement
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                               ^
Main.java:10: error: ';' expected
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                                  ^
5 errors
Language: Java

import java.util.Scanner;

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

Scanner sc = new Scanner(System.in);

int x = sc.nextInt();

System.out.println((x/3600)":"((x/60)%60)":" (x%60));
}
}





Compiler output:
Main.java:10: error: ')' or ',' expected
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                           ^
Main.java:10: error: not a statement
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                 ^
Main.java:10: error: ';' expected
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                    ^
Main.java:10: error: not a statement
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                               ^
Main.java:10: error: ';' expected
System.out.println((x/3600)":"((x/60)%60)":" (x%60));
                                                  ^
5 errors
Language: Java

import.java.util.Scanner;

class Main {

public static void main(String []  args){
     

      Scanner sc = new Scanner(System.in);

      int Smax = sc.nextInt();



System.out.println((Smax / 3600) + ":" + ((Smax/60)%60) + ":" + (Smax % 60));

}
}



Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
1 error
Language: Java

import.java.util.Scanner;

class Main {

public static void main(String [] args){
     

      Scanner sc = new Scanner(System.in);

      int Smax = sc.nextInt();



System.out.println((Smax / 3600) + ":" + ((Smax/60)%60) + ":" + (Smax % 60));

}
}



Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
1 error
Language: Java

import.java.util.Scanner;

class Main {

public static void main(String[] args){
     

      Scanner sc = new Scanner(System.in);

      int Smax = sc.nextInt();



System.out.println((Smax / 3600) + ":" + ((Smax/60)%60) + ":" + (Smax % 60));

}
}



Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
1 error
Language: Java

import java.util.Scanner;
public class Main {

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


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

#include<iostream>
using namespace std;

int main(){

int A , h , m , s;

cin >> a;

h = a / 3600;

m = (a - 3600 * h) / 60;

s = a - ( ( 3600 * H ) + ( 60 * m ) );

cout << h << ": "<< m <<" : "<< s << endl;
 
return 0;

}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:8: error: not a statement
cin >> a;
    ^
Main.java:16: 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

#include<iostream>
using namespace std;

int main(){

int a , h , m , s;

cin >> a;

h = a / 3600;

m = (a - 3600 * h) / 60;

s = a - ( ( 3600 * H ) + ( 60 * m ) );

cout << h << ": "<< m <<" : "<< s << endl;
 
return 0;

}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:8: error: not a statement
cin >> a;
    ^
Main.java:16: 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.*;
import java.util.Scanner;

public class Main {
	public static String watch(int s) {
		String res = "" + s / 3600;
		s = s % 3600;
		res = res ":" + s / 60 + ":" + s % 60;
		return res;
	}

	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        System.out.println(watch(s));
	}
}


Compiler output:
Main.java:8: error: ';' expected
		res = res ":" + s / 60 + ":" + s % 60;
		         ^
Main.java:8: error: not a statement
		res = res ":" + s / 60 + ":" + s % 60;
		                             ^
2 errors