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

import java.io.*;

class Main{
	public static void main(String[] args){
		int a,b,sum,digits;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(str=in.readLine()!=EOF){
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[1]);
			b=Integer.parseInt(num[2]);
			sum=a+b;
			while(sum/10!=0){
				digits++;
			}
			System.out.println(digits);
		}
	}

}

Compiler output:
Main.java:9: error: cannot find symbol
		while(str=in.readLine()!=EOF){
		                         ^
  symbol:   variable EOF
  location: class Main
Main.java:9: error: incompatible types: String cannot be converted to boolean
		while(str=in.readLine()!=EOF){
		         ^
2 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		int a,b,sum,digits;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(str=in.readLine()!=\0){
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[1]);
			b=Integer.parseInt(num[2]);
			sum=a+b;
			while(sum/10!=0){
				digits++;
			}
			System.out.println(digits);
		}
	}

}

Compiler output:
Main.java:9: error: illegal character: '\'
		while(str=in.readLine()!=\0){
		                         ^
1 error
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		int a,b,sum,digits;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(str=in.readLine()!=null){
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[1]);
			b=Integer.parseInt(num[2]);
			sum=a+b;
			while(sum/10!=0){
				digits++;
			}
			System.out.println(digits);
		}
	}

}

Compiler output:
Main.java:9: error: incompatible types: boolean cannot be converted to String
		while(str=in.readLine()!=null){
		                       ^
Main.java:9: error: incompatible types: String cannot be converted to boolean
		while(str=in.readLine()!=null){
		         ^
2 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		int a,b,sum,digits;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while((str=in.readLine())!=null){
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[1]);
			b=Integer.parseInt(num[2]);
			sum=a+b;
			while(sum/10!=0){
				digits++;
			}
			System.out.println(digits);
		}
	}

}

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

import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while((str=in.readLine())!=null&&i<=200){
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[1]);
			b=Integer.parseInt(num[2]);
			sum=a+b;
			while(sum=sum/10!=0){
				digits++;
			}
			System.out.println(digits);
			i++;
		}
	}

}

Compiler output:
Main.java:16: error: incompatible types: boolean cannot be converted to int
			while(sum=sum/10!=0){
			                ^
Main.java:16: error: incompatible types: int cannot be converted to boolean
			while(sum=sum/10!=0){
			         ^
2 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if(str=in.readLine()!=null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[1]);
			b=Integer.parseInt(num[2]);
			sum=a+b;
			while((sum=sum/10)!=0){
				digits++;
			}
			System.out.println(digits);
			i++;
		}
	}

}

Compiler output:
Main.java:11: error: incompatible types: boolean cannot be converted to String
			if(str=in.readLine()!=null)
			                    ^
Main.java:11: error: incompatible types: String cannot be converted to boolean
			if(str=in.readLine()!=null)
			      ^
2 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if((str=in.readLine())!=EOF)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		}
	}

}

Compiler output:
Main.java:11: error: cannot find symbol
			if((str=in.readLine())!=EOF)
			                        ^
  symbol:   variable EOF
  location: class Main
1 error
Language: Java

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

class Main {

    public static void main(String[] a){

    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String[] input = br.readLine().split("\\s");

    	int a = Integer.parseInt(input[0]);
    	int b = Integer.parseInt(input[0]);
    	int sum = a + b;
    	String str = String.valueOf(sum);

    	System.out.println(str.length());

    }
}

Compiler output:
Main.java:11: error: variable a is already defined in method main(String[])
    	int a = Integer.parseInt(input[0]);
    	    ^
1 error
Language: Java

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

class test {

    public static void main(String[] a){

    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String[] input = br.readLine().split("\\s");

    	int a = Integer.parseInt(input[0]);
    	int b = Integer.parseInt(input[0]);
    	int sum = a + b;
    	String str = String.valueOf(sum);

    	System.out.println(str.length());

    }
}

