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

#include <iostream>

static const double M_PI = 6*asin(0.5);

using namespace std;

int debug = 0;

int main(void){
	int len, deg, direction=90;
	double x=0, y=0;
	int i_x, i_y;

	while(cin >> len){
		cin.ignore(); //read ,
		cin >> deg;

		if(len == 0 && deg == 0) break;

		//proceed
		x += len * cos(direction * M_PI / 180);
		y += len * sin(direction * M_PI / 180);
		
		//turn clockwise
		direction -= deg;

	}

	i_x = x;
	i_y = y;

	cout << i_x << endl;
	cout << i_y << endl;

	return 0;
}

Compiler output:
a.cc:3:30: error: 'asin' was not declared in this scope
    3 | static const double M_PI = 6*asin(0.5);
      |                              ^~~~
a.cc: In function 'int main()':
a.cc:21:28: error: 'cos' was not declared in this scope
   21 |                 x += len * cos(direction * M_PI / 180);
      |                            ^~~
a.cc:22:28: error: 'sin' was not declared in this scope
   22 |                 y += len * sin(direction * M_PI / 180);
      |                            ^~~
Language: C++

#include <cmath>
#include <cstdio>

#define calc(x) (x*M_PI/180.0)

using namespace std;

int main()
{
  string str;
  int a, b;
  double x=0, y=0, r=0;

  while(scanf("%d,%d",&a,&b) != EOF && !(a == 0 && b == 0)){
    x += (double)a*sin(calc(r));
    y += (double)a*cos(calc(r));
    r += (double)b;
  }
  printf("%d\n%d\n", (int)x, (int)y);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'string' was not declared in this scope
   10 |   string str;
      |   ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include <cstdio>
  +++ |+#include <string>
    3 |
Language: C++

float x,y,z;d;main(r){for(;~scanf("%d,%d",&r,&d)?y+=r*cos(z),x-=r*sin(z),z-=d/57.3,1:!printf("%d\n%d\n",d=x,r=y););}

Compiler output:
a.cc:1:13: error: 'd' does not name a type
    1 | float x,y,z;d;main(r){for(;~scanf("%d,%d",&r,&d)?y+=r*cos(z),x-=r*sin(z),z-=d/57.3,1:!printf("%d\n%d\n",d=x,r=y););}
      |             ^
a.cc:1:19: error: expected constructor, destructor, or type conversion before '(' token
    1 | float x,y,z;d;main(r){for(;~scanf("%d,%d",&r,&d)?y+=r*cos(z),x-=r*sin(z),z-=d/57.3,1:!printf("%d\n%d\n",d=x,r=y););}
      |                   ^
Language: C++

#include <iostream>
#include <cmath>
#define PI 3.14159265;
#define RAD (PI/180)

using namespace std;

int main() {
	
	int m, angle;
	double x=0, y=0, deg=90;

	while(1) {
		cin >> m >> angle;
		if(m==0&&angle==0)
			break;
		x+=(double)m*cos(deg*RAD);
		y+=(double)m*sin(deg*RAD);
		deg-=angle;
	}

	cout << (int)x << endl << (int)y << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:22: error: expected ')' before ';' token
    3 | #define PI 3.14159265;
      |                      ^
a.cc:4:14: note: in expansion of macro 'PI'
    4 | #define RAD (PI/180)
      |              ^~
a.cc:17:38: note: in expansion of macro 'RAD'
   17 |                 x+=(double)m*cos(deg*RAD);
      |                                      ^~~
a.cc:4:13: note: to match this '('
    4 | #define RAD (PI/180)
      |             ^
a.cc:17:38: note: in expansion of macro 'RAD'
   17 |                 x+=(double)m*cos(deg*RAD);
      |                                      ^~~
a.cc:3:22: error: expected ')' before ';' token
    3 | #define PI 3.14159265;
      |                      ^
a.cc:4:14: note: in expansion of macro 'PI'
    4 | #define RAD (PI/180)
      |              ^~
a.cc:17:38: note: in expansion of macro 'RAD'
   17 |                 x+=(double)m*cos(deg*RAD);
      |                                      ^~~
a.cc:17:33: note: to match this '('
   17 |                 x+=(double)m*cos(deg*RAD);
      |                                 ^
a.cc:4:16: error: expected primary-expression before '/' token
    4 | #define RAD (PI/180)
      |                ^
a.cc:17:38: note: in expansion of macro 'RAD'
   17 |                 x+=(double)m*cos(deg*RAD);
      |                                      ^~~
a.cc:3:22: error: expected ')' before ';' token
    3 | #define PI 3.14159265;
      |                      ^
a.cc:4:14: note: in expansion of macro 'PI'
    4 | #define RAD (PI/180)
      |              ^~
a.cc:18:38: note: in expansion of macro 'RAD'
   18 |                 y+=(double)m*sin(deg*RAD);
      |                                      ^~~
a.cc:4:13: note: to match this '('
    4 | #define RAD (PI/180)
      |             ^
a.cc:18:38: note: in expansion of macro 'RAD'
   18 |                 y+=(double)m*sin(deg*RAD);
      |                                      ^~~
a.cc:3:22: error: expected ')' before ';' token
    3 | #define PI 3.14159265;
      |                      ^
a.cc:4:14: note: in expansion of macro 'PI'
    4 | #define RAD (PI/180)
      |              ^~
a.cc:18:38: note: in expansion of macro 'RAD'
   18 |                 y+=(double)m*sin(deg*RAD);
      |                                      ^~~
a.cc:18:33: note: to match this '('
   18 |                 y+=(double)m*sin(deg*RAD);
      |                                 ^
a.cc:4:16: error: expected primary-expression before '/' token
    4 | #define RAD (PI/180)
      |                ^
a.cc:18:38: note: in expansion of macro 'RAD'
   18 |                 y+=(double)m*sin(deg*RAD);
      |                                      ^~~
Language: C++

#include<iostream>
#include<math>

#define conv 0.0174532925199

using namespace std;

int main()
{
	double x=0.0,y=0.0,m,r,rad=0;
	char a;
	
	for(;;)
	{
		cin >> m >> a >> r ;
		if(m==0 && r==0)
			break;
		x+=m*sin(rad*conv);
		y+=m*cos(rad*conv);
		rad+=r;
	}
	cout << (int)x << endl;
	cout << (int)y << endl;
}

Compiler output:
a.cc:2:9: fatal error: math: No such file or directory
    2 | #include<math>
      |         ^~~~~~
compilation terminated.
Language: C++

/*AOJ 0016*/

#include<iostream>

#define M_PI 3.14159265

using namespace std;

double changeDegToRad(double deg){

	return deg*M_PI/180.0;

}

int main(){

	double x = 0,y = 0;
	double deg = 0,walk = 0;
	double rad = M_PI/2.0;
	while(1){
		scanf("%lf,%lf",&walk,&deg);


		if(deg==0&&walk==0){
			break;
		}

		x += walk * cos(rad);
		y += walk * sin(rad);

		rad -= changeDegToRad(deg);

	}

	cout<<(int)x<<" "<<(int)y<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:29: error: 'cos' was not declared in this scope
   28 |                 x += walk * cos(rad);
      |                             ^~~
a.cc:29:29: error: 'sin' was not declared in this scope
   29 |                 y += walk * sin(rad);
      |                             ^~~
Language: C++

/*AOJ 0016*/

#include<iostream>

#define M_PI 3.14159265

using namespace std;

double changeDegToRad(double deg){

	return deg*M_PI/180.0;

}

int main(){

	double x = 0,y = 0;
	double deg = 0,walk = 0;
	double rad = M_PI/2.0;
	while(1){
		scanf("%lf,%lf",&walk,&deg);


		if(deg==0&&walk==0){
			break;
		}

		x += walk * cos(rad);
		y += walk * sin(rad);

		rad -= changeDegToRad(deg);

	}

	cout<<(int)x<<endl;
	cout<<(int)y<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:29: error: 'cos' was not declared in this scope
   28 |                 x += walk * cos(rad);
      |                             ^~~
a.cc:29:29: error: 'sin' was not declared in this scope
   29 |                 y += walk * sin(rad);
      |                             ^~~
Language: C++

#include<string>
#include<vector>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<sstream>
#include<functional>
#include<map>
#include<set>
#include<cmath>

using namespace std;

int main(){

	double a,b; double c=90; double x=0; double y=0;
	while(scanf("%lf%lf",&a,&b) a || b){

	x+=a*cos(c*M_PI/180);
	y+=a*sin(c*M_PI/180);
	c-=b;

	}

	printf("%d\n %d\n",(int)x,(int)y);


	return 0;

    }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: expected ')' before 'a'
   18 |         while(scanf("%lf%lf",&a,&b) a || b){
      |              ~                     ^~
      |                                    )
a.cc:18:43: error: expected ';' before ')' token
   18 |         while(scanf("%lf%lf",&a,&b) a || b){
      |                                           ^
      |                                           ;
Language: C++

#include <stdio.h>
#include <string.h>

int main(){
double x,y,angle,t,r;
x=0;
y=0;
angle=M_PI/2;
while(1){
scanf("%lf,%lf",&r,&t);
if(r==0&&t==0)break;
x+=r*cos(angle);
y+=r*sin(angle);
angle+=t*M_PI/180;
}
printf("%.0f\n%.0f\n",-x,y);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'M_PI' was not declared in this scope
    8 | angle=M_PI/2;
      |       ^~~~
a.cc:12:6: error: 'cos' was not declared in this scope
   12 | x+=r*cos(angle);
      |      ^~~
a.cc:13:6: error: 'sin' was not declared in this scope; did you mean 'stdin'?
   13 | y+=r*sin(angle);
      |      ^~~
      |      stdin
Language: C++

#include<iostream>
#include<cmath>
#define PI 3.141592653589793
using namespace std;

int main(){
	double x = 0, y = 0;

	int l, a;

	while(scanf_s("%d,%d",l,a) != -1){
		x += l * cos(a * PI / 180);
		y += l * sin(a * PI / 180);
	}

	cout << (int)x << endl << (int)y << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   11 |         while(scanf_s("%d,%d",l,a) != -1){
      |               ^~~~~~~
      |               scanf
Language: C++

#include<iostream>
#include<math.h>
#include<cstdio>
#define M_PI 3.14159265358979 /* 円周率 */

using namespace std;

int main(){
	int len, deg;
	int deg_now = 90;
	double x = 0, y = 0;

	while (1){
		scanf_s("%d,%d", &len, &deg);
		if (len == 0 && deg == 0) break;
		x += len*cos(deg_now / 180.0 * M_PI);
		y += len*sin(deg_now / 180.0 * M_PI);
		deg_now += deg;
	}

	printf("%d\n%d\n", (int)x, (int)y);

	return 0;

}

Compiler output:
a.cc:4:9: warning: "M_PI" redefined
    4 | #define M_PI 3.14159265358979 /* 円周率 */
      |         ^~~~
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
/usr/include/math.h:1121:10: note: this is the location of the previous definition
 1121 | # define M_PI           3.14159265358979323846  /* pi */
      |          ^~~~
a.cc: In function 'int main()':
a.cc:14:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   14 |                 scanf_s("%d,%d", &len, &deg);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include<iostream>
#include<math.h>
#include<stdio.h>
#define M_PI 3.14159265358979 /* 円周率 */

using namespace std;

int main(){
	int len, deg;
	int deg_now = 90;
	double x = 0, y = 0;

	while (1){
		scanf_s("%d,%d", &len, &deg);
		if (len == 0 && deg == 0) break;
		x += len*cos(deg_now / 180.0 * M_PI);
		y += len*sin(deg_now / 180.0 * M_PI);
		deg_now += deg;
	}

	printf("%d\n%d\n", (int)x, (int)y);

	return 0;

}

Compiler output:
a.cc:4:9: warning: "M_PI" redefined
    4 | #define M_PI 3.14159265358979 /* 円周率 */
      |         ^~~~
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
/usr/include/math.h:1121:10: note: this is the location of the previous definition
 1121 | # define M_PI           3.14159265358979323846  /* pi */
      |          ^~~~
a.cc: In function 'int main()':
a.cc:14:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   14 |                 scanf_s("%d,%d", &len, &deg);
      |                 ^~~~~~~
      |                 scanf
Language: Java

import java.io.*;
import java.util.regex.Pattern;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        Pattern p=Pattern.compile("the|this|that");
        String str;
        try{
            while((str=br.readLine())!=null){
                char[] ch=str.toCharArray();
                for(int j=0;!pattern.matcher(str).find()&&j<26;j++){
                    for(int i=0;i<ch.length;i++){
                        if('a'<=ch[i]&&ch[i]<'z'){
                            ch[i]++;
                        }else if(ch[i]=='z'){
                            ch[i]='a';
                        }
                    }
                    if(p.matcher(String.valueOf(ch)).find()){
                        break;
                    }
                }
                System.out.println(ch);
            }
        }catch(Exception e){
        }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
                for(int j=0;!pattern.matcher(str).find()&&j<26;j++){
                             ^
  symbol:   variable pattern
  location: class Main
1 error
Language: Java

import java.io.*;
import java.util.regex.Pattern;

public class Main {
    public static void main(String[] args){
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        Pattern p=Pattern.compile("the|this|that");
        String str;
        
            while((str=br.readLine())!=null){
                char[] ch=str.toCharArray();
                for(int j=0;!p.matcher(str).find()&&j<26;j++){
                    for(int i=0;i<ch.length;i++){
                        if('a'<=ch[i]&&ch[i]<'z'){
                            ch[i]++;
                        }else if(ch[i]=='z'){
                            ch[i]='a';
                        }
                    }
                    if(p.matcher(String.valueOf(ch)).find()){
                        break;
                    }
                }
                System.out.println(ch);
            }
        
    }
}

Compiler output:
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
            while((str=br.readLine())!=null){
                                  ^
1 error
Language: Java

import java.io.*;
import java.util.regex.Pattern;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        Pattern p=Pattern.compile("the|this|that");
        String str;
        
            while((str=br.readLine())!=null){
                char[] ch=str.toCharArray();
                for(int j=0;!p.matcher((String.valueOf(ch)).find()&&j<26;j++){
                    for(int i=0;i<ch.length;i++){
                        if('a'<=ch[i]&&ch[i]<'z'){
                            ch[i]++;
                        }else if(ch[i]=='z'){
                            ch[i]='a';
                        }
                    }
                    if(p.matcher(String.valueOf(ch)).find()){
                        break;
                    }
                }
                System.out.println(ch);
            }
        
    }
}

Compiler output:
Main.java:12: error: ')' or ',' expected
                for(int j=0;!p.matcher((String.valueOf(ch)).find()&&j<26;j++){
                                                                        ^
1 error
Language: Java

mport java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		while (scn.hasNext()) {
			String str = scn.nextLine();
			int len = str.length();
			a:
			while (true) {
				String nstr = new String();
				for (int i = 0; i < len; i++) {
					int n = str.charAt(i); //??¢???????????????????????????
					if (n > 96 && n < 122) {
						n = n + 1; //?¬??????¢??????????????????
					} else if (n == 122) {
						n = 97; //z??????a?????????
					}
					nstr = nstr + (char)n; //???????????????
				}
				str = nstr;
				String[] words = str.split(" ");
				for (int i = 0; i < words.length; i++) {
					//??????????°?????????????????????????
					if (words[i].charAt(words[i].length() - 1) == '.') {
						words[i] = words[i].substring(0, words[i].length() - 2);
					}
					//the,this,that???????????°????????????
					if (words[i].equals("the") || words[i].equals("this") ||
							words[i].equals("that")) break a;
				}
			}
			System.out.println(str);
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;
public class Mai {
	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			String moji = sc.nextLine();
			char[] narabi = moji.toCharArray();
			String temp = "";
			for(int j = 0; j < 26; j++){
				for(int i = 0; i < narabi.length; i++){
					if('a' <= narabi[i] && narabi[i] <= 'z')
						if(narabi[i] == 'z')
							narabi[i] = 'a';
						else
							narabi[i]++;
				}
				temp = String.valueOf(narabi);
				if(temp.contains("that") || temp.contains("this") || temp.contains("the")){
					System.out.println(temp);
					break;

				}
			}

		}

	}
}

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

import java.util.Scanner;
public class Mai {
	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			String moji = sc.nextLine();
			char[] n = moji.toCharArray();
			String temp = "";
			for(int j = 0; j < 26; j++){
				for(int i = 0; i < n.length; i++){
					if('a' <= n[i] && n[i] <= 'z')
						if(n[i] == 'z')
							n[i] = 'a';
						else
							n[i]++;
				}
				temp = String.valueOf(n);
				if(temp.contains("that") || temp.contains("this") || temp.contains("the")){
					System.out.println(temp);
					break;

				}
			}
		}
	}
}

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

import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner sc = null;
		try {
			sc = new Scanner(System.in);
			char[] originalCharactors = sc.nextLine().toCharArray();

			// ずらした文字数を調べる
			int restrationCode = -1;
			for (int i = 0; i < originalCharactors.length - 1; i++) {
					int code = originalCharactors[0] - 't';
					if (isRestrationCode(code, originalCharactors, i)) {
						restrationCode = code;
						break;
				}
			}
			// 復元する
			char[] tartgetCharactors = displace(restrationCode,
					originalCharactors);

			// 出力する
			print(tartgetCharactors);

		} finally {
			sc.close();
		}
	}

	private static boolean isRestrationCode(int code, char[] cArrays, int start) {

		if ((cArrays[start + 1] - code) == 'h') {
			if ((cArrays[start + 2] - code) == 'e') {
				return true;
			} else if ((cArrays[start + 2] - code) == 'i') {
				if ((cArrays[start + 3] - code) == 's') {
					return true;
				} else if ((cArrays[start + 2] - code) == 'a') {
					if ((cArrays[start + 3] - code) == 't') {
						return true;
					}
				}
			}
		}
		return false;
	}

	private static char[] displace(int code, char[] originalCharactors) {

		char[] targetCharactors = new char[originalCharactors.length];

		int i = 0;
		char piriod = '.';
		for (char c : originalCharactors) {
			if (piriod != c) {
				c -= code;
			}
			targetCharactors[i] = (char) c;
			i++;
		}
		return targetCharactors;
	}

	private static void print(char[] cArrays) {

		StringBuilder sb = new StringBuilder();
		int i = 0;
		for (char c : cArrays) {
			if(c==28){
				sb.append(" ");
			}else {
				sb.append(c);
			}
			i++;
		}
		System.out.println(sb.toString());
	}

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

class Main {

	public static void main(String[] args) {

		Scanner sc = null;
		try {
			while(sc.hasNextLine()){
			sc = new Scanner(System.in);
			char[] originalCharactors = sc.nextLine().toCharArray();

			// ずらした文字数を調べる
			int restrationCode = -1;
			for (int i = 0; i < originalCharactors.length - 1; i++) {
					int code = originalCharactors[0] - 't';
					if (isRestrationCode(code, originalCharactors, i)) {
						restrationCode = code;
						break;
				}
			}
			// 復元する
			char[] tartgetCharactors = displace(restrationCode,
					originalCharactors);

			// 出力する
			print(tartgetCharactors);
			}
		} finally {
			sc.close();
		}
	}

	private static boolean isRestrationCode(int code, char[] cArrays, int start) {

		if ((cArrays[start + 1] - code) == 'h') {
			if ((cArrays[start + 2] - code) == 'e') {
				return (cArrays[start + 3] - code) == 28;
			} else if ((cArrays[start + 2] - code) == 'i') {
				if ((cArrays[start + 3] - code) == 's') {
					return (cArrays[start + 4] - code) == 28;
				} else if ((cArrays[start + 2] - code) == 'a') {
					if ((cArrays[start + 3] - code) == 't') {
						return (cArrays[start + 4] - code) == 28;
					}
				}
			}
		}
		return false;
	}

	private static char[] displace(int code, char[] originalCharactors) {

		char[] targetCharactors = new char[originalCharactors.length];

		int i = 0;
		char piriod = '.';
		for (char c : originalCharactors) {
			if (piriod != c) {
				c -= code;
			}
			targetCharactors[i] = (char) c;
			i++;
		}
		return targetCharactors;
	}

	private static void print(char[] cArrays) {

		StringBuilder sb = new StringBuilder();
		int i = 0;
		for (char c : cArrays) {
			System.out.println((int) c);
			if (c == 28 || c == 32) {
				sb.append(" ");
			} else {
				sb.append(c);
			}
			i++;
		}
		System.out.println(sb.toString());
	}
}

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

import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner sc = null;
		try {
			sc = new Scanner(System.in);
			while (sc.hasNextLine()) {
				char[] originalCharactors = sc.nextLine().toCharArray();

				// ずらした文字数を調べる
				int restrationCode = 0;
				for (int i = 0; i < originalCharactors.length - 1; i++) {
					int code = originalCharactors[i] - 't';
					if (isRestrationCode(code, originalCharactors, i)) {
						restrationCode = code;
						break;
					}
				}
				// 復元する
				char[] tartgetCharactors = displace(restrationCode,
						originalCharactors);

				// 出力する
				print(tartgetCharactors);
			}
		} finally {
			sc.close();
		}
	}

	private static boolean isRestrationCode(int code, char[] cArrays, int start) {

		if ((cArrays[start + 1] - code) == 'h') {
			if ((cArrays[start + 2] - code) == 'e') {
				return true;
			} else if ((cArrays[start + 2] - code) == 'i') {
				if ((cArrays[start + 3] - code) == 's') {
					return true;
				}
			} else if ((cArrays[start + 2] - code) == 'a') {
				if ((cArrays[start + 3] - code) == 't') {
					return true;
				}
			}
		}

		return false;
	}

	private static char[] displace(int code, char[] originalCharactors) {

		char[] targetCharactors = new char[originalCharactors.length];

		int i = 0;
		for (char c : originalCharactors) {
			if (c >= 97 && c <= 122) {
				c -= code;
			}
			targetCharactors[i] = (char) c;
			i++;
		}
		return targetCharactors;
	}

	private static void print(char[] cArrays) {

		StringBuilder sb = new StringBuilder();
		for (char c : cArrays) {
			sb.append(c);
		}
		System.out.println(sb.toString());
	}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
	private static int[][] charaint;
	public static void main(String[]args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		while(str!=null){
			String[]wordstr=str.split(" ",0);
			for(int i=0;i<wordstr.length;i++){
				char[][]chara=new char[wordstr.length][wordstr[i].length()];
				charaint=new int[wordstr.length][wordstr[i].length()];
				chara[i]=wordstr[i].toCharArray();
				for(int j=0;j<chara[i].length;j++){
					charaint[i][j]=(int)chara[i][j];
				}
			}
			int shift=Search(charaint);
			Print(shift,charaint);
			str=br.readLine();
		}
	}
	private static int Search(int[][]ch){
		for(int i=0;i<ch.length;i++){
			if(ch[i].length==3){
				for(int k=0;k<26;k++){
					int a=97+((ch[i][0]-97+k)%26);
					int b=97+((ch[i][1]-97+k)%26);
					int c=97+((ch[i][2]-97+k)%26);
					if(a==116&&b==104&&c==101){
						return k;
					}
				}
			}else if(ch[i].length==4){
				for (int k=0;k<26;k++){
					int a=97+((ch[i][0]-97+k)%26);
					int b=97+((ch[i][1]-97+k)%26);
					int c=97+((ch[i][2]-97+k)%26);
					int d=97+((ch[i][3]-97+k)%26);
					if((a==116&&b==104&&c==105&&d==115)||(a==116&&b==104&&c==97&&d==116)){
						return k;
					}
				}
			}
		}
	}
	private static void Print(int n,int[][]ch){
		for (int i=0;i<ch.length;i++){
			for (int j=0;j<ch[i].length;j++){
				System.out.print((char)(97+((ch[i][j]-97+n)%26)));
			}
			if(i!=ch.length-1){
				System.out.print(" ");
			}
		}
	}
}

Compiler output:
Main.java:47: error: missing return statement
	}
	^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){

		while(scan.hasNext()){
			String line = scan.nextLine();
			for(int i = 0; i < 26; i++){
				String now = "";
				StringBuffer sb = new StringBuffer();
				for(int j = 0; j < line.length(); j++){
					char cz = line.charAt(j);
					if(cz >= 'a' && cz <= 'z'){
						char cs = (char)('a' + (cz - 'a' - i) % 26);
					} else{
						char cs = cz;
					}
					sb.append(cs);
				}
				now = sb.toString();
				boolean flag = false;
				for(int j = 0; j < now.length()- 2; j++){
					if(now.charAt(j) == 't' && now.charAt(j + 1) == 'h'
						&& now.charAt(j + 2) == 'e'){
						flag = true;
					}
				}
				for(int j = 0; j < now.length() - 3; j++){
					if(now.charAt(j) == 't' && now.charAt(j + 1) == 'h'){
						if(now.charAt(j + 2) == 'i'
							&& now.charAt(j + 3) == 's'){
							flag = true;
						}
						if(now.charAt(j + 2) == 'a'
							&& now.charAt(j + 3) == 't'){
							flag = true;
						}
					}
				}
				if(flag){
					System.out.printf("%s\n", now);
					break;
				}
			}
		}
}

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

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){

		while(scan.hasNext()){
			String line = scan.nextLine();
			for(int i = 0; i < 26; i++){
				String now = "";
				StringBuffer sb = new StringBuffer();
				for(int j = 0; j < line.length(); j++){
					char cz = line.charAt(j);
					if(cz >= 'a' && cz <= 'z'){
						char cs = (char)('a' + (cz - 'a' + i) % 26);
					} else{
						char cs = cz;
					}
					sb.append(cs);
				}
				now = sb.toString();
				boolean flag = false;
				for(int j = 0; j < now.length()- 2; j++){
					if(now.charAt(j) == 't' && now.charAt(j + 1) == 'h'
						&& now.charAt(j + 2) == 'e'){
						flag = true;
					}
				}
				for(int j = 0; j < now.length() - 3; j++){
					if(now.charAt(j) == 't' && now.charAt(j + 1) == 'h'){
						if(now.charAt(j + 2) == 'i'
							&& now.charAt(j + 3) == 's'){
							flag = true;
						}
						if(now.charAt(j + 2) == 'a'
							&& now.charAt(j + 3) == 't'){
							flag = true;
						}
					}
				}
				if(flag){
					System.out.printf("%s\n", now);
					break;
				}
			}
		}
}

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

import java.util.*;

public class MainA{
	private static final Scanner scan = new Scanner(System.in);
	static int dd = 0;

	public static void main(String[] args){
		String theS = "the";
		String thisS = "this";
		String thatS = "that";
		String[] theZ = changeCip(theS);
		String[] thisZ = changeCip(thisS);
		String[] thatZ = changeCip(thatS);
		/* for(int i = 0; i < 26; i++){
			System.out.printf("%s\n", theZ[i]);
		} */
		String cipLine = readCip();
		boolean flag = false;
		boolean flag2 = false;
		flag = seekWord(cipLine, theZ);
		flag2 = seekWord(cipLine, thisZ, thatZ);
		if(flag == true || flag2 == true){
			String stLine = backCip(cipLine);
			System.out.printf("%s\n", stLine);
		}
	}

	public static String[] changeCip(String str){
		String[] changeZ = new String[26];
		for(int h = 0; h < 26; h++){
			StringBuffer sb = new StringBuffer();
			for(int i = 0; i < str.length(); i++){
				char cs = str.charAt(i);
				char cz = (char)('a' + (cs - 'a' + h) % 26);
				sb.append(cz);
			}
			changeZ[h] = sb.toString();
		}
		return changeZ;
	}

	public static String readCip(){
		String line = scan.nextLine();
		return line;
	}

	public static boolean seekWord(String str, String[] stArr1){
		boolean flag = false;
		for(int i = 0; i < str.length() - 2; i++){
			char ch = str.charAt(i);
			char ch1 = str.charAt(i + 1);
			char ch2 = str.charAt(i + 2);
			for(int j = 0; j < 26; j++){
				char cz =stArr1[j].charAt(0);
				char cz1 = stArr1[j].charAt(1);
				char cz2 = stArr1[j].charAt(2);
				if(ch == cz && ch1 == cz1 && ch2 == cz2){
					dd = j;
					flag = true;
					break;
				}
			}
		}
		return flag;
	}
	public static boolean seekWord(String str, String[] stArr1, String[] stArr2){
		boolean flag = false;
		for(int i = 0; i < str.length() - 3; i++){
			char ch = str.charAt(i);
			char ch1 = str.charAt(i + 1);
			char ch2 = str.charAt(i + 2);
			char ch3 = str.charAt(i + 3);
			for(int j = 0; j < 26; j++){
				char cx = stArr1[j].charAt(0);
				char cx1 = stArr1[j].charAt(1);
				char cx2 = stArr1[j].charAt(2);
				char cx3 = stArr1[j].charAt(3);
				char cy = stArr2[j].charAt(0);
				char cy1 = stArr2[j].charAt(1);
				char cy2 = stArr2[j].charAt(2);
				char cy3 = stArr2[j].charAt(3);
				if(ch == cx && ch1 == cx1 && ch2 == cx2 && ch3 == cx3){
					dd = j;
					flag = true;
					break;
				}
				if(ch == cy && ch1 == cy1 && ch2 == cy2 && ch3 == cy3){
					dd = j;
					flag = true;
					break;
				}
			}
		}
		return flag;
	}

	public static String backCip(String str){
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < str.length() ; i++){
			char cz = str.charAt(i);
			if(cz >= 'a' && cz <= 'z'){
				char cs = (char)('a' + (cz - dd - 'a') % 26);
				sb.append(cs);
			} else{
				char cs = cz;
				sb.append(cs);
			}
		}
		String back = sb.toString();
		return back;
	}
}

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

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		
		while(scan.hasNext()){
			String cipLine = scan.nextLine();
			for(int i = 0; i < 26; i++){
				StringBuffer sb = new StringBuffer();
				for(int j = 0; j < cipLine.length(); j++){
					char cz = cipLine.charAt(j);
					if(cz >= 'a' && cz <= 'z'){
						sb.append((char)('a' + (cz - 'a' + i) % 26));
					} else{
						sb.append(cz);
					}
				}
				String now = sb.toString();
				boolean flag = false;
				for(int j = 0; j < now.length() - 2; j++){
					if(j > 0){
						char cm = now.charAt(j - 1);
						if(cm >= 'a' && cm <= 'z'){
							flag = false;
							continue;
						}
						char cs = now.chatAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						if(cs == 't' && cs1 == 'h' && cs2 == 'e'){
							flag = true;
							break;
						}
					} else{
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.chatAt(j + 2);
						if(cs == 't' && cs1 == 'h' && cs2 == 'e'){
							flag = true;
							break;
						}
					}
				}
				for(int j = 0; now.length() - 3; j++){
					if(j > 0){
						char cm = now.chatAt(j - 1);
						if(cm >= 'a' && cm <= 'z'){
							flag = false;
							continue;
						}
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						char cs3 = now.charAt(j + 3);
						if(cs == 't' && cs1 == 'h'){
							if(cs2 == 'i' && cs3 == 's'){
								flag = true;
								break;
							}
							if(cs2 == 'a' && cs3 == 't'){
								flag = true;
								break;
							}
						}
					} else{
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						char cs3 = now.charAt(j + 3);
						if(cs == 't' && cs1 == 'h'){
							if(cs2 == 'i' && cs3 == 's'){
								flag = true;
								break;
							}
							if(cs2 == 'a' && cs3 == 't'){
								flag = true;
								break;
							}
						}
					}
				}
				if(flag){
					System.out.printf("%s\n", now);
					break;
				}
			}
		}
	}
}

