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

public class Top3 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = 0, b = 0, c = 0; // a>=b>=c
		while (sc.hasNext()) {
			String line = sc.nextLine();
			Scanner s = new Scanner(line);
			int h = s.nextInt();
			if (a < h) {
				c = b;
				b = a;
				a = h;
			} else if (b < h) {
				c = b;
				b = h;
			} else if (c < h) {
				c = h;
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

Compiler output:
Main.java:1: error: class Top3 is public, should be declared in a file named Top3.java
public class Top3 {
       ^
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Top3
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Top3
Main.java:7: error: cannot find symbol
			Scanner s = new Scanner(line);
			^
  symbol:   class Scanner
  location: class Top3
Main.java:7: error: cannot find symbol
			Scanner s = new Scanner(line);
			                ^
  symbol:   class Scanner
  location: class Top3
5 errors
Language: Java

class Top3 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = 0, b = 0, c = 0; // a>=b>=c
		while (sc.hasNext()) {
			String line = sc.nextLine();
			Scanner s = new Scanner(line);
			int h = s.nextInt();
			if (a < h) {
				c = b;
				b = a;
				a = h;
			} else if (b < h) {
				c = b;
				b = h;
			} else if (c < h) {
				c = h;
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

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

import java.util.Scanner;

public class Top3 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = 0, b = 0, c = 0; // a>=b>=c
		while (sc.hasNext()) {
			String line = sc.nextLine();
			Scanner s = new Scanner(line);
			int h = s.nextInt();
			if (a < h) {
				c = b;
				b = a;
				a = h;
			} else if (b < h) {
				c = b;
				b = h;
			} else if (c < h) {
				c = h;
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

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


import java.util.Scanner;

public class Top1 {
	public static void main(String[] args) {
		Scanner rs = new Scanner(System.in);
		int a = 0;
		while (rs.hasNext()) {
			String line = rs.nextLine();
			Scanner cs = new Scanner(line);
			int h = cs.nextInt();
			if (a < h) {
				a = h;
			}
		}
		System.out.println(a);
	}
}

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

import java.io.*;
class Main.java
{
    public static void main(String args[])throws IOException
    {
	int max=0;
	int a[]=new int[10];
	BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
	for(int i=0;i<10;i++)
	    {
		a[i]=Integer.parseInt(buf.readLine());
	    }

	
	for(int i=0;i<3;i++)
	    {
		for(int j=0;j<10;j++)
		    {
			if(max<a[j])
			    max=a[j];
		
		    }
		for(int k=0;k<10;k++)
		    {
			if(max==a[k])
			    {
				a[k]=0;
			    }
		
		    }
		System.out.println(max);
		max=0;
	
	    }
    }
}

Compiler output:
Main.java:2: error: '{' expected
class Main.java
          ^
1 error
Language: Java

import java.io.*;
public class Main
{
    public static void main(String args[])throws
    {
	int max=0;
	int a[]=new int[10];

      	BufferedReaderbuf=new BufferedReader(new InputStreamReader(System.in));
	for(int i=0;i<10;i++)
	    {
		String str=buf.readLine();
		a[i]=Integer.parseInt(str);
	    }

	
	for(int i=0;i<3;i++)
	    {
		for(int j=0;j<10;j++)
		    {
			if(max<a[j])
			    max=a[j];
		
		    }
		for(int k=0;k<10;k++)
		    {
			if(max==a[k])
			    {
				a[k]=0;
			    }
		
		    }
		System.out.println(max);
		max=0;
	
	    }
    }
}

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

import java.io.*;
public class Main
{
    public static void main(String args[])throws IOException
    {
	int max=0;
	int a[]=new int[10];

      	BufferedReaderbuf=new BufferedReader(new InputStreamReader(System.in));
	for(int i=0;i<10;i++)
	    {
		String str=buf.readLine();
		a[i]=Integer.parseInt(str);
	    }

	
	for(int i=0;i<3;i++)
	    {
		for(int j=0;j<10;j++)
		    {
			if(max<a[j])
			    max=a[j];
		
		    }
		for(int k=0;k<10;k++)
		    {
			if(max==a[k])
			    {
				a[k]=0;
			    }
		
		    }
		System.out.println(max);
		max=0;
	
	    }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
      	BufferedReaderbuf=new BufferedReader(new InputStreamReader(System.in));
      	^
  symbol:   variable BufferedReaderbuf
  location: class Main
Main.java:12: error: cannot find symbol
		String str=buf.readLine();
		           ^
  symbol:   variable buf
  location: class Main
2 errors
Language: Java

import java.io.*;
class Main
{
    public static void main(String args[])throws IOException
    {
	int max=0;
	int a[]=new int[10];
	BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
	for(int i=0;i<10;i++)
	    {
	
		a[i]=Integer.parseInt(buf.readLine);
	    }

	
	for(int i=0;i<3;i++)
	    {
		for(int j=0;j<10;j++)
		    {
			if(max<a[j])
			    max=a[j];
		
		    }
		for(int k=0;k<10;k++)
		    {
			if(max==a[k])
			    {
				a[k]=0;
			    }
		
		    }
		System.out.println(max);
		max=0;
	
	    }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
		a[i]=Integer.parseInt(buf.readLine);
		                         ^
  symbol:   variable readLine
  location: variable buf of type BufferedReader
1 error
Language: Java

import java.io.*;
class Main
{
    public static void main(String args[])throws IOException
    {
	int max[]=new int[3];
	int a[]=new int[10];
	BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
	for(int i=0;i<10;i++)
	    {
	
		a[i]=Integer.parseInt(buf.readLine());
	    }

	
	for(int i=0;i<3;i++)
	    {
		for(int j=0;j<10;j++)
		    {
			if(max[i]<a[j])
			    max[i]=a[j];
		
		    }
		for(int k=0;k<10;k++)
		    {
			if(max==a[k])
			    {
				a[k]=0;
			    }
		
		    }
		System.out.println(max[i]);
		
	
	    }
    }
}

Compiler output:
Main.java:26: error: bad operand types for binary operator '=='
			if(max==a[k])
			      ^
  first type:  int[]
  second type: int
1 error
Language: Java

import java.util.Scanner;
class Main
{
    public static void main(String args[])
    {
	int i;
	int max[]=new int[3];
	int a[]=new int[10];
	Scanner scan=new Scanner(System.in);
	for(i=0;i<10;i++)
	    {
		a[i]=scan.nextInt();
	    }
	for(i=0;i<3;i++)
	    {
		for(iint j=0;j<10;j++)
		    {
			if(max[i]<a[j])
			    max[i]=a[j];	
		    }
		for(int k=0;k<10;k++)
		    {
			if(max[i]==a[k])
			    {
				a[k]=0;
			    }
		    }
		System.out.println(max[i]);
	    }
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
		for(iint j=0;j<10;j++)
		    ^
  symbol:   class iint
  location: class Main
1 error
Language: Java

import java.util.*;                                                                 
public class AOJ0001{                                                               
  public static void main(String [] args){                                          
    Scanner sc = new Scanner(System.in);                                            
    int m_count = 10, ans_count = 3;                                                
    int[] m = new int[m_count];                                                     
    int i;                                                                          
    for(i = 0;i < m_count;i++){                                                     
      m[i] = sc.nextInt();                                                          
    }                                                                               
    Arrays.sort(m);
    int t = 0; 
    for (i = 0; i < m_count / 2; i++){
      t = m[i];
      m[i] = m[m_count - i - 1];
      m[m_count - i - 1] = t;
    }
    for(i = 0;i < ans_count;i++){
      System.out.println(m[i]);
    }
  }
}

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

public class Main
{
	public static void main(String[] args) {
		if(args.length < 3)
		{
			System.out.println("Error!");
			return;
		}
		int[] meters = new int[args.length];
		for(int i = 0;i < args.length;i++)
		{
			meters[i] = Integer.parseInt(args[i]);
		}
		int first = 0,second = 0,third = 0;
		for(int i = 0;i < meters.length;i++)
		{
			if(meters[i] > third)
			{
				if(meters[i] > second)
				{
					if(meters[i] > first)
					{
						third = second;
						second = first;
						first = meters[i];
					}
					else
					{
						third = second;
						second = meters[i];
					}
				}
				else
				{
					third = meters[i];
				}
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}		
	}
}

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

public class Main
{
      public static main(string[] args){
		if(args.length < 3)
		{
			System.out.println("Error!");
			return;
		}
		int[] meters = new int[args.length];
		for(int i = 0;i < args.length;i++)
		{
			meters[i] = Integer.parseInt(args[i]);
		}
		int first = 0,second = 0,third = 0;
		for(int i = 0;i < meters.length;i++)
		{
			if(meters[i] > third)
			{
				//3番目より高い
				if(meters[i] > second)
				{
					if(meters[i] > first)
					{
						third = second;
						second = first;
						first = meters[i];
					}
					else
					{
						third = second;
						second = meters[i];
					}
				}
				else
				{
					//3番目の高さ
					third = meters[i];
				}
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}
}
}

Compiler output:
Main.java:3: error: invalid method declaration; return type required
      public static main(string[] args){
                    ^
Main.java:46: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

class Main{
    public static void main(String[] args){
		if(args.length < 3)
		{
			System.out.println("Error!");
			return;
		}
		int[] meters = new int[args.length];
		for(int i = 0;i < args.length;i++)
		{
			meters[i] = Integer.parseInt(args[i]);
		}
		int first = 0,second = 0,third = 0;
		for(int i = 0;i < meters.length;i++)
		{
			if(meters[i] > third)
			{
				//3番目より高い
				if(meters[i] > second)
				{
					if(meters[i] > first)
					{
						third = second;
						second = first;
						first = meters[i];
					}
					else
					{
						third = second;
						second = meters[i];
					}
				}
				else
				{
					//3番目の高さ
					third = meters[i];
				}
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}
    }
}

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

package test;

class Main{
    public static void main(String[] args){
		if(args.length < 3)
		{
			System.out.println("Error!");
			return;
		}
		int[] meters = new int[args.length];
		for(int i = 0;i < args.length;i++)
		{
			meters[i] = Integer.parseInt(args[i]);
		}
		int first = 0,second = 0,third = 0;
		for(int i = 0;i < meters.length;i++)
		{
			if(meters[i] > third)
			{
				//3番目より高い
				if(meters[i] > second)
				{
					if(meters[i] > first)
					{
						third = second;
						second = first;
						first = meters[i];
					}
					else
					{
						third = second;
						second = meters[i];
					}
				}
				else
				{
					//3番目の高さ
					third = meters[i];
				}
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}
    }
}

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

public class Main {
	
	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		List<String> list = new ArrayList<String>();
		
		while((line=br.readLine()) != null){
			
			list.add(line);
		
		}

		Collections.sort(list);

	}

}

Compiler output:
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
Main.java:7: error: cannot find symbol
		List<String> list = new ArrayList<String>();
		^
  symbol:   class List
  location: class Main
Main.java:7: error: cannot find symbol
		List<String> list = new ArrayList<String>();
		                        ^
  symbol:   class ArrayList
  location: class Main
Main.java:15: error: cannot find symbol
		Collections.sort(list);
		^
  symbol:   variable Collections
  location: class Main
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class Top3 {
	
	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		List<String> list = new ArrayList<String>();
		
		while((line=br.readLine()) != null){
			
			list.add(line);
		
		}

		Collections.sort(list);
		
		for (int i = 0; i < 2; i++) {
			System.out.println(list.get(i));
		}

	}

}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class Top3 {
	
	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		List<String> list = new ArrayList<String>();
		
		while((line=br.readLine()) != null){
			
			list.add(line);
		
		}

		Collections.sort(list);
		
		for (int i = 0; i <= 2; i++) {
			System.out.println(list.get(i));
		}

	}

}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Top3 {

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

		ArrayList<Integer> list = new ArrayList<Integer>();

		while ((line = br.readLine()) != null) {
			list.add(Integer.parseInt(line));
		}

		Collections.sort(list);
		Collections.reverse(list);

		for (int i = 0; i <= 2; i++) {
			System.out.println(list.get(i));
		}

	}

}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Top3 {

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

		ArrayList<Integer> list = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {
			list.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(list);
		Collections.reverse(list);

		for (int i = 0; i <= 2; i++) {
			System.out.println(list.get(i));
		}

	}

}

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

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


public class main {

	private static int top3[];

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

		top3 = new int[3];

		for(int i=0;i<10;i++){
			
			int h = Integer.parseInt(br.readLine());
			if(top3[0]<h){
				top3[2] = top3[1];
				top3[1] = top3[0];
				top3[0] = h;
			}
			else if(top3[1]<h){
				top3[2] = top3[1];
				top3[1] = h;
			}else if(top3[2]<h){
				top3[2] =h;
			}
		}
		for(int j=0;j<3;j++){
		 System.out.println(top3[j]);
		}
	}
}

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

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

public class AOJ_Volume0001 {

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

		for(int i=0 ; i<10 ;i++){
			values[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(values);
		for(int i=9 ; i>6; i--){
			System.out.println(values[i]);
		}
	}
}

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

import java.util.Scanner;
public class AOJ0001{
	public static void main(String[] args) { 
		Scanner sc = new Scanner(System.in);
		int n[]=new int[10];
		int a=0;int b=0;int c=0;
		for(int i=0;i<10;i++){
			n[i] = sc.nextInt();
			if(a<n[i]){
				b=a;
				a=n[i];
			}else if(b<n[i]){
				c=b;
				b=n[i];
			}else if(c<n[i]){
				c=n[i];
			}
		}
		
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

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

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

public class HillsOfTop3 {

    public static void main (String args[]) {
        //ArrayList ar = new ArrayList();
		int[] mountain = new int[10];
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			
			for (int i = 0; i < 10; i++) {
				mountain[i] = Integer.parseInt(br.readLine());
			}
			
			Arrays.sort(mountain);
			
			for (int i = 9; i > 6; i--) {
				System.out.println(mountain[i]);
			}
			
		}
		catch (IOException e) {
			e.printStackTrace();
		}
		
    }
}

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

public class Main{
	public static void main(String[] args){
		int max = 10, temp;
		int mountain[] = new mountain[max];
		Scanner sc = new Scanner(System.in);
		for(int i = 0; i < max; i++) mountain[i] = sc.nextInt();
		for(int i = 0; i < max; i++){
			for(int j = max; j > i; j--){
				if(mountain[j-1] > mountain[j]){
					temp = mountaim[j-1];
					mountain[j-1] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		for(int i = 0; i < 3; i++) System.out.println(mountain[i]);
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		int mountain[] = new mountain[max];
		                     ^
  symbol:   class mountain
  location: class Main
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:10: error: cannot find symbol
					temp = mountaim[j-1];
					       ^
  symbol:   variable mountaim
  location: class Main
4 errors
Language: Java

import java.util.Scanner;


 public class Main{
	public static void main(String[] args){
		int max = 10, temp;
		int mountain[] = new int[max];
		Scanner sc = new Scanner(System.in);
		for(int i = 0; i < max; i++) mountain[i] = sc.nextInt();
		for(int i = 0; i < max; i++){
			for(int j = max; j > i; j--){
				if(mountain[j-1] > mountain[j]){
					temp = mountaim[j-1];
					mountain[j-1] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		for(int i = 0; i < 3; i++) System.out.println(mountain[i]);
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
					temp = mountaim[j-1];
					       ^
  symbol:   variable mountaim
  location: class Main
1 error
Language: Java

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

public class Ideone {

	public static void main(String[] args) {
		try (BufferedReader r = new BufferedReader(new InputStreamReader(System.in))) {
			String line;
			int[] top3 = new int[3];
			while ((line = r.readLine()) != null) {
				int val = Integer.parseInt(line);
				if (top3[0] <= val) {
					top3[2] = top3[1];
					top3[1] = top3[0];
					top3[0] = val;
				} else if (top3[1] <= val) {
					top3[2] = top3[1];
					top3[1] = val;
				} else if (top3[2] <= val) {
					top3[2] = val;
				}
			}

			for (int t : top3) {
				System.out.println(t);
			}
		} catch (Exception e) {
			e.getStackTrace();
			System.exit(-1); // プログラムを終了
		}
	}
}

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

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

public class Ideone {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int[] top3 = new int[3];
		while ((line = r.readLine()) != null) {
			int val = Integer.parseInt(line);
			if (top3[0] <= val) {
				top3[2] = top3[1];
				top3[1] = top3[0];
				top3[0] = val;
			} else if (top3[1] <= val) {
				top3[2] = top3[1];
				top3[1] = val;
			} else if (top3[2] <= val) {
				top3[2] = val;
			}
		}

		for (int t : top3) {
			System.out.println(t);
		}

	}
}

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

class Main{
    public static void main(String[] a){
	int m;
	int n;
	int l;
	int o;
	int p;
	for(int i=0;i<10;i++){
		m = Math.max(a[i],a[i+1]);
	}
	System.out.println(m);
	for(int i=0;i<10;i++){
		n = Math.max(a[i],a[i+1]);
	}
	l = Math.min(m,n);
	System.out.println(l);
	for(int i=0;i<10;i++){
		o = Math.max(a[i],a[i+1]);
	}
	p = Math.min(n,o);
	System.out.println(p);

    }
}

Compiler output:
Main.java:9: error: no suitable method found for max(String,String)
		m = Math.max(a[i],a[i+1]);
		        ^
    method Math.max(int,int) is not applicable
      (argument mismatch; String cannot be converted to int)
    method Math.max(long,long) is not applicable
      (argument mismatch; String cannot be converted to long)
    method Math.max(float,float) is not applicable
      (argument mismatch; String cannot be converted to float)
    method Math.max(double,double) is not applicable
      (argument mismatch; String cannot be converted to double)
Main.java:13: error: no suitable method found for max(String,String)
		n = Math.max(a[i],a[i+1]);
		        ^
    method Math.max(int,int) is not applicable
      (argument mismatch; String cannot be converted to int)
    method Math.max(long,long) is not applicable
      (argument mismatch; String cannot be converted to long)
    method Math.max(float,float) is not applicable
      (argument mismatch; String cannot be converted to float)
    method Math.max(double,double) is not applicable
      (argument mismatch; String cannot be converted to double)
Main.java:18: error: no suitable method found for max(String,String)
		o = Math.max(a[i],a[i+1]);
		        ^
    method Math.max(int,int) is not applicable
      (argument mismatch; String cannot be converted to int)
    method Math.max(long,long) is not applicable
      (argument mismatch; String cannot be converted to long)
    method Math.max(float,float) is not applicable
      (argument mismatch; String cannot be converted to float)
    method Math.max(double,double) is not applicable
      (argument mismatch; String cannot be converted to double)
3 errors
Language: Java

import java.util.Scanner;
public class ListofTop3Hills {
public static void main(String[] a) {
		Scanner scan = new Scanner(System.in);
		int[] x=new int[10];
		int temp;
		for(int i=0;i<x.length;i++){
		x[i]=scan.nextInt();
		}
		for(int i=0;i<x.length;i++){
			for(int j=0;j<x.length;j++){
				if(x[i]>x[j]){
					temp=x[i];
					x[i]=x[j];
					x[j]=temp;
				}
			}
		}
		System.out.println(x[0]);
		System.out.println(x[1]);
		System.out.println(x[2]);

	}

}

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

import java.util.Scanner;


public class main {

	
	public static void main(String[] a) {
		Scanner scan = new Scanner(System.in);
		int[] x=new int[10];
		int temp;
		for(int i=0;i<x.length;i++){
		x[i]=scan.nextInt();
		}
		for(int i=0;i<x.length;i++){
			for(int j=0;j<x.length;j++){
				if(x[i]>x[j]){
					temp=x[i];
					x[i]=x[j];
					x[j]=temp;
				}
			}
		}
		System.out.println(x[0]);
		System.out.println(x[1]);
		System.out.println(x[2]);

	}

}

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


public class main {

	/**
	 * @param args
	 */
	public static void main(String[] a) {
		Scanner scan = new Scanner(System.in);
		int[] x=new int[10];
		int temp;
		for(int i=0;i<x.length;i++){
		x[i]=scan.nextInt();
		}
		for(int i=0;i<x.length;i++){
			for(int j=0;j<x.length;j++){
				if(x[i]>x[j]){
					temp=x[i];
					x[i]=x[j];
					x[j]=temp;
				}
			}
		}
		System.out.println(x[0]);
		System.out.println(x[1]);
		System.out.println(x[2]);

	}

}

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


public class ListofTop3Hills {

	/**
	 * @param args
	 */
	public static void main(String[] a) {
		Scanner scan = new Scanner(System.in);
		int[] x=new int[10];
		int temp;
		for(int i=0;i<x.length;i++){
		x[i]=scan.nextInt();
		}
		for(int i=0;i<x.length;i++){
			for(int j=0;j<x.length;j++){
				if(x[i]>x[j]){
					temp=x[i];
					x[i]=x[j];
					x[j]=temp;
				}
			}
		}
		System.out.println(x[0]);
		System.out.println(x[1]);
		System.out.println(x[2]);

	}

}

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

public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a = 0, b = 0, c = 0;

		for(int i = 0 ; i < 10; i++){
			String str = br.readLine();
			int input = Integer.parseInt(str);
			if(input > a){
				c = b;
				b = a;
				a = input;
				continue;
			}
			if(input > b){
				c = b;
				b = input;
				continue;
			}
			if(input > c){
				c = input;
				continue;
			}
		}

		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

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: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
4 errors
Language: C

#include <stdio.h>

int main()
{
	int n, a, b, c, i;
	a = b = c = 0;
	for(i=0;i<10;i++) {
		scanf("%d", &n);
		if (n>=a)
			c =b, b = a, a = n;
		else if (n>=b)
			c = b, b = n;
		else (n>c)
			c = n;
		}
	printf("%d\n%d\n%d\n", a, b, c);
	return (0);
}


Compiler output:
main.c: In function 'main':
main.c:13:27: error: expected ';' before 'c'
   13 |                 else (n>c)
      |                           ^
      |                           ;
   14 |                         c = n;
      |                         ~
Language: C

#include<stdio.h>
#include<conio.h>

int main( )
{
     int a[11];
     int i, j, temp, n=10 ;

     for(j=0; j<n; j++)
        scanf("%d",&a[j]);
     for(j=1;j<n;j++)
     {
          for(i=0; i < n - 1; i++)
          {
               if(a[i]>a[i+1])
               {
                     temp=a[i];
                     a[i]=a[i+1];
                     a[i+1]=temp;
               }
          }
     }

     printf("%d\n%d\n%d\n",a[9],a[8],a[7]);

    return 0;
 }



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

#include <bits/stdc++.h>

using namespace std;

int main()
{
   int arr[10];
   for(int i=0; i<10; i++){
       cin >> arr[i];
   }
   int l = sizeof(arr)/sizeof(int);
   sort(arr,arr+10);
   printf("%d\n%d\n%d\n",arr[9],arr[8],arr[7]);
}



Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<stdlib.h>

int compare_int(int a, int b)
{
    if(a>b){ return -1; }
    else{ return 1; }
}

int main(){
    int i;
    int height[10];
    
    for(i=0;i<10;i++){
      scanf("%d", height+i);
    }

    qsort(height, sizeof(int), compare_int);

    for(i=0;i<3;i++){
      printf("%d\n", height[i]);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:32: error: passing argument 3 of 'qsort' makes integer from pointer without a cast [-Wint-conversion]
   18 |     qsort(height, sizeof(int), compare_int);
      |                                ^~~~~~~~~~~
      |                                |
      |                                int (*)(int,  int)
In file included from main.c:2:
/usr/include/stdlib.h:970:57: note: expected 'size_t' {aka 'long unsigned int'} but argument is of type 'int (*)(int,  int)'
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |                                                  ~~~~~~~^~~~~~
main.c:18:5: error: too few arguments to function 'qsort'
   18 |     qsort(height, sizeof(int), compare_int);
      |     ^~~~~
/usr/include/stdlib.h:970:13: note: declared here
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |             ^~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>

int compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}

int main(){
    int i;
    int height[10];
    
    for(i=0;i<10;i++){
      scanf("%d", height+i);
    }

    qsort(height, sizeof(int), compare_int);

    for(i=0;i<3;i++){
      printf("%d\n", height[i]);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:32: error: passing argument 3 of 'qsort' makes integer from pointer without a cast [-Wint-conversion]
   17 |     qsort(height, sizeof(int), compare_int);
      |                                ^~~~~~~~~~~
      |                                |
      |                                int (*)(const void *, const void *)
In file included from main.c:2:
/usr/include/stdlib.h:970:57: note: expected 'size_t' {aka 'long unsigned int'} but argument is of type 'int (*)(const void *, const void *)'
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |                                                  ~~~~~~~^~~~~~
main.c:17:5: error: too few arguments to function 'qsort'
   17 |     qsort(height, sizeof(int), compare_int);
      |     ^~~~~
/usr/include/stdlib.h:970:13: note: declared here
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |             ^~~~~
Language: C

#include<iostream>

void sort(int *);
int main()
{
    int a[10];
    for(int i=0;i<10;i++)
    {
       scanf("%d",&a[i]);
    }
    sort(a);
    printf("%d\n%d\n%d\n",a[0],a[1],a[2]);
}
void sort(int *a)
{
     int T;
     for(int i=0;i<10;i++){
        for(int j=i;j<10;j++){
           if(a[i]<a[j]){
              T=a[i];
              a[i]=a[j];
              a[j]=T;                 
           }        
        }        
     }
}

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

#include <stdio.h>

int main(void)
{
	int m[10];
	int max1 = 0, max2 = 0, max3 = 0;
	int i;
	
	for (i = 0; i < 10; i++){
		scanf("%d", &m[i]);
	}
	
	for (i = 0; i < 10; i++){
		if (max1 <= m[i]){
			/*max1 = m[i];
			max2 = max1;*/
			max3 = max2;
			max2 = max1;
			max1 = m[i];
		}
		else if (max2 <= m[10]){
			max3 = max2;
			max2 = m[i];
		}
		else if (max3 <= m[10]){
			max3 = m[i];
	}
	
	printf("%d\n%d\n%d\n", max1, max2, max3);
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

#include <stdio.h>

int main() {
     int mountainList[9];
     int highestMount = 0;
     int secondMount = 0;
     int thirdMount = 0;
     int tempMount;

     for (int c=0; c<=9; c++) {
           scanf(%d, tempMount);
           mountainList[c] = tempMount;
           if (tempMount > highestMount ) { 
           		thirdMount = secondMount;
           		secondMount = highestMount;
           		highestMount = tempMount;
           		}
           	else if (tempMount > secondMount) { 
           		thirdMount = secondMount;
           		secondMount = tempMount;
           	}
           	else if (tempMount > thirdMount) { 
           		thirdMount = tempMount;
           	}
     }

     printf("%d\n", highestMount);
     printf("%d\n", secondMount);
     printf("%d\n", thirdMount);


}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected expression before '%' token
   11 |            scanf(%d, tempMount);
      |                  ^
Language: C

                                                      
  /*************
  
  山の高い順に３つを出力
  
  *************/
  
  #include "stdio.h"
  #define YAMASU 10
  #define SHUTURYOKU 3
  int main(void)
  {
          int n=0;  	//　入力
          int i,j;	//　繰り返し  	
          int tmp=0;	//　入れ替え
	　int yama[YAMASU]={0};

      //  山の高さを入力（0〜10000の間） 

      do{
          printf("山の高さ %d : ",n+1);
          scanf("%d",&yama[n]);
          if(yama[n]>=10000 || yama[n]<=0){
              printf("0&#12316;10000の間で入力して下さい。\n");
          }else{
              n++;
          }
              
      }while((yama[n]>=10000 || yama[n]<=0) &&  n<YAMASU);

　　　//　並べ替え

      for(i=0;i<YAMASU;i++){
          for(j=0;j<YAMASU;j++){
              if(yama[i]>yama[j]){
                  tmp=yama[j];
                  yama[j]=yama[i];
                  yama[i]=tmp;                                      
                  }
          }
          tmp=0;
      }

      //  山の高さが高い順に３つを出力   

      printf("最も高い山：%d\n",yama[0]);     
      printf("２番目に高い山：%d\n",yama[1]);     
      printf("３番目に高い山：%d\n",yama[2]);
      return 0;
  }                                           
                     

Compiler output:
main.c: In function 'main':
main.c:16:9: error: stray '\343' in program
   16 |         <U+3000>int yama[YAMASU]={0};
      |         ^~~~~~~~
main.c:31:1: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000>//<U+3000><U+4E26><U+3079><U+66FF><U+3048>
      | ^~~~~~~~
main.c:31:3: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000>//<U+3000><U+4E26><U+3079><U+66FF><U+3048>
      |         ^~~~~~~~
main.c:31:5: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000>//<U+3000><U+4E26><U+3079><U+66FF><U+3048>
      |                 ^~~~~~~~
Language: C

#include <stdio.h>
#define FOR( a,b ) for( a=0;a<b;a++ )

int main(){int mnt[10];int i,j,buf;FOR( i,10 )scanf( "%d",mnt[i] );FOR( i,10 )FOR( i+1,10  )if( mnt[i] < mnt[j] ){ buf=mnt[i];mnt[i]=mnt[j];mnt[j]=buf; };FOR( i,3 )printf( "%d\n",mnt[i] ); return 0;}

Compiler output:
main.c: In function 'main':
main.c:2:26: error: lvalue required as left operand of assignment
    2 | #define FOR( a,b ) for( a=0;a<b;a++ )
      |                          ^
main.c:4:79: note: in expansion of macro 'FOR'
    4 | int main(){int mnt[10];int i,j,buf;FOR( i,10 )scanf( "%d",mnt[i] );FOR( i,10 )FOR( i+1,10  )if( mnt[i] < mnt[j] ){ buf=mnt[i];mnt[i]=mnt[j];mnt[j]=buf; };FOR( i,3 )printf( "%d\n",mnt[i] ); return 0;}
      |                                                                               ^~~
main.c:2:34: error: lvalue required as increment operand
    2 | #define FOR( a,b ) for( a=0;a<b;a++ )
      |                                  ^~
main.c:4:79: note: in expansion of macro 'FOR'
    4 | int main(){int mnt[10];int i,j,buf;FOR( i,10 )scanf( "%d",mnt[i] );FOR( i,10 )FOR( i+1,10  )if( mnt[i] < mnt[j] ){ buf=mnt[i];mnt[i]=mnt[j];mnt[j]=buf; };FOR( i,3 )printf( "%d\n",mnt[i] ); return 0;}
      |                                                                               ^~~
Language: C

#include <stdio.h>
#define FOR( a,b ) for( a=0;a<b;a++ )

int main(){
int mnt[10];
int i,j,buf;
FOR( i,10 )scanf( "%d",mnt[i] );
FOR( i,10 )FOR( i+1,10  )
    if( mnt[i] < mnt[j] ){
         buf=mnt[i];mnt[i]=mnt[j];mnt[j]=buf; 
    };
    FOR( i,3 )printf( "%d\n",mnt[i] );
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:26: error: lvalue required as left operand of assignment
    2 | #define FOR( a,b ) for( a=0;a<b;a++ )
      |                          ^
main.c:8:12: note: in expansion of macro 'FOR'
    8 | FOR( i,10 )FOR( i+1,10  )
      |            ^~~
main.c:2:34: error: lvalue required as increment operand
    2 | #define FOR( a,b ) for( a=0;a<b;a++ )
      |                                  ^~
main.c:8:12: note: in expansion of macro 'FOR'
    8 | FOR( i,10 )FOR( i+1,10  )
      |            ^~~
Language: C

#include<cstdio>
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
    int a[10];
    int i,j,k,m,n;
    for(i=0;i<10;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a,a+10);
    printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
}

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

#include<cstdio>
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
    int a[10];
    int i,j,k,m,n;
    for(i=0;i<10;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a,a+10);
    printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
    return 0;
}

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

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <readline/readline.h>
#include <readline/history.h>

#define BUFSIZ 64

int main (int ac, char **av) {
  char *prompt = getenv("PS2");
  char *line = NULL;
  int lineSize = 0;
  int index = 0;
  int history_no = 0;
  int mountains[10] = {0};
  
  while (line = readline(NULL)) {
    lineSize = strlen(line);
    int x = atoi(line);
    if (mountains[0] == 0) {
      mountains[0] = x;
    } else {
      for (int idx = 0; idx < 10; idx++) {
	if (mountains[idx] < x) {
	  memmove(mountains+idx+1, mountains+idx, sizeof(int) * (9-idx));
	  mountains[idx] = x;
	  break;
	}
      }
    }
  }
  for (int i = 0; i < 3; i++) {
    fprintf(stdout, "%d\n", mountains[i]);
  }
      

  return 0;
}

Compiler output:
main.c:4:10: fatal error: readline/readline.h: No such file or directory
    4 | #include <readline/readline.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

int main(){
    int m[10];
    int i,j,max=0,n;
    for(i=0;i<10;i++)
        scanf("%d"&m[i]);
    for(j=0;j<3;j++){
        for(i=0;i<10;i++){
            if(m[i]>=max){
               max=m[i];
               n=i
            }
        }
        printf("%d\n",max);
        max=0;
        m[n]=0;
        
    }
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: invalid operands to binary & (have 'char *' and 'int')
    7 |         scanf("%d"&m[i]);
      |               ~~~~^~~~~
      |               |     |
      |               |     int
      |               char *
main.c:12:19: error: expected ';' before '}' token
   12 |                n=i
      |                   ^
      |                   ;
   13 |             }
      |             ~
Language: C

#include<stdio.h>

int main(){
    int m[10];
    int i,j,max=0,n;
    for(i=0;i<10;i++)
        scanf("%d",&m[i]);
    for(j=0;j<3;j++){
        for(i=0;i<10;i++){
            if(m[i]>=max){
               max=m[i];
               n=i
            }
        }
        printf("%d\n",max);
        max=0;
        m[n]=0;
        
    }
}

Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected ';' before '}' token
   12 |                n=i
      |                   ^
      |                   ;
   13 |             }
      |             ~
Language: C

#include<stdio.h>

int main(void)
{
  int i;
  int low;
  int mid;
  int large;
  int height[10];
  
  i=0;
  while(i++ < 10) {
    scanf("%d", height[i-1]);
    if(i==1) low = mid = large = height[0];
    
    if(height[i-1] > hi) {
      hi = height[i-1];
      mid = hi;
    }
    else
    if(height[i-1] > mid) {
      mid = height[i-1];
      low = mid;
    }
    else
    if (low > height[i-1]){
      low = height[i-1];
    }
  }
  printf("%d\n%d\n%d\n", hi,mid,low);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:22: error: 'hi' undeclared (first use in this function); did you mean 'i'?
   16 |     if(height[i-1] > hi) {
      |                      ^~
      |                      i
main.c:16:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  int i;
  int low;
  int mid;
  int large;
  int height[10];
   
  i=0;
  while(i++ < 10) {
    scanf("%d", &(height[i-1]));
    if(i==1) low = mid = large = height[0];
     
    if(height[i-1] > hi) {
      hi = height[i-1];
      mid = hi;
    }
    else
    if(height[i-1] > mid) {
      mid = height[i-1];
      low = mid;
    }
    else
    if (low > height[i-1]){
      low = height[i-1];
    }
  }
  printf("%d\n%d\n%d\n", hi,mid,low);
 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:22: error: 'hi' undeclared (first use in this function); did you mean 'i'?
   16 |     if(height[i-1] > hi) {
      |                      ^~
      |                      i
main.c:16:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void)
{
  int i;
  int low;
  int mid;
  int large;
  int height[10];
   
  i=0;
  while(i++ < 10) {
    scanf("%d", &(height[i-1]));
    if(i==1) low = mid = large = height[0];
     
    if(height[i-1] > hi) {
      large = height[i-1];
      mid = large;
    }
    else
    if(height[i-1] > mid) {
      mid = height[i-1];
      low = mid;
    }
    else
    if (low > height[i-1]){
      low = height[i-1];
    }
  }
  printf("%d\n%d\n%d\n", large,mid,low);
 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:22: error: 'hi' undeclared (first use in this function); did you mean 'i'?
   16 |     if(height[i-1] > hi) {
      |                      ^~
      |                      i
main.c:16:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
  int large;
  int mid;
  int low;
  int input;
  int i;
  int height[10];

  i = 0;
  while(i++ < 10) {
    scanf("%d", &(height[i-1]));
    if(i==1) low = mid = large = height[0];
    
    if(height[i-1]>large) {
      large = height[i-1];
    }
    else
    if(height[i-1]>mid) {
      mid = heigth[i-1]
    }
    else
    if(height[i-1]>low) {
      low = height[i-1];
    }
  }
  printf("%d\n%d\n%d\n", large,mid,low);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:13: error: 'heigth' undeclared (first use in this function); did you mean 'height'?
   22 |       mid = heigth[i-1]
      |             ^~~~~~
      |             height
main.c:22:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:24: error: expected ';' before '}' token
   22 |       mid = heigth[i-1]
      |                        ^
      |                        ;
   23 |     }
      |     ~
Language: C

#include <stdio.h>

int main(void)
{
  int large;
  int mid;
  int low;
  int input;
  int i;
  int height[10];

  i = 0;
  while(i++ < 10) {
    scanf("%d", &(height[i-1]));
    if(i==1) low = mid = large = height[0];
    
    if(height[i-1]>large) {
      large = height[i-1];
    }
    else
    if(height[i-1]>mid) {
      mid = height[i-1]
    }
    else
    if(height[i-1]>low) {
      low = height[i-1];
    }
  }
  printf("%d\n%d\n%d\n", large,mid,low);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:24: error: expected ';' before '}' token
   22 |       mid = height[i-1]
      |                        ^
      |                        ;
   23 |     }
      |     ~
Language: C

#include<stdio.h>

int main(){

	int a[10], n;
	int max = 0;

	for (int i = 0; i < 10; i++)
	{
		scanf_s("%d", &a[i]);
	}

	for (int i = 0; i < 10; i++)
	{
		for (int j = 0; j < 10; j++)
		{
			if (a[j + 1] > a[j])
			{
				max = a[j];
				a[j] = a[j + 1];
				a[j + 1] = max;
			}
		}
	}
	
	printf("%d\n", a[0]);
	printf("%d\n", a[1]);
	printf("%d\n", a[2]);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |                 scanf_s("%d", &a[i]);
      |                 ^~~~~~~
      |                 scanf