Compiler output:
Main.java:11: error: variable a is already defined in method main(String[])
    	int a = Integer.parseInt(input[0]);
    	    ^
1 error
Language: Java

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

class Main {

    public static void main(String[] a){

    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String[] input = br.readLine().split("\\s");

    	int a;
         a = Integer.parseInt(input[0]);
    	int b;
         b = Integer.parseInt(input[0]);
    	int sum = a + b;
    	String str = String.valueOf(sum);

    	System.out.println(str.length());

    }
}

Compiler output:
Main.java:11: error: variable a is already defined in method main(String[])
    	int a;
    	    ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
class Main {
 
    public static void main(String[] x){
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split("\\s");
 
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[0]);
        int sum = a + b;
        String str = String.valueOf(sum);
 
        System.out.println(str.length());
 
    }
}

Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
        String[] input = br.readLine().split("\\s");
                                    ^
1 error
Language: Java

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

class Main {

    public static void main(String[] a) throws Exception {

    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String[] input;
    	int a;
	int b;
	int sum;

    	while((input = br.readLine().split("\\s")) != null){
    		a = Integer.parseInt(input[0]);
    		b = Integer.parseInt(input[1]);
    		sum = a+b;

    		String str = String.valueOf(sum);
    		System.out.println(str.length());
    		sum =0;
    	}
    }
}

Compiler output:
Main.java:10: error: variable a is already defined in method main(String[])
    	int a;
    	    ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    }

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

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    }

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

class Main
{
	public static void main(String[] args){
		String line = null;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int ans;
		try{
			while(true){
				line = br.readLine();
				StringTokenizer st = new StringTokenizer(line);
				int s = Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken());
				System.out.println(Math.round(Math.log10(s) + 1));
			}
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}

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

import java.util.StringTokenizer;
import java.io.BufferedReader;

public class Main{
	public static void main(String[] args) throws IOException{
		bufferedReader br = new BufferedReader(InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = in.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
	public static void main(String[] args) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:6: error: cannot find symbol
		bufferedReader br = new BufferedReader(InputStreamReader(System.in));
		^
  symbol:   class bufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		bufferedReader br = new BufferedReader(InputStreamReader(System.in));
		                                       ^
  symbol:   method InputStreamReader(InputStream)
  location: class Main
Main.java:15: error: cannot find symbol
				input = in.readLine();
				        ^
  symbol:   variable in
  location: class Main
4 errors
Language: Java

public class DigitNumber {


	
	public static void main(String[] args) {
		for (int i = 0; i < args.length; i++) {
			System.out.println(args.length);
		}
	}

}

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

package aizu;

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

public class DigitNumber {


	
	public static void main(String[] args) throws NumberFormatException, IOException {
	        BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
	        String str = "";
	        StringTokenizer st;
	        while ((str = br.readLine()) != null) {
	            st = new StringTokenizer(str, " ");
	            if(st.countTokens() > 2)
	            	System.out.println("Only 2 numbers per dataset allowed.");
	            int n1;
				int n2;
				try {
					n1 = Integer.parseInt(st.nextToken());
					n2 = Integer.parseInt(st.nextToken());
		            if(n1<0 || n2 < 0 || n1 > 1000000 || n2 > 1000000)
		            	System.out.println("Out of range. 0 ??? a, b ??? 1,000,000");
		            
		            str = String.valueOf(n1+n2);
		            System.out.println(str.length());
				} catch (NumberFormatException e) {
					System.out.println("Only number as follows allowed: 0 ??? a, b ??? 1,000,000");
				}
	        }
	}

}

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


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

class Main {


	
	public static void main(String[] args) throws NumberFormatException, IOException {
	        BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
	        String str = "";
	        StringTokenizer st;
	        while ((str = br.readLine()) != null) {
	            st = new StringTokenizer(str, " ");
	            if(st.countTokens() > 2)
	            	System.out.println("Only 2 numbers per dataset allowed.");
	            int n1;
				int n2;
				try {
					n1 = Integer.parseInt(st.nextToken());
					n2 = Integer.parseInt(st.nextToken());
		            if(n1<0 || n2 < 0 || n1 > 1000000 || n2 > 1000000)
		            	System.out.println("Out of range. 0 ??? a, b ??? 1,000,000");
		            
		            str = String.valueOf(n1+n2);
		            System.out.println(str.length());
				} catch (NumberFormatException e) {
					System.out.println("Only number as follows allowed: 0 ??? a, b ??? 1,000,000");
				}
	        }
	}

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

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

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

		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));

		String s = br.readLine();
		StringTokenizer st;

		while (!("EOF".equals(s)) or s != null) {
			st = new StringTokenizer(s, " ");
			int p = Integer.parseInt(st
					.nextToken()) + Integer
							.parseInt(st
									.nextToken());

			System.out.println((int) Math.log10(p)
					+ 1);
			s = br.readLine();
		}

	}
}

Compiler output:
Main.java:16: error: ')' expected
		while (!("EOF".equals(s)) or s != null) {
		                         ^
Main.java:16: error: ';' expected
		while (!("EOF".equals(s)) or s != null) {
		                              ^
Main.java:16: error: variable declaration not allowed here
		while (!("EOF".equals(s)) or s != null) {
		                             ^
3 errors
Language: Java

class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int sum;
		String str[];
		while (!br.ready()) {
			try {
				str = br.readLine().split(" ");
				sum = Integer.parseInt(str[0]) + Integer.parseInt(str[1]);
				System.out.println(Integer.toString(sum).length());
			} catch (NumberFormatException e) {
				System.exit(0);
			}
		}
	}
}

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

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt()).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    }
}