Compiler output:
Main.java:29: error: cannot find symbol
						char cs = now.chatAt(j);
						             ^
  symbol:   method chatAt(int)
  location: variable now of type String
Main.java:39: error: cannot find symbol
						char cs2 = now.chatAt(j + 2);
						              ^
  symbol:   method chatAt(int)
  location: variable now of type String
Main.java:46: error: incompatible types: int cannot be converted to boolean
				for(int j = 0; now.length() - 3; j++){
				                            ^
Main.java:48: error: cannot find symbol
						char cm = now.chatAt(j - 1);
						             ^
  symbol:   method chatAt(int)
  location: variable now of type String
4 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		
		while(scan.hasNext()){
			String cipLine = scan.nextLine();
			for(int i = 0; i < 26; i++){
				StringBuffer sb = new StringBuffer();
				for(int j = 0; j < cipLine.length(); j++){
					char cz = cipLine.charAt(j);
					if(cz >= 'a' && cz <= 'z'){
						sb.append((char)('a' + (cz - 'a' + i) % 26));
					} else{
						sb.append(cz);
					}
				}
				String now = sb.toString();
				boolean flag = false;
				for(int j = 0; j < now.length() - 2; j++){
					if(j > 0){
						char cm = now.charAt(j - 1);
						if(cm >= 'a' && cm <= 'z'){
							flag = false;
							continue;
						}
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						if(cs == 't' && cs1 == 'h' && cs2 == 'e'){
							flag = true;
							break;
						}
					} else{
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						if(cs == 't' && cs1 == 'h' && cs2 == 'e'){
							flag = true;
							break;
						}
					}
				}
				for(int j = 0; now.length() - 3; j++){
					if(j > 0){
						char cm = now.charAt(j - 1);
						if(cm >= 'a' && cm <= 'z'){
							flag = false;
							continue;
						}
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						char cs3 = now.charAt(j + 3);
						if(cs == 't' && cs1 == 'h'){
							if(cs2 == 'i' && cs3 == 's'){
								flag = true;
								break;
							}
							if(cs2 == 'a' && cs3 == 't'){
								flag = true;
								break;
							}
						}
					} else{
						char cs = now.charAt(j);
						char cs1 = now.charAt(j + 1);
						char cs2 = now.charAt(j + 2);
						char cs3 = now.charAt(j + 3);
						if(cs == 't' && cs1 == 'h'){
							if(cs2 == 'i' && cs3 == 's'){
								flag = true;
								break;
							}
							if(cs2 == 'a' && cs3 == 't'){
								flag = true;
								break;
							}
						}
					}
				}
				if(flag){
					System.out.printf("%s\n", now);
					break;
				}
			}
		}
	}
}

