Language: Java

class Main{
    public static void main(String[] a){
	int m;
	int n;
	int l;
	int o;
	int p;
	for(i=0;i<10;i++){
		m = Math.max(a[i],a[i+1]);
	}
	System.out.println(m);
	for(i=0;i<10;i++){
		n = Math.max(a[i],a[i+1]);
	}
	l = Math.min(m,n);
	System.out.println(l);
	for(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:8: error: cannot find symbol
	for(i=0;i<10;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
	for(i=0;i<10;i++){
	        ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
	for(i=0;i<10;i++){
	             ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
		m = Math.max(a[i],a[i+1]);
		               ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
		m = Math.max(a[i],a[i+1]);
		                    ^
  symbol:   variable i
  location: class Main
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:12: error: cannot find symbol
	for(i=0;i<10;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
	for(i=0;i<10;i++){
	        ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
	for(i=0;i<10;i++){
	             ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
		n = Math.max(a[i],a[i+1]);
		               ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
		n = Math.max(a[i],a[i+1]);
		                    ^
  symbol:   variable i
  location: class Main
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:17: error: cannot find symbol
	for(i=0;i<10;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
	for(i=0;i<10;i++){
	        ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
	for(i=0;i<10;i++){
	             ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
		o = Math.max(a[i],a[i+1]);
		               ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
		o = Math.max(a[i],a[i+1]);
		                    ^
  symbol:   variable i
  location: class Main
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)
18 errors