Compiler output:
Main.java:8: error: ')' or ',' expected
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt()).length());
                                                                                       ^
1 error
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<Integer>();
                                      ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: Java

#include <iostream>
#include <cmath>
#include <limits>

int main(void)
{
	int32_t first  = 0;
	int32_t second = 0;

	while( std::cin >> first )
	{
		std::cin >> second;

		std::cout << static_cast<int32_t>(std::log10(first + second))+1 << std::endl;
	}

	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <cmath>
^
Main.java:3: error: illegal character: '#'
#include <limits>
^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
	int32_t second = 0;
	^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
	while( std::cin >> first )
	^
Main.java:14: error: class, interface, enum, or record expected
		std::cout << static_cast<int32_t>(std::log10(first + second))+1 << std::endl;
		^
Main.java:15: error: class, interface, enum, or record expected
	}
	^
Main.java:18: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

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

public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1);
		String input = r.readLine();
		while (input != null){
			String[] s = input.split(" ");
			int a = Integer.valueOf(s[0]);
			int b = Integer.valueOf(s[1]);
			System.out.println(String.valueOf(a+b).length());
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1);
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1);
		                       ^
  symbol:   class BufferedReader
  location: class Main
2 errors
Language: Java

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

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String input = r.readLine();
		while (input != null){
			String[] s = input.split(" ");
			int a = Integer.valueOf(s[0]);
			int b = Integer.valueOf(s[1]);
			System.out.println(String.valueOf(a+b).length());
                        input = r.readLine();
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		                       ^
  symbol:   class BufferedReader
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		for (int i = 0; i < 3; i++) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int digitsOfA = 0;
			int digitsOfB = 0;
			if (a >= 0) {
				digitsOfA = Integer.valueOf(a).toString().length();
			}
			if (b >= 0) {
				digitsOfB = Integer.valueOf(b).toString().length();
			}
			int sumOfDigits = digitsOfA + digitsOfB;
			System.out.println(sumOfDigits);
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
			int a = scanner.nextInt();
			        ^
  symbol:   variable scanner
  location: class Main
Main.java:8: error: cannot find symbol
			int b = scanner.nextInt();
			        ^
  symbol:   variable scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
         
        for (int i = 0; i < 3; i++) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            int digitsOfA = 0;
            int digitsOfB = 0;
            if (a >= 0) {
                digitsOfA = Integer.valueOf(a).toString().length();
            }
            if (b >= 0) {
                digitsOfB = Integer.valueOf(b).toString().length();
            }
            int sumOfDigits = digitsOfA + digitsOfB;
            System.out.println(sumOfDigits);
        }
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
            int a = scanner.nextInt();
                    ^
  symbol:   variable scanner
  location: class Main