Compiler output:
Main.java:46: error: incompatible types: int cannot be converted to boolean
				for(int j = 0; now.length() - 3; j++){
				                            ^
1 error
Language: Java

import java.util.*;

public class Vol0_17aa{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		
		while(scan.hasNext()){
			String cipLine = scan.nextLine();
			for(int i = 0; i < 26; i++){
				StringBuffer sb = new StringBuffer();
				for(int j = 0; j < cipLine.length(); j++){
					char cz = cipLine.charAt(j);
					if(cz >= 'a' && cz <= 'z'){
						sb.append((char)('a' + (cz - 'a' + i) % 26));
					} else{
						sb.append(cz);
					}
				}
				String now = sb.toString();
				boolean flag = false;
				for(int j = 0; j < now.length() - 2; j++){
					if(j > 0){
						char cm = now.charAt(j - 1);
						if(cm >= 'a' && cm <= 'z'){
							flag = false;
							continue;
						}
					}
					char cs = now.charAt(j);
					char cs1 = now.charAt(j + 1);
					char cs2 = now.charAt(j + 2);
					if(cs == 't' && cs1 == 'h' && cs2 == 'e'){
						flag = true;
						break;
					}

				}
				for(int j = 0;j < now.length() - 3; j++){
					if(j > 0){
						char cm = now.charAt(j - 1);
						if(cm >= 'a' && cm <= 'z'){
							flag = false;
							continue;
						}
					}
					char cs = now.charAt(j);
					char cs1 = now.charAt(j + 1);
					char cs2 = now.charAt(j + 2);
					char cs3 = now.charAt(j + 3);
					if(cs == 't' && cs1 == 'h'){
						if(cs2 == 'i' && cs3 == 's'){
							flag = true;
							break;
						}
						if(cs2 == 'a' && cs3 == 't'){
							flag = true;
							break;
						}
					}

				}
				if(flag){
					System.out.printf("%s\n", now);
					break;
				}
			}
		}
	}
}

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

