criyle/codenet-compile-errors huggingface dataset:
Language: C++

int main(n,i){int f[9] = {};double a;for(scanf("%d",&n),i=n;scanf("%lf",a),i;--i)a<165?f[1]++:a<170?f[2]++:a<175?f[3]++:a<180?f[4]++:a<185?f[5]++:f[6]++;for(i=1;i<7;puts(""),++i)for(printf("%d:",i),n=0;n<f[i];++n)printf("*");}

Compiler output:
a.cc:1:5: error: cannot declare '::main' to be a global variable
    1 | int main(n,i){int f[9] = {};double a;for(scanf("%d",&n),i=n;scanf("%lf",a),i;--i)a<165?f[1]++:a<170?f[2]++:a<175?f[3]++:a<180?f[4]++:a<185?f[5]++:f[6]++;for(i=1;i<7;puts(""),++i)for(printf("%d:",i),n=0;n<f[i];++n)printf("*");}
      |     ^~~~
a.cc:1:10: error: 'n' was not declared in this scope
    1 | int main(n,i){int f[9] = {};double a;for(scanf("%d",&n),i=n;scanf("%lf",a),i;--i)a<165?f[1]++:a<170?f[2]++:a<175?f[3]++:a<180?f[4]++:a<185?f[5]++:f[6]++;for(i=1;i<7;puts(""),++i)for(printf("%d:",i),n=0;n<f[i];++n)printf("*");}
      |          ^
a.cc:1:12: error: 'i' was not declared in this scope
    1 | int main(n,i){int f[9] = {};double a;for(scanf("%d",&n),i=n;scanf("%lf",a),i;--i)a<165?f[1]++:a<170?f[2]++:a<175?f[3]++:a<180?f[4]++:a<185?f[5]++:f[6]++;for(i=1;i<7;puts(""),++i)for(printf("%d:",i),n=0;n<f[i];++n)printf("*");}
      |            ^
a.cc:1:13: error: expression list treated as compound expression in initializer [-fpermissive]
    1 | int main(n,i){int f[9] = {};double a;for(scanf("%d",&n),i=n;scanf("%lf",a),i;--i)a<165?f[1]++:a<170?f[2]++:a<175?f[3]++:a<180?f[4]++:a<185?f[5]++:f[6]++;for(i=1;i<7;puts(""),++i)for(printf("%d:",i),n=0;n<f[i];++n)printf("*");}
      |             ^
Language: C++

import java.util.Arrays;
import java.util.Scanner;