Main.java:8: error: cannot find symbol
            int b = scanner.nextInt();
                    ^
  symbol:   variable scanner
  location: class Main
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int dataSet = Integer.parseInt(scanner.nextLine());
		List<String[]>  l = new ArrayList<>();
		
		for (int i = 0; i < dataSet; i++) {			
			String[] s = scanner.nextLine().split(" ");
			l.add(s);
		}
		for(int i = 0; i<l.size();i++){
			String[] s = l.get(i);
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			
			int digitsA = Integer.valueOf(a).toString().length();
			int digitsB = Integer.valueOf(b).toString().length();
			
			System.out.println(digitsA+digitsB);
		
	}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		List<String[]>  l = new ArrayList<>();
		^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
		List<String[]>  l = new ArrayList<>();
		                        ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: Java

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

class Main {

	public static final int MAX = 200000;

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String  str[] = new String[1];
		try{
		while(true){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}
		
	}catch(Exception e){
		System.exit(0);
	}


	}

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

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

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	}
}

Compiler output:
Main.java:10: error: illegal start of expression
			String[] num = str.split(" ",);
			                             ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class TestJava {

  public static void main( String[] args ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String n = br.readLine();
    while (n != null) {
      String[] sp = n.split(" ");
      int result = 0;
      for (String str : sp) {
        try {
          result += Integer.parseInt(str);
        } catch (NumberFormatException ex) {
          result = 0;
        }
      }
      if (result == 0) {
        break;
      }
      System.out.println(String.valueOf(result).length());
      n = br.readLine();
    }
  }
}

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

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in));
        {
            try {
                String s =in.readLine();
                StringTokenizer st;
                while(s!=null)
                {
                    st = new StringTokenizer(s);
                    int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                     
                    System.out.println((int)Math.log10(p)+1);
                    s =in.readLine();
                }
            } catch (Exception ex) {
                System.exit(0);
            }
     }
    
}
}

Compiler output:
Main.java:8: error: cannot find symbol
        BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
        BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:12: error: cannot find symbol
                StringTokenizer st;
                ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:15: error: cannot find symbol
                    st = new StringTokenizer(s);
                             ^
  symbol:   class StringTokenizer
  location: class Main
4 errors
Language: Java

class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in));
        {
            try {
                String s =in.readLine();
                StringTokenizer st;
                while(s!=null)
                {
                    st = new StringTokenizer(s);
                    int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                     
                    System.out.println((int)Math.log10(p)+1);
                    s =in.readLine();
                }
            } catch (Exception ex) {
                System.exit(0);
            }
     }
    
}
}

Compiler output:
Main.java:8: error: cannot find symbol
        BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
        BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:12: error: cannot find symbol
                StringTokenizer st;
                ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:15: error: cannot find symbol
                    st = new StringTokenizer(s);
                             ^
  symbol:   class StringTokenizer
  location: class Main
4 errors
Language: Java

class ?????????
{
	public static void main( String[] args )
	{
		java.util.Scanner sc = new java.util.Scanner( System.in );
		
		while( sc.hasNext() )
		{
			int a,b;
			
			a = sc.nextInt();
			b = sc.nextInt();
			
			int c = a+b;
			
			int d = 0;
			while( c != 0 ){
				d++;
				c = c/10;
			}
			
			System.out.println( d );
		}
	}
}

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