import java.io.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String text = sc.next();
        String retext = "";
        for(int i=0; i<28; i++){
        	retext = retext+String.valueof((char)(text.charAt(i) -no));
        	if(retext.indexof("the") !=1){
        		System.out.println(retext);
        		break;
        		}else if(retext.indexof("this") !=1){
        		System.out.println(retext);
        		break;
        		}else if(retext.indexof("that") !=1){
        		System.out.println(retext);
        		break;
        		}else{
        		}
        	}
        }
       }

Compiler output:
Main.java:10: error: cannot find symbol
        	retext = retext+String.valueof((char)(text.charAt(i) -no));
        	                                                      ^
  symbol:   variable no
  location: class Main
Main.java:10: error: cannot find symbol
        	retext = retext+String.valueof((char)(text.charAt(i) -no));
        	                      ^
  symbol:   method valueof(char)
  location: class String
Main.java:11: error: cannot find symbol
        	if(retext.indexof("the") !=1){
        	         ^
  symbol:   method indexof(String)
  location: variable retext of type String
Main.java:14: error: cannot find symbol
        		}else if(retext.indexof("this") !=1){
        		               ^
  symbol:   method indexof(String)
  location: variable retext of type String
Main.java:17: error: cannot find symbol
        		}else if(retext.indexof("that") !=1){
        		               ^
  symbol:   method indexof(String)
  location: variable retext of type String
5 errors
Language: Java

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

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

import java.util.ArrayList;
import java.util.List;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	static char cnvChar[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
	
	public static void main (String[] args) throws java.lang.Exception
	{
		
		//文字列読込み
		Scanner sc = new Scanner(System.in);

		//取得
		String scLline  = sc.nextLine();	//1行取得
		//System.out.println(scLline);	//debug
		
		//分割
		String[] inTxt = scLline.split("[\\s]+");	//空白で区切る
		int len = inTxt.length;
		int shift;
		
		
		for (int i = 0; i < len; i++) {
			int[] chrs = new int[4];
			int[] diff = new int[3];
			for (int j= 0; j < inTxt[i].length(); j++) {
				if (j > 3) {
					continue;	//4文字以上はいらない
				}
				chrs[j] = cnvEtoN(inTxt[i].charAt(j));
				//System.out.print(chrs[j]);
			}
			//System.out.print(" ");
			
			diff[0] = chrs[1] - chrs[0];
			diff[1] = chrs[2] - chrs[1];
			diff[2] = chrs[3] - chrs[2];

			//the	21,9,6	-12, -3
			//                       15, 24
			//this	21,9,10,20	-12,  1, 10
			//                       15, -26, -17
			//that	21,9,1,21	-12,-8, 20
			//                       15, 19, -7

			// T>Hか
			boolean ok = false;
			if (diff[0] = -12 || diff[0] = 15) {
				if (diff[1] == -3 || diff[1] == 24) {
					//the
					ok = true;	
				}
				if ((diff[1] == 1 || diff[1] == -26) && 
				    (diff[2] == 10 || diff[2] == -17)) {
					//this
					ok = true;	
				}
				if ((diff[1] == -8 || diff[1] == 19) && 
				    (diff[2] == 20 || diff[2] == -7)) {
					//that
					ok = true;	
				}
			}
			if (ok == true) {
				int result = chrs[0] - 19;

				//System.out.print("[");
				//System.out.print(inTxt[i] + ">");

				//System.out.print(cnvNtoE(chrs[0] - result));
				//System.out.print(cnvNtoE(chrs[1] - result));
				//System.out.print(cnvNtoE(chrs[2] - result));
				//System.out.print(cnvNtoE(chrs[3] - result));
				
				//System.out.println(result + "]");
				
				
				//答え出力
				for (int k = 0; k < scLline.length(); k++) {
					char tmp = scLline.charAt(k);

					if (cnvEtoN(tmp) > 0) {
						char res = cnvNtoE(cnvEtoN(tmp) - result);
						System.out.print(res);
					} else {
						System.out.print(tmp);
					}
				}
				System.out.println("");
				return;
				
			}

		}
		
	}
	
	public static char cnvNtoE(int val) {
		if (val > 26) {
			return cnvChar[val - 26];
		}
		if (val < 0) {
			return cnvChar[val + 26];
		}
		return cnvChar[val];
	}
	
	public static int cnvEtoN(char val) {
		try {
			for (int i = 0; i < cnvChar.length; i++) {
				if (cnvChar[i] == val) {
					return i;
				}
			}
			return -1;
		} catch (Exception ex) {
			return -1;
		}
	}
}


Compiler output:
Main.java:56: error: bad operand types for binary operator '||'
			if (diff[0] = -12 || diff[0] = 15) {
			                  ^
  first type:  int
  second type: int
Main.java:56: error: incompatible types: int cannot be converted to boolean
			if (diff[0] = -12 || diff[0] = 15) {
			            ^
2 errors
Language: Java

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

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

import java.util.ArrayList;
import java.util.List;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	static char cnvChar[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
	
	public static void main (String[] args) throws java.lang.Exception
	{
		
		//文字列読込み
		Scanner sc = new Scanner(System.in);

		//取得
		String scLline  = sc.nextLine();	//1行取得
		//System.out.println(scLline);	//debug
		
		//分割
		String[] inTxt = scLline.split("[\\s]+");	//空白で区切る
		int len = inTxt.length;
		int shift;
		
		
		for (int i = 0; i < len; i++) {
			int[] chrs = new int[4];
			int[] diff = new int[3];
			for (int j= 0; j < inTxt[i].length(); j++) {
				if (j > 3) {
					continue;	//4文字以上はいらない
				}
				chrs[j] = cnvEtoN(inTxt[i].charAt(j));
				//System.out.print(chrs[j]);
			}
			//System.out.print(" ");
			
			diff[0] = chrs[1] - chrs[0];
			diff[1] = chrs[2] - chrs[1];
			diff[2] = chrs[3] - chrs[2];

			//the	21,9,6	-12, -3
			//                       15, 24
			//this	21,9,10,20	-12,  1, 10
			//                       15, -26, -17
			//that	21,9,1,21	-12,-8, 20
			//                       15, 19, -7

			// T>Hか
			boolean ok = false;
			if (diff[0] = -12 || diff[0] = 15) {
				if (diff[1] == -3 || diff[1] == 24) {
					//the
					ok = true;	
				}
				if ((diff[1] == 1 || diff[1] == -26) && (diff[2] == 10 || diff[2] == -17)) {
					//this
					ok = true;	
				}
				if ((diff[1] == -8 || diff[1] == 19) && (diff[2] == 20 || diff[2] == -7)) {
					//that
					ok = true;	
				}
			}
			if (ok == true) {
				int result = chrs[0] - 19;

				//System.out.print("[");
				//System.out.print(inTxt[i] + ">");

				//System.out.print(cnvNtoE(chrs[0] - result));
				//System.out.print(cnvNtoE(chrs[1] - result));
				//System.out.print(cnvNtoE(chrs[2] - result));
				//System.out.print(cnvNtoE(chrs[3] - result));
				
				//System.out.println(result + "]");
				
				
				//答え出力
				for (int k = 0; k < scLline.length(); k++) {
					char tmp = scLline.charAt(k);

					if (cnvEtoN(tmp) > 0) {
						char res = cnvNtoE(cnvEtoN(tmp) - result);
						System.out.print(res);
					} else {
						System.out.print(tmp);
					}
				}
				System.out.println("");
				return;
				
			}

		}
		
	}
	
	public static char cnvNtoE(int val) {
		if (val > 26) {
			return cnvChar[val - 26];
		}
		if (val < 0) {
			return cnvChar[val + 26];
		}
		return cnvChar[val];
	}
	
	public static int cnvEtoN(char val) {
		try {
			for (int i = 0; i < cnvChar.length; i++) {
				if (cnvChar[i] == val) {
					return i;
				}
			}
			return -1;
		} catch (Exception ex) {
			return -1;
		}
	}
}


Compiler output:
Main.java:56: error: bad operand types for binary operator '||'
			if (diff[0] = -12 || diff[0] = 15) {
			                  ^
  first type:  int
  second type: int
Main.java:56: error: incompatible types: int cannot be converted to boolean
			if (diff[0] = -12 || diff[0] = 15) {
			            ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.regex.Pattern;

public class Test{
	public static void main(String[] args){
		Pattern pattern = Pattern.compile("this|that|the");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		try{
			while ((buffer = br.readLine()) != null) {
				//暗号解読部
				char[] cipher = buffer.toCharArray();

				//暗号解読に正解していれば、解読文を表示
				//全ての文字を、ひとつ後ろの文字にずらす(例：a→b,z→a)
				for(int i=0;!pattern.matcher(String.valueOf(cipher)).find() & i < 25;i++){
					for(int j=0;j < cipher.length;j++){
						if(97 <= cipher[j] && cipher[j] <= 121){
							cipher[j]++;
						}else if(cipher[j] == 122){
							cipher[j] = 97;
						}
					}
				}
				System.out.println(cipher);
			}
		}catch(IOException e){
			System.out.println(e);
		}
	}
}

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