public class Main
{
	public static void main(String arg[])
	{
		try{
			Scanner sc = new Scanner(System.in);
			int n=sc.nextInt();
			double a[] = new double[n];
			int b[] = new int[7];
			Arrays.fill(b, 0);

			for(int i=0; i<n; i++)
				a[i]=sc.nextDouble();
			for(int i=0; i<n; i++)
			{
				if(a[i]<165.0)
					b[1]++;
				if(165.0<=a[i]&& a[i]<170.0)
					b[2]++;
				if(170.0<=a[i]&&a[i]<175.0)
					b[3]++;
				if(175.0<=a[i]&&a[i]<180.0)
					b[4]++;
				if(180.0<=a[i]&&a[i]<185.0)
					b[5]++;
				if(a[i]>=185.0)
					b[6]++;
			}
			for(int i=1; i<=6; i++)
			{
				System.out.print(i+":");
				for(int j=0; j<b[i]; j++)
					System.out.print("*");
				System.out.println();
			}
		}catch(Exception e){}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Arrays;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main
      | ^~~~~~
Language: C++

#include<iostream>
using namesace std;
int main(){
	int n;
	int a[1024];
	int r[6]={0};
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>a[i];
		if(a[i]<165)r[0]++;
		else if(a[i]<170)r[1]++;
		else if(a[i]<175)r[2]++;
		else if(a[i]<180)r[3]++;
		else if(a[i]<185)r[4]++;
		else r[5]++;
		}
	
	for(int i=0;i<6;i++){
		cout<<i+1<<':';
		for(int j=0;j<r[i];j++)cout<<'*';
		cout<<endl;
		}
		}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:19:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |                 cout<<i+1<<':';
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |                 cout<<endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;
public class AOJ0137 {
	public static void main(String[] args){
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		for(int i=0;i<n;i++){
			int x=s.nextInt();
			System.out.println("Case"+(i+1)+":");
			for(int j=0;j<10;j++){
				x*=x;
				String str=String.format("%08d",x);
				x=Integer.parseInt(str.substring(2, 6));
				System.out.println(x);
			}
		}
	}
	

}

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

import java.util.Scanner;
public class WUPCA {
	public static void main(String[] args){
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		for(int i=0;i<n;i++){
			int x=s.nextInt();
			System.out.println("Case"+(i+1)+":");
			for(int j=0;j<10;j++){
				x*=x;
				String str=String.format("%08d",x);
				x=Integer.parseInt(str.substring(2, 6));
				System.out.println(x);
			}
		}
	}
	

}

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

#include <stdio.h>

int main(){
	int count=0,counter;
	int a,b,c;
	int i,j,k;
	int x,y[8];
	int c,cter;
	
	scanf("%d",&counter);
	while(counter>count){
		scanf("%d",&x);
		cter=10;
		c=0;
		printf("Case %d:\n",count+1);
		while(c<cter){
			
			x*=x;
			x/=100;
			x%=10000;
			c++;
			printf("%d\n",x);
		}
		count++;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: redeclaration of 'c' with no linkage
    8 |         int c,cter;
      |             ^
main.c:5:17: note: previous declaration of 'c' with type 'int'
    5 |         int a,b,c;
      |                 ^
Language: C

#include<cstdio>

int main()
{
	int i,n,a,c[10];
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&c[i]);
	for(i=0;i<n;i++)
	{
		printf("Case %d:\n",i+1);
		for(a=0;a<10;a++)
		{
			printf("%d\n",c[i]=(c[i]*c[i])/100%10000);
		}
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C++

main(i,j,n,s){
	for(scanf("%d",&n);i<=n;i++){
		scanf("%d",&s);
		printf("Case %d:\n",i);
		for(j=0;j<10;j++)	printf("%d\n",s=(s*s)/100%10000);
	}
	exit(0);
}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(i,j,n,s){
      |     ^
Language: C++

#include "stdio.h"

int main(){
	int i,j,x;
	int n,N;
	scanf("%d\n",&N);
	char str[9];
	for(x=1;x<=N;x++){
		scanf("%d\n",&n);
		printf("Case %d:\n",x);
		for(i=0;i<10;i++){
			sprintf(str,"%08d",n*n);
			str[6] = 0;
			n = atoi(str+2);
			printf("%d\n",n);
		}
	}
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: 'atoi' was not declared in this scope
   14 |                         n = atoi(str+2);
      |                             ^~~~
Language: C++

include <cstdio>

int main()
{
  int n;
  scanf("%d", &n);
  for (int dataset = 1; dataset <= n; ++dataset) {
    int s;
    scanf("%d", &s);

    printf("Case %d:\n", dataset);
    for (int i = 0; i < 10; ++i) {
      s = s * s;
      s /= 100;
      s %= 10000;
      printf("%d\n", s);
    }
  }
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <cstdio>
      | ^~~~~~~
Language: C++

#include <iostream>
#include <cstdlib>

using namespace std;

int main(void){
	int n,s;
	scanf("%d",&n);
	for(int a=1;a<=n;a++){
		scanf("%d",&s);
		printf("Case %d:\n",a);
		for(int i=0;i<10;i++){
			char ss[8],sss[4];
			int rank=0;
			s=s*s;
			if(s>=100)rank=1;
			if(s>=1000)rank=2;
			if(s>=10000)rank=3;
			if(s>=100000)rank=4;
			if(s>=1000000)rank=5;
			if(s>=10000000)rank=6;
			itoa(s,ss,10);
			int sk=0;
			for(int j=rank-4;j<rank;j++){
				if(j>=0){
					sss[sk]=ss[j];
					sk++;
				}
			}
			s=atoi(sss);
			printf("%d\n",s);
		}
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: 'itoa' was not declared in this scope
   22 |                         itoa(s,ss,10);
      |                         ^~~~
Language: C++

#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdio>


using namespace std;

int main(void){
	int n,s;
	scanf("%d",&n);
	for(int a=1;a<=n;a++){
		scanf("%d",&s);
		printf("Case %d:\n",a);
		for(int i=0;i<10;i++){
			char ss[8],sss[4];
			int rank=0;
			s=s*s;
			if(s>=100)rank=1;
			if(s>=1000)rank=2;
			if(s>=10000)rank=3;
			if(s>=100000)rank=4;
			if(s>=1000000)rank=5;
			if(s>=10000000)rank=6;
			itoa(s,ss,10);
			int sk=0;
			for(int j=rank-4;j<rank;j++){
				if(j>=0){
					sss[sk]=ss[j];
					sk++;
				}
			}
			s=atoi(sss);
			printf("%d\n",s);
		}
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:25: error: 'itoa' was not declared in this scope
   25 |                         itoa(s,ss,10);
      |                         ^~~~
Language: C++

#include<vector>
#include<map>
#include<cstring>
using namespace std;

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(n) rep(i,n)
#define all(n) n.begin(),n.end()

int main()
{
    int n; cin >> n;

    rep(k,n)
    {
        int r;
        cout << "Case " << k+1 << ":" << endl;
        cin >> r;

        REP(10)
        {
            r = ((r * r) %(1000*1000))/100;
            cout << r << endl;
        }

    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'cin' was not declared in this scope
   12 |     int n; cin >> n;
      |            ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<cstring>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "Case " << k+1 << ":" << endl;
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:42: error: 'endl' was not declared in this scope
   17 |         cout << "Case " << k+1 << ":" << endl;
      |                                          ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include<cstring>
  +++ |+#include <ostream>
    4 | using namespace std;
Language: C++

import java.util.Scanner;

public class Main
{
	public static void main(String arg[])
	{
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int ca=1;
		while(n-->0)
		{
			System.out.println("Case "+ca+":");
			int x = sc.nextInt();
			for(int i=0; i<10; i++)
			{
				x*=x;
				String str = String.valueOf(x);
				// str = x+"";
				while(str.length()<8)
				{
					str = "0"+str;
				}
				x = Integer.valueOf(str.substring(2,6));
				System.out.println(x);
			}
			ca++;
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main
      | ^~~~~~
Language: C++

i,t;main(k){for(;t=~scanf("%d",&k);)if(i--)for(printf("Case %d:\n",~i),t=9;printf("%d\n",k=k*k/100%10000),t--;);}

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i,t;main(k){for(;t=~scanf("%d",&k);)if(i--)for(printf("Case %d:\n",~i),t=9;printf("%d\n",k=k*k/100%10000),t--;);}
      | ^
a.cc:1:9: error: expected constructor, destructor, or type conversion before '(' token
    1 | i,t;main(k){for(;t=~scanf("%d",&k);)if(i--)for(printf("Case %d:\n",~i),t=9;printf("%d\n",k=k*k/100%10000),t--;);}
      |         ^
Language: Java

import java.util.*;
public class Main {
	int i,runner;
	String time;
	Runner timeArray[] = new Runner[24];
	int flag[] = new int[timeArray.length];
	Runner subArray[] = new Runner[timeArray.length];
	
	void doIt(){
		Scanner sc = new Scanner(System.in);
		for(i = 0; i < timeArray.length; i ++ ){
			runner = sc.nextInt();
			time = sc.next();
			timeArray[i] = new Runner(runner,time);
		}
		for(i = 0; i < 3; i ++ ){
			Arrays.sort(timeArray,i * 8,i * 8 + 8);
			System.out.println(timeArray[i * 8].runner+" "+timeArray[i * 8].time);
			System.out.println(timeArray[i * 8 + 1].runner+" "+timeArray[i * 8 + 1].time);
			flag[i * 8] = 1;
			flag[i * 8 + 1] = 1;
		}
		subArray = timeArray.clone();
		for(i = 0; i < subArray.length; i ++ ){
			if(flag[i] == 1){
				subArray[i].time = String.valueOf(Integer.MAX_VALUE);
			}
		}
		Arrays.sort(subArray);
		System.out.println(subArray[0].runner+" "+subArray[0].time);
		System.out.println(subArray[1].runner+" "+subArray[1].time);
	}
	
	class Runner implements Comparable<Runner>{
		int runner;
		String time;
		Runner(int runner,String time){
			this.runner = runner;
			this.time = time;
		}
		@Override
		public int compareTo(Runner r){
			return time.compareTo(r.time);
		}
	}
	public static void main(String[] args) {
		new Main().doIt();
	}

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

import java.lang.reflect.Array;
import java.util.*;

public class Main {
    race[] raceArray = new race[8];
    race[] raceArrays = new race[6];
    
	void doIt(){
		String a, b;
		int p = 0;
		Scanner sc = new Scanner(System.in);
		for(int m = 0; m < 3; m++){
			for(int i = 0; i < 8; i++){
				a = sc.next();
				b = sc.next();
				raceArray[i] = new race(a,b);
			}
			Arrays.sort(raceArray);
			for(int k = 0; k < 2; k++){
				System.out.println(raceArray[k].number + " " + raceArray[k].time);
			}
			for(int l = 2; l < 4; l++){
				raceArrays[p] = raceArray[l];
				p = p + 1;
			}
		}
		Arrays.sort(raceArrays);
		for(int i = 0; i < 2; i++){
			System.out.println(raceArrays[i].number + " " + raceArrays[i].time);
		}
	}
	

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new AOJ_0138().doIt();
	}
	class race implements Comparable<race>{
		String number;
		String time;
		race(String racenum, String racetime){
			this.number = racenum;
			this.time = racetime;
		}
		@Override
		public int compareTo(race p){
			return time.compareTo(p.time);
		}

	}

}

Compiler output:
Main.java:36: error: cannot find symbol
		new AOJ_0138().doIt();
		    ^
  symbol:   class AOJ_0138
  location: class Main
1 error
Language: Java

import java.lang.reflect.Array;
import java.util.*;

import SDkadai.SortExample.Person;

public class AOJ_0138 {
    race[] raceArray = new race[8];
    race[] raceArrays = new race[6];
    
	void doIt(){
		String a, b;
		int p = 0;
		Scanner sc = new Scanner(System.in);
		for(int m = 0; m < 3; m++){
			for(int i = 0; i < 8; i++){
				a = sc.next();
				b = sc.next();
				raceArray[i] = new race(a,b);
			}
			Arrays.sort(raceArray);
			for(int k = 0; k < 2; k++){
				System.out.println(raceArray[k].number + " " + raceArray[k].time);
			}
			for(int l = 2; l < 4; l++){
				raceArrays[p] = raceArray[l];
				p = p + 1;
			}
		}
		Arrays.sort(raceArrays);
		for(int i = 0; i < 2; i++){
			System.out.println(raceArrays[i].number + " " + raceArrays[i].time);
		}
	}
	

	public static void Main(String[] args) {
		// TODO Auto-generated method stub
		new AOJ_0138().doIt();
	}
	class race implements Comparable<race>{
		String number;
		String time;
		race(String racenum, String racetime){
			this.number = racenum;
			this.time = racetime;
		}
		@Override
		public int compareTo(race p){
			return time.compareTo(p.time);
		}

	}

}

Compiler output:
Main.java:6: error: class AOJ_0138 is public, should be declared in a file named AOJ_0138.java
public class AOJ_0138 {
       ^
Main.java:4: error: package SDkadai.SortExample does not exist
import SDkadai.SortExample.Person;
                          ^
2 errors
Language: Java

import java.lang.reflect.Array;
import java.util.*;

public class AOJ_0138 {
    race[] raceArray = new race[8];
    race[] raceArrays = new race[6];
    
	void doIt(){
		String a, b;
		int p = 0;
		Scanner sc = new Scanner(System.in);
		for(int m = 0; m < 3; m++){
			for(int i = 0; i < 8; i++){
				a = sc.next();
				b = sc.next();
				raceArray[i] = new race(a,b);
			}
			Arrays.sort(raceArray);
			for(int k = 0; k < 2; k++){
				System.out.println(raceArray[k].number + " " + raceArray[k].time);
			}
			for(int l = 2; l < 4; l++){
				raceArrays[p] = raceArray[l];
				p = p + 1;
			}
		}
		Arrays.sort(raceArrays);
		for(int i = 0; i < 2; i++){
			System.out.println(raceArrays[i].number + " " + raceArrays[i].time);
		}
	}
	

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new AOJ_0138().doIt();
	}
	class race implements Comparable<race>{
		String number;
		String time;
		race(String racenum, String racetime){
			this.number = racenum;
			this.time = racetime;
		}
		@Override
		public int compareTo(race p){
			return time.compareTo(p.time);
		}

	}

}

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

import java.util.Arrays;
import java.util.Scanner;
 class Player implements Comparable<Player>{
	int num;
	double time;
	public Player(int num,double time){
		this.num=num;
		this.time=time;
	}
	@Override
	public String toString(){
		return num+" "+time;
	}
	@Override
	public int compareTo(Player p){
		return new Double(time).compareTo(p.time);
	}	
}

public class Main {
	static void doit(){
		Scanner scan = new Scanner(System.in);
		Player player[]=new Player[24];
		Player[] f_player=new Player[8];
		Player[] memo=new Player[6];
		for(int i=0;i<24;i++){
			player[i]=new Player(scan.nextInt(),scan.nextDouble());
		}
		//System.out.println(Arrays.toString(player));
		Arrays.sort(player,0,7);
		Arrays.sort(player,8,15);
		Arrays.sort(player,16,23);
		int k=0;
		for(int i=0;i<24;i+=8){
			f_player[k]=player[i];
			f_player[k+1]=player[i+1];
			k+=2;
		}
		int cnt=0;
		for(int i=2;i<=18;i+=8){
			memo[cnt]=player[i];
			memo[cnt+1]=player[i+1];
			cnt+=2;
		}
		Arrays.sort(memo);
		f_player[6]=memo[0];
		f_player[7]=memo[1];
		//System.out.println(Arrays.toString(memo));
		//System.out.println(Arrays.toString(f_player));
		for(int i=0;i<8;i++){
			System.out.printf("%s\n", f_player[i].toString());
		}
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		doit();
	}

}

Compiler output:
Main.java:1: error: illegal character: '\u0008'
import java.util.Arrays;
^
Main.java:1: error: class, interface, enum, or record expected
import java.util.Arrays;
        ^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
3 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;
 class Player implements Comparable<Player>{
	int num;
	double time;
	public Player(int num,double time){
		this.num=num;
		this.time=time;
	}
	@Override
	public String toString(){
		return num+" "+time;
	}
	@Override
	public int compareTo(Player p){
		return new Double(time).compareTo(p.time);
	}	
}

public class Main{
	static void doit(){
		Scanner scan = new Scanner(System.in);
		Player player[]=new Player[24];
		Player[] f_player=new Player[8];
		Player[] memo=new Player[6];
		for(int i=0;i<24;i++){
			player[i]=new Player(scan.nextInt(),scan.nextDouble());
		}
		Arrays.sort(player,0,7);
		Arrays.sort(player,8,15);
		Arrays.sort(player,16,23);
		int k=0;
		for(int i=0;i<24;i+=8){
			f_player[k]=player[i];
			f_player[k+1]=player[i+1];
			k+=2;
		}
		int cnt=0;
		for(int i=2;i<=18;i+=8){
			memo[cnt]=player[i];
			memo[cnt+1]=player[i+1];
			cnt+=2;
		}
		Arrays.sort(memo);
		f_player[6]=memo[0];
		f_player[7]=memo[1];
		for(int i=0;i<8;i++){
			System.out.printf("%s\n", f_player[i].toString());
		}
	}
	public static void main(String[] args) {
		doit();
	}

}

Compiler output:
Main.java:1: error: illegal character: '\u0008'
import java.util.Arrays;
^
Main.java:1: error: class, interface, enum, or record expected
import java.util.Arrays;
        ^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
3 errors
Language: Java

import java.util.*;
public class Main {
	void doIt(){
		Scanner sc = new Scanner(System.in);
		Person pa[][] = new Person[3][8];
		Person pa1[] = new Person[24];
		for(int i = 0;i < 3;i++){
			for(int k = 0;k < 8;k++){
				pa[i][k] = new Person(sc.nextInt(), sc.nextDouble());
				pa1[i * 8 + k] = pa[i][k];
			}
			Arrays.sort(pa[i]);
			System.out.println(pa[i][0].number + " " + pa[i][0].time);
			System.out.println(pa[i][1].number + " " + pa[i][1].time);
		}
		Arrays.sort(pa1);
		System.out.println(pa1[6].number + " " + pa1[6].time);
		System.out.println(pa1[7].number + " " + pa1[7].time);
	}
	public static void main(String args[]){
		new Main().doIt();
	}
	class Person implements Comparable<Person>{
		int number;
		double time;
		Person(int number, double time){
			this.number = number;
			this.time = time;
		}
		@Override
		public String toString(){
			return number + " " + time;
		}
		@Override
		public int compareTo(Person p){
			return time.compareTo(p.time);
		}
	}
}

Compiler output:
Main.java:36: error: double cannot be dereferenced
			return time.compareTo(p.time);
			           ^
1 error
Language: Java

import java.util.Arrays;
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] Upper = new int[3];
		int[][] t= new int[3][8];
		Person[] person = new Person[24];
		
		for(int i=0;i<3;i++){
			for(int k=0;k<8;k++){
				person[i*8+k] = new person(i,sc.nextInt(),sc.next());
				t[i][k] = person[i*8+k];
			}
		}	
        Arrays.sort(person);
        for(int i = 0;i < 24;i++){
            t[person[i].team][Upper[person[i].team]] = i;
            Upper[person[i].team]++;
        }
        for(int i = 0;i < 3;i++){
            for(int j = 0;j < 2;j++){
                System.out.println(person[t[i][j]].name+" "+person[t[i][j]].time);
                person[t[i][j]].time = "1000000";
            }
        }
        Arrays.sort(person);
        for(int j = 0;j < 2;j++){
            System.out.println(person[j].name+" "+person[j].time);
        }
         
    }
}

	
	
	
	class Person implements Comparable<Person>{
		int team;
		int name;
		String time;
		Person(int team,int name, String time) {
		this.team = team;
		this.name = name;
		this.time = time;
		}
		@Override
		public String toString() {
		return "[" + name + "," + time + "]";
		}
		@Override
		public int compareTo(Person p) {
		return time.compareTo(p.time);
		}
		}

Compiler output:
Main.java:12: error: cannot find symbol
				person[i*8+k] = new person(i,sc.nextInt(),sc.next());
				                    ^
  symbol:   class person
  location: class Main
Main.java:13: error: incompatible types: Person cannot be converted to int
				t[i][k] = person[i*8+k];
				                ^
2 errors
Language: Java


import java.util.*;
class sample {
	public class Main{
	    public static void main(String[] args){
	        Scanner sc = new Scanner(System.in);
	        Player[] person = new Player[24];
	        int[][] rank = new int[3][8];
	        int[] cnt = new int[3]; 
	        for(int i = 0;i < 3;i++){
	            for(int j = 0;j < 8;j++){
	                person[i*8+j] = new Player(i,sc.nextInt(),sc.next());
	            }
	        }
	        Arrays.sort(person);
	        for(int i = 0;i < 24;i++){
	            rank[person[i].party][cnt[person[i].party]] = i;
	            cnt[person[i].party]++;
	        }
	        for(int i = 0;i < 3;i++){
	            for(int j = 0;j < 2;j++){
	                System.out.println(person[rank[i][j]].num+" "+person[rank[i][j]].time);
	                person[rank[i][j]].time = "999";
	            }
	        }
	        Arrays.sort(person);
	        for(int j = 0;j < 2;j++){
	            System.out.println(person[j].num+" "+person[j].time);
	        }
	         
	    }
	}
	
	
	class Player implements Comparable<Player>{
	    int party;
	    int num;
	    String time;
	    Player(int p,int n,String t){
	        this.party = p;
	        this.num = n;
	        this.time = t;
	    }
	    @Override
	    public int compareTo(Player o) {
	        // TODO Auto-generated method stub
	        return this.time.compareTo(o.time);
	    }   
	}
}

Compiler output:
Main.java:12: error: non-static variable this cannot be referenced from a static context
	                person[i*8+j] = new Player(i,sc.nextInt(),sc.next());
	                                ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;
 
public class Main{    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Player[] winner = new Player[6];
        Player[][] r = new Player[3][8];
        for(int i=0;i<3;i++){
            for(int j=0;j<8;j++){r[i][j]=new Player(sc.nextInt(),sc.nextDouble());}
        }
        for(int i=0;i<3;i++){
        Arrays.sort(r[i]);
        }
        int x = 0;
        for(int i=0;i<3;i++){
            System.out.printf("%d %.2f\n", r[i][0].id, r[i][0].time);
            System.out.printf("%d %.2f\n", r[i][1].id, r[i][1].time);
            winner[x++] = r[i][2];
            winner[x++] = r[i][3];
        }
        Arrays.sort(winner);
        System.out.printf("%d %.2f\n", winner[0].id, winner[0].time);
        System.out.printf("%d %.2f\n", winner[1].id, winner[1].time);
    }
    static class Player implements Comparable<Player>{
        int id;
        double time;
        public Player(int id, double time) {
            this.id = id;
            this.time = time;
        }
        public int compareTo(Player p) {
            return time-p.time<0?-1:p.time-time<0?1:0;
        }
    }
 

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

import java.util.Arrays;
import java.util.Scanner;
public class main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		player player1[] = new player[7];
		player player2[] = new player[7];
		player player3[] = new player[7];
        for(int i=0; i<7; i++)player1[i] = new player(sc.nextInt() , sc.nextDouble());
        for(int i=0; i<7; i++)player2[i] = new player(sc.nextInt() , sc.nextDouble());
        for(int i=0; i<7; i++)player3[i] = new player(sc.nextInt() , sc.nextDouble());
        
        Arrays.sort(player1);
        System.out.println(player1[0] + "\n" + player1[1]);
        player1[0].record = 50;
        player1[1].record = 50;
         
        Arrays.sort(player2);
        System.out.println(player2[0] + "\n" + player2[1]);
        player2[0].record = 50;
        player2[1].record = 50;
         
        Arrays.sort(player3);
        System.out.println(player3[0] + "\n" + player3[1]);
        player3[0].record = 50;
        player3[1].record = 50;
        
        Arrays.sort(player1);
        Arrays.sort(player2);
        Arrays.sort(player3);
        player player4[]= new player[6];
        player4[0] = new player(player1[0].playerNumber,player1[0].record);
        player4[1] = new player(player1[1].playerNumber,player1[1].record);
        player4[2] = new player(player2[0].playerNumber,player2[0].record);
        player4[3] = new player(player2[1].playerNumber,player2[1].record);
        player4[4] = new player(player3[0].playerNumber,player3[0].record);
        player4[5] = new player(player3[1].playerNumber,player3[1].record);
        Arrays.sort(player4);
        System.out.println(player4[0] + "\n" + player4[1]);
    }
}
	class player implements Comparable<player>{
		int playerNumber;
	    double record;
	    player(int playerNumber, double record){
	        this.playerNumber = playerNumber;
	        this.record = record;
	    }
	    @Override
	    public String toString(){
	        return  playerNumber + " " + record;
	    }
	    @Override
	    public int compareTo(player o) {
	    	return new Double(record).compareTo(o.record);
	    }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:55: warning: [removal] Double(double) in Double has been deprecated and marked for removal
	    	return new Double(record).compareTo(o.record);
	    	       ^
1 error
1 warning
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class main {
	public void doIt(){
		Scanner sc = new Scanner(System.in);
		Person [][] personArray = new Person[3][8];
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 8; j++){
				int number = sc.nextInt();
				String time = sc.next();
				personArray[i][j] = new Person(number,time);
			}
			Arrays.sort(personArray[i]);
		}
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 2; j++){
				System.out.println(personArray[i][j].number + " " + personArray[i][j].time);
			}
		}
		Person [] nextwinner = new Person[18];
		int count = 0;
		for(int i = 0; i < 3; i++){
			for(int j = 2; j < 8; j++){
				nextwinner[count++] = personArray[i][j];
			}
		}
		Arrays.sort(nextwinner);
		for(int i = 0; i < 2; i++){
			System.out.println(nextwinner[i].number + " " + nextwinner[i].time);
		}
	}
	public static void main(String[] args) {
		new main().doIt();
	}
	class Person implements Comparable<Person> { 
		int number;
		String time;
		Person(int number, String time){
			this.number = number;
			this.time = time;
		}
		public String tostring(){
			return "[" + number + "," + time + "]";
		}
		public int compareTo(Person p){
			return time.compareTo(p.time);
		}
	}
}

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

import java.util.Arrays;
import java.util.Scanner;

public class main {
	public void doIt(){
		Scanner sc = new Scanner(System.in);
		Person [][] personArray = new Person[3][8];
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 8; j++){
				int number = sc.nextInt();
				String time = sc.next();
				personArray[i][j] = new Person(number,time);
			}
			Arrays.sort(personArray[i]);
		}
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 2; j++){
				System.out.println(personArray[i][j].number + " " + personArray[i][j].time);
			}
		}
		Person [] nextwinner = new Person[18];
		int count = 0;
		for(int i = 0; i < 3; i++){
			for(int j = 2; j < 8; j++){
				nextwinner[count++] = personArray[i][j];
			}
		}
		Arrays.sort(nextwinner);
		for(int i = 0; i < 2; i++){
			System.out.println(nextwinner[i].number + " " + nextwinner[i].time);
		}
	}
	public static void main(String[] args) {
		new main().doIt();
	}
	class Person implements Comparable<Person> { 
		int number;
		String time;
		Person(int number, String time){
			this.number = number;
			this.time = time;
		}
		public int compareTo(Person p){
			return time.compareTo(p.time);
		}
	}
}

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

import java.util.Arrays;
import java.util.Scanner;

public class main {
	public void doIt(){
		Scanner sc = new Scanner(System.in);
		Person [][] personArray = new Person[3][8];
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 8; j++){
				int number = sc.nextInt();
				String time = sc.next();
				personArray[i][j] = new Person(number,time);
			}
			Arrays.sort(personArray[0]);
			Arrays.sort(personArray[1]);
			Arrays.sort(personArray[2]);
			for(int j = 0; j < 2; j++){
				System.out.println(personArray[i][j].number + " " + personArray[i][j].time);
			}
		}
		Person [] nextwinner = new Person[18];
		for(int i = 0; i < 3; i++){
			for(int j = 2; j < 8; j++){
				for(int k = 0; k < 18;k++){
					nextwinner[k] = new Person(personArray[i][j].number,personArray[i][j].time);
				}
			}
		}
		Arrays.sort(nextwinner);
		for(int i = 0; i < 2; i++){
			System.out.println(nextwinner[i].number + " " + nextwinner[i].time);
		}
	}
	public static void main(String[] args) {
		new main().doIt();
	}
	class Person implements Comparable<Person> { 
		int number;
		String time;
		Person(int number, String time){
			this.number = number;
			this.time = time;
		}
		/*public String tostring(){
			return "[" + number + "," + time + "]";
		}*/
		public int compareTo(Person p){
			return time.compareTo(p.time);
		}
	}
}

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

public class Main {
	void doIt(){
		Runner[] runner = new Runner[8];//????????\????????????
		Runner[] loser = new Runner[18];//?????????3?????\????????\????????????
		Scanner sc = new Scanner(System.in);
		int c = 0;//loser????¨???¶??¨
		int num;
		String time;
		for(int pare = 0; pare < 3; pare++){
			for(int run = 0; run < runner.length; run++){
				num = sc.nextInt();
				time = sc.next();
				runner[run] = new Runner(num,time);
			}
			Arrays.sort(runner);
			System.out.println(runner[0].num + " " + runner[0].time);
			System.out.println(runner[1].num + " " + runner[1].time);
			for(int lose = 0; lose < loser.length/3; lose++){
				loser[c] = runner[lose+2];
				c++;
			}
		}
		Arrays.sort(loser);
		System.out.println(loser[0].num + " " + loser[0].time);
		System.out.println(loser[1].num + " " + loser[1].time);
	}
	public static void main(String[] args){
		new Main().doIt();
	}
	class Runner implements Comparable<Runner>{
		int num;
		String time;
		Runner(int num, String time) {
			this.num = num;
			this.time = time;
		}
		@Override
		public int compareTo(Runner r){
			return time.compareTo(r.time);
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:15: error: cannot find symbol
			Arrays.sort(runner);
			^
  symbol:   variable Arrays
  location: class Main
Main.java:23: error: cannot find symbol
		Arrays.sort(loser);
		^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: Java

public class Main {
	void doIt(){
		Runner[] runner = new Runner[8];//????????\????????????
		Runner[] winner = new Runner[6];//????????????1?????¨???????????\??????
		Runner[] loser = new Runner[18];//?????????3?????\????????\????????????
		Scanner sc = new Scanner(System.in);
		int l = 0, w = 0;//loser,winner????¨???¶??¨
		int num;
		String time;
		for(int pare = 0; pare < 3; pare++){
			for(int run = 0; run < runner.length; run++){
				num = sc.nextInt();
				time = sc.next();
				runner[run] = new Runner(num,time);
			}
			Arrays.sort(runner);
			for(int win = 0; win < winner.length/3; win++){
				winner[w] = runner[win];
				w++;
			}
			for(int lose = 0; lose < loser.length/3; lose++){
				loser[l] = runner[lose+2];
				l++;
			}
		}
		Arrays.sort(loser);
		for(int i = 0; i < winner.length; i++){
			System.out.println(winner[i].num + " " + winner[i].time);
		}
		System.out.println(loser[0].num + " " + loser[0].time);
		System.out.println(loser[1].num + " " + loser[1].time);
	}
	public static void main(String[] args){
		new Main().doIt();
	}
	class Runner implements Comparable<Runner>{
		int num;
		String time;
		Runner(int num, String time) {
			this.num = num;
			this.time = time;
		}
		@Override
		public int compareTo(Runner r){
			return time.compareTo(r.time);
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:16: error: cannot find symbol
			Arrays.sort(runner);
			^
  symbol:   variable Arrays
  location: class Main
Main.java:26: error: cannot find symbol
		Arrays.sort(loser);
		^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: Java

public class Main {
	Runner[] runner = new Runner[8];//????????\????????????
	Runner[] winner = new Runner[6];//????????????1?????¨???????????\??????
	Runner[] loser = new Runner[18];//?????????3?????\????????\????????????
	void doIt(){
		Scanner sc = new Scanner(System.in);
		int l = 0, w = 0;//loser,winner????¨???¶??¨
		int num;
		String time;
		for(int pare = 0; pare < 3; pare++){
			for(int run = 0; run < runner.length; run++){
				num = sc.nextInt();
				time = sc.next();
				runner[run] = new Runner(num,time);
			}
			Arrays.sort(runner);
			for(int win = 0; win < winner.length/3; win++){
				winner[w] = runner[win];
				w++;
			}
			for(int lose = 0; lose < loser.length/3; lose++){
				loser[l] = runner[lose+2];
				l++;
			}
		}
		Arrays.sort(loser);
		for(int i = 0; i < winner.length; i++){
			System.out.println(winner[i].num + " " + winner[i].time);
		}
		System.out.println(loser[0].num + " " + loser[0].time);
		System.out.println(loser[1].num + " " + loser[1].time);
	}
	public static void main(String[] args){
		new Main().doIt();
	}
	class Runner implements Comparable<Runner>{
		int num;
		String time;
		Runner(int num, String time) {
			this.num = num;
			this.time = time;
		}
		@Override
		public int compareTo(Runner r){
			return time.compareTo(r.time);
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:16: error: cannot find symbol
			Arrays.sort(runner);
			^
  symbol:   variable Arrays
  location: class Main
Main.java:26: error: cannot find symbol
		Arrays.sort(loser);
		^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	Scanner sc = new Scanner(System.in);
	Person [][] personArray = new Person[3][8];
	Person [] nextwinner = new Person[18];
	int k = 0;
	public void doIt(){
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 8; j++){
				personArray[i][j] = new Person(sc.nextInt(),sc.next());
			}
		}
		for(int i = 0; i < 3; i++){
			Arrays.sort(personArray[i]);
		}
		for(int i = 0; i < 3; i++){
			for(int j = 2; j < 8; j++){
				nextwinner[k++] = new Person(personArray[i][j].number,personArray[i][j].time);
			}
		}
		Arrays.sort(nextwinner);
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 2; j++){
				System.out.println(personArray[i][j].number + " " + personArray[i][j].time);
			}
		}
		for(int i = 0; i < 2; i++){
			System.out.println(nextwinner[i].number + " " + nextwinner[i].time);
		}
	}
	public static void main(String[] args) {
		Main().doIt();
	}
	class Person implements Comparable<Person> { 
		int number;
		String time;
		Person(int number, String time){
			this.number = number;
			this.time = time;
		}
		public String tostring(){
			return "[" + number + "," + time + "]";
		}
		public int compareTo(Person p){
			return time.compareTo(p.time);
		}
	}
}

Compiler output:
Main.java:34: error: cannot find symbol
		Main().doIt();
		^
  symbol:   method Main()
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		    Scanner sc = new Scanner(System.in);
		    Person[] p = new Person[8];
		    Person[] nizi = new Person[18];
		    for(int i= 0; i < 3; i++){
		    	for(int j = 0; j < 8; j++){
		    		int no = sc.nextInt();
		    		String result =sc.next(); 
		    		p[j] = new Person(no,result);
		    	    Arrays.sort(p);
		    	    System.out.println(p[0]);
		    	    System.out.println(p[1]);
		    	    nizi[i*2+j] = p[j+2];
		    	}
		    }
		    Arrays.sort(nizi);
		    System.out.println(nizi[0]);
		    System.out.println(nizi[1]);
	}
    class Person implements Comparable<Person> {
        int name;
        String time;
        Person (int name, String time) {
                this.name = name;
                this.time = time;
        }
        @Override
        public String toString() {
            return name + " " + time;
        }
        @Override
        public int compareTo(Person o) {
            return time.compareTo(o.time);
        }
    }
}
		 

Compiler output:
Main.java:14: error: non-static variable this cannot be referenced from a static context
		    		p[j] = new Person(no,result);
		    		       ^
1 error
Language: Java

import java.util.*;
public class Main {
	void doIt(){
		Scanner sc = new Scanner(System.in);
		Person pa[] = new Person[24];
		int cnt = 0;
		for(int i = 0;i < 3;i++){
			for(int k = 0;k < 8;k++){
				pa[i][k] = new Person(sc.nextInt(), sc.nextDouble(), true);
			}
			Arrays.sort(pa, i * 8, i * 8 + 7);
			for(int k = 0;k < 2;k++){
				System.out.println(pa[i * 8 + k].number + " " + pa[i * 8 + k].time);
				pa[i * 8 + k].flag = false;
			}
		}
		Arrays.sort(pa);
		for(int i = 0;i < 24;i++){
			if(pa1[i].flag == true){
				System.out.println(pa[i].number + " " + pa[i].time);
				cnt++;		
			}
			if(cnt == 2) break;
		}
	}
	public static void main(String args[]){
		new Main().doIt();
	}
	class Person implements Comparable<Person>{ 
		int number;
		Double time;
		boolean flag;
		Person(int number, double time, boolean flag){
			this.number = number;
			this.time = time;
			this.flag = flag;
		}
		@Override
		public int compareTo(Person p){
			return time.compareTo(p.time);
		}
	}
}

Compiler output:
Main.java:9: error: array required, but Main.Person found
				pa[i][k] = new Person(sc.nextInt(), sc.nextDouble(), true);
				     ^
Main.java:19: error: cannot find symbol
			if(pa1[i].flag == true){
			   ^
  symbol:   variable pa1
  location: class Main
2 errors
Language: Java

def main
  if true then
    fh=STDIN
  else
    fh=open("in1_0138.txt")
  end

  rec=[]
  while fh.gets do
    f = $_.chomp.split
    id=f[0].to_i
    tm=f[1].to_f
    rec.push([id, tm])
  end
  ans=[]
  g1=rec[0..7].sort{|a,b| a[1]<=>b[1]}
  g2=rec[8..15].sort{|a,b| a[1]<=>b[1]}
  g3=rec[16..23].sort{|a,b| a[1]<=>b[1]}
  ans = g1.take(2) + g2.take(2) + g3.take(2) + (g1.drop(2) + g2.drop(2) + g3.drop(2)).sort{|a,b| a[1]<=>b[1]}.take(2)
  ans.each{|id,tm| printf("%d %.2f\n", id, tm)}

end

if $0==__FILE__ then
  main
end

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
def main
^
1 error
Language: Java


import java.util.*;
public class Main {
	Scanner s = new Scanner(System.in);
		void doIt(){
			// 自作クラス(Person)オブジェクトの並べ替え
			Person []personone = new Person[8];
			Person []result = new Person[8];
			Person []three = new Person[6];
			for(int i=0; i<8; i++){
				personone[i] = new Person(s.nextInt(), s.nextDouble());
			}
			Arrays.sort(personone);
			result[0] = personone[0];
			result[1] = personone[1];
			three[0] = personone[2];
			three[1] = personone[3];
			for(int i=0; i<8; i++){
				personone[i] = new Person(s.nextInt(), s.nextDouble());
			}
			Arrays.sort(personone);
			result[2] = personone[0];
			result[3] = personone[1];
			three[2] = personone[2];
			three[3] = personone[3];
			for(int i=0; i<8; i++){
				personone[i] = new Person(s.nextInt(), s.nextDouble());
			}
			Arrays.sort(personone);
			result[4] = personone[0];
			result[5] = personone[1];
			three[4] = personone[2];
			three[5] = personone[3];
			Arrays.sort(three);
			result[6] = three[0];
			result[7] = three[1];
			for(int i=0; i<8; i++){
				System.out.println(result[i].name+" "+result[i].age);
			}
		}
		public static void main(String[] args) {
			new Aizu0138().doIt();
		}
		class Person implements Comparable<Person>{ 
			int name;
			Double age;
			Person(int name, double age) {
				this.name = name;
				this.age = age;
				}
			@Override
			public int compareTo(Person o){
				return age.compareTo(o.age);
			}
		}
}

Compiler output:
Main.java:42: error: cannot find symbol
			new Aizu0138().doIt();
			    ^
  symbol:   class Aizu0138
  location: class Main
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class AOJ0138 {
	static class time implements Comparable<time>{
		int num;
		double numtime;
		public time(int num, double numtime) {
			this.num = num;
			this.numtime = numtime;
		}
		@Override
		public int compareTo(time o) {
			if(o.numtime-numtime < 0) return 1;
			else return 0;
		}
	}
	
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		time[][] a = new time[3][8];
		for(int i=0;i<3;i++){
			for(int j=0;j<8;j++)a[i][j]=new time(in.nextInt(),in.nextDouble());
			Arrays.sort(a[i]);
		}
		time[] t = new time[6];
		int x = 0;
		for(int i=0;i<3;i++){
			System.out.printf("%d %.2f\n", a[i][0].num, a[i][0].numtime);
			System.out.printf("%d %.2f\n", a[i][1].num, a[i][1].numtime);
			t[x++] = a[i][2];
			t[x++] = a[i][3];
		}
		Arrays.sort(t);
		System.out.printf("%d %.2f\n", t[0].num, t[0].numtime);
		System.out.printf("%d %.2f\n", t[1].num, t[1].numtime);
	}
}

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

#include<vector>
#include<list>
#include<algorithm>
#include<iostream>
#include<string>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
using namespace std;
int main(){
  int h,i,j;
  int n[24];
  double v[24];
  for(i=0;i<3;i++)
    for(j=0;j<8;j++)
      cin>>n[8*i+j]>>v[8*i+j];
  for(i=0;i<3;i++){
    do{
      h=0;
      for(j=1;j<8;j++){
	if(v[8*i+j-1]>v[8*i+j]){
	  swap(v[8*i+j-1],v[8*i+j]);
	  swap(n[8*i+j-1],n[8*i+j]);
	  h=1;
	}
      }
    }while(h);
  }
  for(i=0;i<3;i++){
    printf("%d %.2lf\n",n[8*i],v[8*i]);
    printf("%d %.2lf\n",n[8*i+1],v[8*i+1]);
    v[8*i]=0.0;
    v[8*i+1]=0.0;
  }
  do{
    h=0;
    for(j=1;j<24;j++){
      if(v[j-1]>v[j]){
	swap(v[j-1],v[j]);
	swap(n[j-1],n[j]);
	h=1;
      }
    }
  }while(h);
  printf("%d %.2lf\n",n[6],v[6]);
  printf("%d %.2lf\n",n[7],v[7]);
  return 0;
}

Compiler output:
main.c:1:9: fatal error: vector: No such file or directory
    1 | #include<vector>
      |         ^~~~~~~~
compilation terminated.
Language: C++

//Name: Track and Field Competition
//Level: 1
//Category: やるだけ
//Note: 

/**
 */
#include <iostream>
#include <vector>

using namespace std;

void calc(vector<pair<double,int>> &v) {
    sort(begin(v), end(v));
    cout << v[0].second << ' ' << v[0].first << endl;
    cout << v[1].second << ' ' << v[1].first << endl;
}

bool solve(bool first) {
    vector<pair<double,int>> v(8), rem;
    for(int i = 0; i < 3; ++i) {
        for(int i = 0; i < 8; ++i) {
            cin >> v[i].second >> v[i].first;
        }
        calc(v);
        rem.insert(end(rem), begin(v)+2, end(v));
    }
    calc(rem);
    return false;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout.setf(ios::fixed);
    cout.precision(2);

    bool first = true;
    while(solve(first)) {
        first = false;
    }
    return 0;
}

Compiler output:
a.cc: In function 'void calc(std::vector<std::pair<double, int> >&)':
a.cc:14:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |     sort(begin(v), end(v));
      |     ^~~~
      |     short
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;

struct ply{int cl;int nu;int m;int s;int A;};

int main()
{

ply NUM[4][25],M1,M2,M3,T;
for(int ii=0;ii<3;ii++)
{
	
	for(int i=0;i<8;i++)
	{
		NUM[ii][i].cl=ii;
		scanf("%d %d.%d",&NUM[ii][i].nu,&NUM[ii][i].m,&NUM[ii][i].s);
		NUM[ii][i].A=100*NUM[ii][i].m+NUM[ii][i].s;
	}
	for(int i=0;i<8;i++)
		for(int j=7;j>i;j--)
			if(NUM[ii][i].A>NUM[ii][j].A)swap(NUM[ii][i],NUM[ii][j]);

}
M1=NUM[0][2];M2=NUM[1][2];M3=NUM[2][2];
if(M1.A<M2.A)swap(M1,M2);
if(M1.A<M3.A)swap(M1,M3);
if(M2.A<M3.A)swap(M2,M3);
for(int i=0;i<2;i++){
		for(int j=0;j<1;j++){
			if(NUM[i][j].s/10>0)cout<<NUM[i][j].nu<<" "<<NUM[i][j].m<<"."<<NUM[i][j].s<<endl;
			else if(NUM[i][j].s/10==0)cout<<NUM[i][j].nu<<" "<<NUM[i][j].m<<"."<<"0"<<NUM[i][j].s<<endl;
		}
}
if(M.s/10>0)cout<<M3.nu<<" "<<M3.m<<"."<<M3.s<<endl;
else if(M3.s/10==0)cout<<M3.nu<<" "<<M3.m<<"."<<"0"<<M3.s<<endl;

if(M2.s/10>0)cout<<M2.nu<<" "<<M2.m<<"."<<M2.s<<endl;
else if(M2.s/10==0)cout<<M2.nu<<" "<<M2.m<<"."<<"0"<<M2.s<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:4: error: 'M' was not declared in this scope
   35 | if(M.s/10>0)cout<<M3.nu<<" "<<M3.m<<"."<<M3.s<<endl;
      |    ^