import java.util.Scanner;

public class Problem_0002 {
	public static void main(String[] args){
		int a,b;
		Scanner scanner = new Scanner(System.in);
		a = scanner.nextInt();
		b = scanner.nextInt();
		scanner.close();
		System.out.println((String.valueOf(a+b).length()));
	}
}

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

import java.util.*;
public class JP3 {
	public static void main(String[] agrs){
		Scanner x=new Scanner(System.in);
		int times=0;
		while(times<=200){
			int sum=0;
			String str =x.nextLine();
			String[] s = str.split(" ");
			int number1 = Integer.parseInt(s[0]);
			int number2 = Integer.parseInt(s[1]);
			if(number1>=0&&number1<=1000000&&number2>=0&&number2<=1000000){
				int n=(number1+number2);
				 while(n!=0){
					n=n/10;
					sum++;
				}
				 System.out.println(sum);
			}
			else break;
		}
		x.close();
 
	}
}

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

import java.io.*;

public class Main {
  public static void main(String[] args) {
    BufferdReader br = new BufferdReader(new InputStreamReader(System.in));
    // while ((String line = br.readLine()) != null) {
    //   int sum = Integer.parseInt(line.split(" ")[0]) + Integer.parseInt(line.split(" ")[1]);
    //   System.out.println(String.valueOf(sum).length());
    // }
    br.lines()
      .map(line -> line.split(" "))
      .map(ar -> Stream.of(ar).mapToInt(Integer::parseInt).sum())
      .map(String::value)
      .mapToInt(str -> str.length())
      .forEach(System.out::println);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    BufferdReader br = new BufferdReader(new InputStreamReader(System.in));
    ^
  symbol:   class BufferdReader
  location: class Main
Main.java:5: error: cannot find symbol
    BufferdReader br = new BufferdReader(new InputStreamReader(System.in));
                           ^
  symbol:   class BufferdReader
  location: class Main
Main.java:12: error: cannot find symbol
      .map(ar -> Stream.of(ar).mapToInt(Integer::parseInt).sum())
                 ^
  symbol:   variable Stream
  location: class Main
3 errors
Language: Java

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

public class Main {
  public static void main(String[] args) {
    BufferdReader br = new BufferedReader(new InputStreamReader(System.in));
    br.lines()
      .map(line -> line.split(" "))
      .map(ar -> Stream.of(ar).mapToInt(Integer::parseInt).sum())
      .map(String::value)
      .mapToInt(str -> str.length())
      .forEach(System.out::println);
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    BufferdReader br = new BufferedReader(new InputStreamReader(System.in));
    ^
  symbol:   class BufferdReader
  location: class Main
1 error
Language: Java

import java.util.Scanner;

//Digit Number
public class AOJ0002 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		}
	}
}

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

import java.util.Scanner;

public class main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		Integer first = sc.nextInt();
		Integer second = sc.nextInt();
		int kurai = String.valueOf(first+second).length();
		System.out.println(kurai);
		sc.close();
	}

}

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

package vol0;

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

public class DigitNumber {
	public static void main(String[] a) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String str;
		while ((str = br.readLine()) !=null) {

			String num_str[] = new String[2];
			num_str = str.split(" ");
			int sum = Integer.parseInt(num_str[0]) + Integer.parseInt(num_str[1]);
			System.out.println(Integer.toString(sum).length());
		}
	}
}

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

//??\?????¨??????????????????????????¨???
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();

		//??????????????????????????????????????°?????????
		int valLen = String.valueOf(a+b).length();
		System.out.println(valLen);

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
		Scanner scan = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
		System.out.println(valLen);
		^
2 errors
Language: Java

import java.util.Scanner;
public class Question01 {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int a = stdin.nextInt();
		int b = stdin.nextInt();

		System.out.println(3);



	}
}

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

package aizu;

import java.util.Scanner;

public class DigitNumber {

	public static void main(String[] args) {
		// TODO ??\???????????????????????????????????????????????£??????????????????????????¨?????????

		//??\?????¨??????????????????????????¨???
	//	while(scanf("%d %d", &a, &b) != EOF){
		//}

		//?????????????????????????´?????????????????¬¬????????°???????????????????????????????????§?????????????¨???°
		int datas[][] = new int [2][200];

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		//????????????????????????????????§???????????????????????????????????°
		int i = 0;
		//?¬????????????????????????????null??§???????????°???datas???????´?
		while (scan.hasNextInt()){
			datas[0][i] = scan.nextInt();
			datas[1][i] = scan.nextInt();
			i++;
//		if(i==2){
//				break;
//			}

		}

		//??????????????????????????????????????????sums??¨???????????????????´?
		int sums[] = new int[i];
		for(int j=0; j<i; j++){
			sums[j] = datas[0][j] + datas[1][j];
		}
//		for(int k=0;k<i;k++){
//		System.out.println(sums[k]);
//		}

		for(int sum : sums){
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	}

}

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

import java.util.Scanner;

public class TestMain {

	public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	}

}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		for(int i=1; i<=200; i++){
			int a=sc.nextInt();
			int b=sc.nextInt();
			System.out.println(String.valueOf(a+b).length()
);
		}
	}

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



public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(true){
			int a=sc.nextInt();
			int b=sc.nextInt();
			System.out.println(Integer.toString(a+b).length());
		}
	}

}

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

import java.util.Scanner; 
public class Main { 
public static void main(String args[]) { 
Scanner sc = new Scanner(System.in); 
while (sc.hasNextLine()){
    long n=sc.nextLong;
    long m=sc.nextLong;
    String s=long.toString(n+m);
    System.out.println(s.length());
}

 } }


Compiler output:
Main.java:8: error: class expected
    String s=long.toString(n+m);
                  ^
Main.java:8: error: ';' expected
    String s=long.toString(n+m);
                          ^
Main.java:8: error: not a statement
    String s=long.toString(n+m);
                            ^
Main.java:8: error: ';' expected
    String s=long.toString(n+m);
                              ^
4 errors
Language: Java

import java.util.Scanner; 
public class Main { 
public static void main(String args[]) { 
Scanner sc = new Scanner(System.in); 
while (sc.hasNextLine()){
    long n=sc.nextLong;
    long m=sc.nextLong;
    String s=Long.toString(n+m);
    System.out.println(s.length());
}

 } }


Compiler output:
Main.java:6: error: cannot find symbol
    long n=sc.nextLong;
             ^
  symbol:   variable nextLong
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
    long m=sc.nextLong;
             ^
  symbol:   variable nextLong
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	double a,b;
    	int c;

    	a = sc.nextInt();
    	b = sc.nextInt();
		
    	c = (int)log10(a+b);

    	System.out.println(c+1);
   	}
}



Compiler output:
Main.java:12: error: cannot find symbol
    	c = (int)log10(a+b);
    	         ^
  symbol:   method log10(double)
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main{
    public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	
    	try{
    		int keta;
	    	double num[] = new double[2];
    	   	String str[] = new String[200];

    		str[0] = br.readLine();
    		int i = 0;
    		while(str[i] != null){
    			i++;
    			str[i] = br.readLine();
	    	}
	    	br.close();

    		for (int j=0;j<i;j++){
	    		String str2[] = str[j].split(" ",0);
	    		num[0] = Double.parseDouble(str2[0]);
	    		num[1] = Double.parseDouble(str2[1]);

	    		keta = (int)Math.log10(num[0]+num[1]);
    			System.out.println(keta+1);

    			if(num[0]+num[1]==0){
    				break;
    			}
    		}
   		}catch(IOException e){
   			System.out.println("fail.");
   	}
}


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

#include<stdio.h>
int main(void){

	int a=0,b=0;
	int sum=0;
	int count=0;

	scanf("%d %d",&a,&b);

	sum=a+b;

	while(sum!=0){
		sum=sum/10;
		count++;
	}

	printf("%d",count);
	return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
	int sum=0;
	^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
	scanf("%d %d",&a,&b);
	^
Main.java:10: error: class, interface, enum, or record expected
	sum=a+b;
	^
Main.java:12: error: class, interface, enum, or record expected
	while(sum!=0){
	^
Main.java:14: error: class, interface, enum, or record expected
		count++;
		^
Main.java:15: error: class, interface, enum, or record expected
	}
	^
Main.java:18: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:19: error: class, interface, enum, or record expected
}
^
10 errors
Language: Java

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		printf("%d\n", a + b);
	}
	

	//system("pause");
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include<math.h>
^
Main.java:4: error: illegal character: '#'
#include<iostream>
^
Main.java:5: error: illegal character: '#'
#include<string>
^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
7 errors
Language: Java

class Main{
    public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0, j = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			i++;
		}
		
		for(j = 0; j < i; j++) {
			System.out.println(num1[j] + num2[j]);
		}
		scanner.close();

    }
}


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

class Main{
    public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(num1[i] + num2[i]);
			i++;
		}
		
		scanner.close();
    }
}


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

import java.util.Scanner;

public class DigitNumber2 {
	public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	}
}


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

import java.util.Scanner;

public class main{
	public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	}
}


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

import java.util.*;

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

		while(scan.hasNextInt()){
			int a = scan.nextInt();
			int b = scan.nextInt();

			System.out.println((a+b).toString().length());
		}
	}
}

Compiler output:
Main.java:11: error: int cannot be dereferenced
			System.out.println((a+b).toString().length());
			                        ^
1 error
Language: Java

import java.util.*;

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

		while(scan.hasNextInt()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int sum = a + b;

			System.out.println(sum.toString().length());
		}
	}
}

Compiler output:
Main.java:12: error: int cannot be dereferenced
			System.out.println(sum.toString().length());
			                      ^
1 error
Language: Java


import java.util.*;
import java.lang.*;
import java.math.*;

class Main {

	Scanner sc = new Scanner(System.in);

	void run() {
		
		int x = sc.nextInt() + sc.nextInt();
		
		int x = 100;
		
		int count = 0;
		
		do{
			x /= 10;
			count++;
		} while ( x != 0);
		
		
		System.out.println(count);
		return;

	}

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

Compiler output:
Main.java:14: error: variable x is already defined in method run()
		int x = 100;
		    ^
1 error
Language: Java

import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while((String s = r.readLine()) != null){
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
}

Compiler output:
Main.java:5: error: ',', ')', or '[' expected
while((String s = r.readLine()) != null){
               ^
Main.java:5: error: illegal start of expression
while((String s = r.readLine()) != null){
                ^
Main.java:5: error: illegal start of expression
while((String s = r.readLine()) != null){
                                ^
Main.java:5: error: ';' expected
while((String s = r.readLine()) != null){
                                       ^
4 errors
Language: Java

import java.io.*;
public class Ex02 {

	public static void main(String[] args)throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br =new  BufferedReader(is);
		System.out.println("Hello world");
		while(true){
			String str = br.readLine();
			if(str.equals(""))
				break;
			String str1 = str.substring(0, str.indexOf(" "));
			String str2 = str.substring(str.indexOf(" ")+1);
			int n1 = Integer.parseInt(str1);
			int n2 = Integer.parseInt(str2);
			int count1=0, count2=0;
			System.out.println("Hello world");
			while(n1 > 0){
				n1 = n1/10;
				count1++;
			}
			while(n2 > 0){
				n2 = n2/10;
				count2++;
			}
			System.out.println(count1+count2);
		}
	}

}

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