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


public class Main {

	//ツ　0002
	public static void main(String[] args) throws IOException {
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	}
}

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:7: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                                               ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

mport java.util.Scanner;

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

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

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

public class test{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1);
		String s = r.readLine();
		StringTokenizer st = new StringTokenizer(s," ");
		int a,b,t;
			a = Integer.parseInt(st.nextToken().toString());
			b = Integer.parseInt(st.nextToken().toString());
			a+=b;
			for(t=0;a!=0;a=a/10)t++;
			System.out.println(t);
	}
}

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

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

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s = r.readLine();
		StringTokenizer st = new StringTokenizer(s," ");
		int a,b,t;
		while(true){
			a = Integer.parseInt(st.nextToken().toString());
			b = Integer.parseInt(st.nextToken().toString());
			a+=b;
			for(t=0;a!=0;a=a/10)t++;
			System.out.println(t);
			s = r.readLine();
			st = StringTokenizer(s," ");
		}
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
			st = StringTokenizer(s," ");
			     ^
  symbol:   method StringTokenizer(String,String)
  location: class Main
1 error
Language: Java

import java.io.*;
class Main{
    public static void main (String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	while(true){

	    if(String buf=(br.readLine()) ==null)break;
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	}
    }
}

Compiler output:
Main.java:9: error: ')' expected
	    if(String buf=(br.readLine()) ==null)break;
	             ^
Main.java:9: error: ';' expected
	    if(String buf=(br.readLine()) ==null)break;
	                                        ^
2 errors
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
      System.out.println((int)Integer.toString(a+b).length);
                                                   ^
  symbol:   variable length
  location: class String
1 error
Language: Java

import java.util.Scanner;

public class Simple {

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

		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			c = a + b;
			String str = String.valueOf(c);
			System.out.println(str.length());
			
		}

	}

}

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

import java.util.Scanner;


public class aoj0024 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int input1,input2;
		int h = 0;
		int ans = 0;
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			input1 = sc.nextInt();
			input2 = sc.nextInt();
			int x = input1 + input2;
			
			for(ans = 1; ;ans++){
				if(x/10 == 0)break;
				x/=10;
			}
			
			System.out.println(ans);
			
		}

	}

}

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

public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int input1,input2;
		int h = 0;
		int ans = 0;
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			input1 = sc.nextInt();
			input2 = sc.nextInt();
			int x = input1 + input2;
			
			for(ans = 1; ;ans++){
				if(x/10 == 0)break;
				x/=10;
			}
			
			System.out.println(ans);
			
		}

	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class Sample {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a, b, c;
		int count = 1;
		
		a = scanner.nextInt();
		b = scanner.nextInt();
		c = a + b;
		while (10 <= c) {
			c /= 10;
			count++;
		}
		System.out.println(count);
	}
}

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

import java.util.Scanner;

public class Sample {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int a, b, c;
		int count = 1;
		
		a = scanner.nextInt();
		b = scanner.nextInt();
		c = a + b;
		while (10 <= c) {
			c /= 10;
			count++;
		}
		System.out.println(count);
	}
}

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

import java.util.Scanner;
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int a,b,i;
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			a = a + b;
			for(i = 0;a > 0;i++){
				a = a / 10;
				
			}
			System.out.println(i);
		}
	}

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

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

class Main{
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String read = br.readLine();

	while (read.length() != 0) {
            String[] list = read.split(" ");

            int inputA = Integer.parseInt(list[0]);
            int inputB = Integer.parseInt(list[1]);

            System.out.println(String.valueOf(a + b).length());

            read = br.readLine();
        }
    }
}

Compiler output:
Main.java:17: error: cannot find symbol
            System.out.println(String.valueOf(a + b).length());
                                                  ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

		double d1 	= sc.nextInt();
		double d2 	= sc.nextInt();
		double d	= d1 + d2;

		int n = Double.toString(d).indexOf('.');

		System.out.println(n);
	}
}

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

import java.util.Scanner;
import java.Math.*;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(Sytem.in);
	int[] a,b,c;
 	while(cin.hasNext()){
		a = cin.nextInt();
		b = cin.nextInt();
		c = a + b;
		for(int i=1; i<100; i++){
			if(c/Math.pow(10,i) < 1){System.out.println(i);
			break;
		}
	}
    }
}

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

import java.util.Scanner;
import java.Math.*;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(Sytem.in);
	int[] a,b,c;
 	while(cin.hasNext()){
		a = cin.nextInt();
		b = cin.nextInt();
		c = a + b;
		int cnt = 0;
		for(int i=1; i<=20; i++){
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
	}
    }
}

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

import java.util.Scanner;
import java.Math.*;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(Sytem.in);
	int[] a,b,c;
 	while(cin.hasNext()){
		a = cin.nextInt();
		b = cin.nextInt();
		c = a + b;
		int cnt = 0;
		for(int i=1; i<=20; i++){
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
		}
	}
    }
}

Compiler output:
Main.java:2: error: package java.Math does not exist
import java.Math.*;
^
Main.java:8: error: cannot find symbol
	Scanner cin = new Scanner(Sytem.in);
	                          ^
  symbol:   variable Sytem
  location: class Main
Main.java:11: error: incompatible types: int cannot be converted to int[]
		a = cin.nextInt();
		               ^
Main.java:12: error: incompatible types: int cannot be converted to int[]
		b = cin.nextInt();
		               ^
Main.java:13: error: bad operand types for binary operator '+'
		c = a + b;
		      ^
  first type:  int[]
  second type: int[]
Main.java:16: error: bad operand types for binary operator '/'
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
			    ^
  first type:  int[]
  second type: double
6 errors
Language: Java

import java.util.Scanner;
import java.Math.*;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	int[] a,b,c;
 	while(cin.hasNext()){
		a = cin.nextInt();
		b = cin.nextInt();
		c = a + b;
		int cnt = 0;
		for(int i=1; i<=20; i++){
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
		}
	}
    }
}

Compiler output:
Main.java:2: error: package java.Math does not exist
import java.Math.*;
^
Main.java:11: error: incompatible types: int cannot be converted to int[]
		a = cin.nextInt();
		               ^
Main.java:12: error: incompatible types: int cannot be converted to int[]
		b = cin.nextInt();
		               ^
Main.java:13: error: bad operand types for binary operator '+'
		c = a + b;
		      ^
  first type:  int[]
  second type: int[]
Main.java:16: error: bad operand types for binary operator '/'
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
			    ^
  first type:  int[]
  second type: double
5 errors
Language: Java

import java.util.Scanner;
import java.lang.Math.*;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	int[] a,b,c;
 	while(cin.hasNext()){
		a = cin.nextInt();
		b = cin.nextInt();
		c = a + b;
		int cnt = 0;
		for(int i=1; i<=20; i++){
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
		}
	}
    }
}

Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to int[]
		a = cin.nextInt();
		               ^
Main.java:12: error: incompatible types: int cannot be converted to int[]
		b = cin.nextInt();
		               ^
Main.java:13: error: bad operand types for binary operator '+'
		c = a + b;
		      ^
  first type:  int[]
  second type: int[]
Main.java:16: error: bad operand types for binary operator '/'
			if(c/Math.pow(10,i) < 1 && cnt == 0){System.out.println(i); cnt = 1;}
			    ^
  first type:  int[]
  second type: double
4 errors
Language: Java

import java.util.Scanner;
import java.util.Array;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	int N = cin.nextInt();
	for(int i=1; i<=N; i++){
		int[] len = new int[3];
		for(int j=0; j<3; j++){ len[j] = cin.textInt();}
		Array.sort(len);
		if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
	}
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
import java.util.Array;
                ^
  symbol:   class Array
  location: package java.util
Main.java:12: error: cannot find symbol
		for(int j=0; j<3; j++){ len[j] = cin.textInt();}
		                                    ^
  symbol:   method textInt()
  location: variable cin of type Scanner
Main.java:13: error: cannot find symbol
		Array.sort(len);
		^
  symbol:   variable Array
  location: class Main
3 errors
Language: Java

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

public class Main
{
   public static void main(String[] args)
   {
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      String s;
      while((s=br.readLine())!=null){
         StringTokenizer st=new StringTokenizer(s, " ");
         int a=Integer.parseInt(st.nextToken());
         int b=Integer.parseInt(st.nextToken());
         a+=b;
         int keta=1;
         while((a/=10)!=0) keta++;
         System.out.println(keta);
      }
   }
}

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

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

public class Main
{
   public static void main(String[] args)
   {
      try {
         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
         String s;
         while((s=br.readLine())!=null){
            StringTokenizer st=new StringTokenizer(s, " ");
            int a=Integer.parseInt(st.nextToken());
            int b=Integer.parseInt(st.nextToken());
            a+=b;
            int keta=1;
            while((a/=10)!=0) keta++;
            System.out.println(keta);
         } catch(Exception e){}
      }
   }
}

Compiler output:
Main.java:19: error: 'catch' without 'try'
         } catch(Exception e){}
           ^
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
      try {
      ^
2 errors
Language: Java

import java.util.Scanner;

public class Add
{
	public static void main(String[] args)
	{
		int[] sum = new int[3];
		int[] sum1 = new int[3];
		for(int i = 0; i < 3;i++)
		{
			Scanner in = new Scanner(System.in);
			int a = in.nextInt();
			int b = in.nextInt();
			sum[i] = a + b;
		}
		for(int i = 0; i < 3; i++)
		{
			sum1[i] = String.valueOf(sum[i]).length();
			System.out.println(sum1[i]);
		}
	}

}

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

import java.util.Scanner;

public class Add
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		while(in.hasNext())
		{
			int a = in.nextInt();
			int b = in.nextInt();
			int sum = a + b;
			
			int k = String.valueOf(sum).length();
			System.out.println(k);
		}
	}
}

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

import java.io.*;
public class main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s;
		try{
			while((s=br.readLine())!=null){
				String[] str=s.split(" ");
				int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
				System.out.println(Integer.toString(n).length());
			}
			br.close();
		}catch(Exception e){
		}
	}
}

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

public class Main {
     public static void main(String[] args) {
        java.io.BufferedReader in = new java.io.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:7: error: cannot find symbol
                StringTokenizer st;
                ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:10: error: cannot find symbol
                    st = new StringTokenizer(s);
                             ^
  symbol:   class StringTokenizer
  location: class Main
2 errors
Language: Java

import java.util.*;
public class AOJ0002{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int a,b,a_digits,b_digits;
    while(sc.hasNext()){
      a_digits = 0;
      b_digits = 0;
      a = sc.nextInt();
      b = sc.nextInt();
      while(a >= 1){
        a /= 10;
        a_digits++;
      }
      while(b >= 1){
        b /= 10;
        b_digits++;
      }
      System.out.println(a_digits + b_digits);
    }
  }
}

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

	public static void main(String[] a) {

		ArrayList<Integer[]> inputs = new ArrayList<Integer[]>();

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

		String line;

		try {
			//            int count=0;
			boolean flg = true;
			int count = 0;

			while (flg) {
				BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
				line = br.readLine();

				if (line == null || line.equals(" ") || count >= 200) {
					flg = false;
				}
				String arg1 = line.split(" ")[0];
				String arg2 = line.split(" ")[1];
				Integer[] para = { Integer.parseInt(arg1), Integer.parseInt(arg2) };
				inputs.add(para);
				count++;
			}
		} catch (Exception e) {
		}
		int sub = 0;
		for (int k = 0; k < inputs.size(); k++) {
			try {
				int num1 = inputs.get(k)[0];
				int num2 = inputs.get(k)[1];

				outputs.add(calc(num1, num2));

			} catch (Exception e) {
			}
		}

		outputResult(outputs);
	}

	private static void outputResult(List<Integer> data) {
		for (int i = 0; i < data.size(); i++) {
			System.out.println(data.get(i));
		}
	}

	protected static int calc(int a, int b) {

		int sum = a + b;

		return Integer.toString(sum).length();
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] a) {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;

public class aoj0002 {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			while(sc.hasNext())
			{
				int a = sc.nextInt();
				int b = sc.nextInt();
				int count = 0;
					for(int i=0; i!=Integer.toString(a+b).length();i++)
					{
						count++;
					}
				System.out.println(count);
			}
	}
}

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

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

public class AOJ_0002 {
	public static void main(String[] args) throws IOException{
		
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		List<Integer> a=new ArrayList<Integer>(200);
		List<Integer> b=new ArrayList<Integer>(200);
		String str=null;
		int count=0;
		
		while(str!=null){
			count++;
			str=buf.readLine();
			 a.add(Integer.parseInt(str.split(" ")[0]));
			 b.add(Integer.parseInt(str.split(" ")[1]));
		}
		
		for(int i=0; i<count ;i++){
			System.out.println(a.get(i)+b.get(i));
			
		}
	}
}

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

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

public class AOJ_0002 {
	public static void main(String[] args) throws IOException{
		
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		int a=0;
		int b=0;
		int c=a+b;
		int[] data=new int[200];
		String str1=null;
		String str2;
		
		
		int count=0;
		while((str1=buf.readLine())!=null){
			
			 a=Integer.parseInt(str1.split(" ")[0]);
			 b=Integer.parseInt(str1.split(" ")[1]);
			 str2=Integer.toString(c);
			 data[count]=str2.length();
			 count++;
		}
		buf.close();
		for(int i=0;i<count;i++){
			System.out.println(i);
		}
	}
}

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

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


public class AOJ_0002 {
	public static void main(String[] args) throws IOException{
		
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		int a=0;
		int b=0;
		int[] data=new int[200];
		String str1=null;
		String str2;
		
		
		int count=0;
		while((str1=buf.readLine())!=null){
			
			 a=Integer.parseInt(str1.split(" ")[0]);
			 b=Integer.parseInt(str1.split(" ")[1]);
			 str2=Integer.toString(a+b);
			 data[count]=str2.length();
			 count++;
			 
			
		}
		buf.close();
		for(int i=0;i<count;i++){
			System.out.println(data[i]);
		}
	}
}

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


import java.util.Scanner;

public class test {

	final static int INPUT_LIMIT_MIN_VALUE = 0;
	final static int INPUT_LIMIT_MAX_VALUE = 1000000;

	final static int DATASETS_LIMIT = 200;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		int inCnt = 0;
		Scanner in = new Scanner(System.in);

		// 値の入力
		while(inCnt < DATASETS_LIMIT) {
			int i = in.nextInt();
			int j = in.nextInt();
			
			if ( !(INPUT_LIMIT_MIN_VALUE <= i && i <= INPUT_LIMIT_MAX_VALUE || 
					INPUT_LIMIT_MIN_VALUE <= j && j <= INPUT_LIMIT_MAX_VALUE)) {
				return;
			}
					
			int ans = i + j;
			int digits = 1;
			
			for (digits = 1; digits < 8; digits++) {
				ans = ans / 10;
				if(ans <= 0) {
					break;
				}
			}
			
			System.out.println(digits);
			
			if (!in.hasNext()) {
				break;
			}
		}
	}
}

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

	final static int INPUT_LIMIT_MIN_VALUE = 0;
	final static int INPUT_LIMIT_MAX_VALUE = 1000000;

	final static int DATASETS_LIMIT = 200;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		int inCnt = 0;
		Scanner in = new Scanner(System.in);

		try{
			// 値の入力
			while(inCnt < DATASETS_LIMIT) {
				int i = in.nextInt();
				int j = in.nextInt();
				
				if ( !(INPUT_LIMIT_MIN_VALUE <= i && i <= INPUT_LIMIT_MAX_VALUE || 
						INPUT_LIMIT_MIN_VALUE <= j && j <= INPUT_LIMIT_MAX_VALUE)) {
					return;
				}
	
				System.out.println(Integer.toString(i+j).length());
				
				if (!in.hasNext()) {
					break;
				}
				inCnt++;
			}
		} catch (Exception e){
			e.printStackTrace();
		}
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	final static int INPUT_LIMIT_MIN_VALUE = 0;
	             ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.io.IOException;

public class V03{
    public static void main(String[] a) throws IOException {
		int s1 = 0,s2 = 0,i= 0;
		String[] Set = new String[5];
		String[] stock = new String[5];
		String Input = null;
		java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
		try{
			while((Input = in.readLine()) != null){
				stock = Input.split(" ");
				s1 = Integer.parseInt(stock[0]);
				s2 = Integer.parseInt(stock[1]);
				Set[i] = String.valueOf(s1 + s2);
				i++;
			}
			
		}catch(Exception e){
		}finally{
			System.out.println(Set[0].length());
			System.out.println(Set[1].length());
			System.out.println(Set[2].length());
		}
    }
}

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

import java.io.IOException;

public class Main{
    public static void main(String[] a) throws IOException {
		int s1 = 0,s2 = 0,i= 0;
		String Set;
		String[] stock = new String[2];
		String Input = null;
		java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
		try{
			while((Input = in.readLine()) != null){
				stock = Input.split(" ");
				s1 = Integer.parseInt(stock[0]);
				s2 = Integer.parseInt(stock[1]);
				Set[0] = String.valueOf(s1 + s2);
				System.out.println(Set[0].length());
			}
			
		}catch(Exception e){
		}
    }
}

Compiler output:
Main.java:15: error: array required, but String found
				Set[0] = String.valueOf(s1 + s2);
				   ^
Main.java:16: error: array required, but String found
				System.out.println(Set[0].length());
				                      ^
2 errors
Language: Java

import java.io.IOException;

public class V03{
    public static void main(String[] a) throws IOException {
		int s1 = 0,s2 = 0,i= 0;
		String Set;
		String[] stock = new String[2];
		String Input = null;
		java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
		try{
			while((Input = in.readLine()) != null){
				stock = Input.split(" ");
				s1 = Integer.parseInt(stock[0]);
				s2 = Integer.parseInt(stock[1]);
				Set = String.valueOf(s1 + s2);
				System.out.println(Set.length());
			}
			
		}catch(Exception e){
		}
    }
}

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

import java.util.*;
public class aoj0002{
    public static void main(String[] args){
	Scanner buf = new Scanner(System.in);
	String s;
	int i,j;
	int len;
	while((s = buf.next()) != null){
	    i = Integer.parseInt(s);
	    j = buf.nextInt();
	    len = i + j;
	    s = Integer.toString(len);
	    System.out.println(s.length());
	}
    }
}

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

public class Main{
public static void main(String args[]) throws IOException{
	Scanner s = new Scanner(System.in);
	int a,b;
	while(s.hasNext()){
		a=s.nextInt();
		b=s.nextInt();
		String t=((Integer)(a+b)).toString();
		System.out.println(t.length());
	}
	



}}

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

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

public class Main {
	static BufferedReader input =
			new BufferedReader (new InputStreamReader (System.in));
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] a) throws IOException {
		for (int i = 0; i < 10000; ++i) {
			Integer num1 = 0, num2 = 0;
			String str = input.readLine();
			if (str.equals("")) {
				break;
			}
			try {
				num1 = Integer.parseInt(str.split("\\s")[0]);
				num2 = Integer.parseInt(str.split("\\s")[1]);
			} catch (NumberFormatException e) {
				e.printStackTrace();
				System.exit(1);
			}
			list.add(num1 + num2);
		}
		for (int i = 0; i < list.size(); ++i) {
			System.out.println(String.valueOf(list.get(i)).length());
		}
	}
}

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

try {
			Scanner sc = new Scanner(System.in);
			for (int i = 0; i < 200; ++i) {
				Integer num1 = 0, num2 = 0;
				String str = sc.nextLine();
				if (str.equals("")) {
					System.exit(0);
				}
				num1 = Integer.parseInt(str.split("\\s")[0]);
				num2 = Integer.parseInt(str.split("\\s")[1]);
				if (num1 < 0 || 10000 < num1 || num2 < 0 || 10000 < num2) {
					System.exit(1);
				}
				System.out.println(String.valueOf(num1 + num2).length());
			}
			sc.close();
		} catch (Exception e) {
			System.exit(0);
		}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
try {
^
Main.java:3: error: class, interface, enum, or record expected
			for (int i = 0; i < 200; ++i) {
			^
Main.java:3: error: class, interface, enum, or record expected
			for (int i = 0; i < 200; ++i) {
			                ^
Main.java:3: error: class, interface, enum, or record expected
			for (int i = 0; i < 200; ++i) {
			                         ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
				String str = sc.nextLine();
				^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
				if (str.equals("")) {
				^
Main.java:8: error: class, interface, enum, or record expected
				}
				^
Main.java:10: error: class, interface, enum, or record expected
				num2 = Integer.parseInt(str.split("\\s")[1]);
				^
Main.java:11: error: class, interface, enum, or record expected
				if (num1 < 0 || 10000 < num1 || num2 < 0 || 10000 < num2) {
				^
Main.java:13: error: class, interface, enum, or record expected
				}
				^
Main.java:15: error: class, interface, enum, or record expected
			}
			^
Main.java:17: error: class, interface, enum, or record expected
		} catch (Exception e) {
		^
Main.java:19: error: class, interface, enum, or record expected
		}
		^
13 errors
Language: Java

package Digit_Number;

import java.util.*;
public class Main03 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = 0;
		int b = 0;
		int sum;
		int cnt = 1;
		int value;
		while(cnt < 200 || a > 0){
			sum = 0;
			value = 0;
			a = scan.nextInt();
			b = scan.nextInt();
			sum = a+b;
			while(sum < 0){
				sum = sum /10;
				value++; 
			}
			System.out.println(value);
			cnt++;
		}

	}

}

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


import java.util.*;
public class Main03 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = 0;
		int b = 0;
		int sum;
		int cnt = 1;
		int value;
		while(cnt < 200 || a > 0){
			sum = 0;
			value = 0;
			a = scan.nextInt();
			b = scan.nextInt();
			sum = a+b;
			while(sum < 0){
				sum = sum /10;
				value++; 
			}
			System.out.println(value);
			cnt++;
		}

	}

}

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

package Digit_Number;

import java.util.*;
public class Main03 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = 0;
		int b = 0;
		int sum;
		int cnt = 1;
		int value;
		while(cnt < 200 || a > 0){
			sum = 0;
			value = 0;
			a = scan.nextInt();
			b = scan.nextInt();
			sum = a+b;
			while(sum > 0){
				sum = sum /10;
				value++; 
			}
			System.out.println(value);
			cnt++;
		}

	}

}

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

import java.util.Scanner;

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

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

class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a,b,c;
    while(sc.hasNextInt()){
        a=sc.nextInt();
        b=sc.nextInt();
        c=String.valueOf(a+b).length();
        System.out.println(c);
    }
    }
}

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

import java.util.*;

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

	while(s.hasNextInt()){

	    a=s.nextInt();
	    b=s.nextInt();

	    log=Math.log10(a+b);

	    System.out.printf("%.0f\n",Math.ceil(log));

	}

    }

}

Compiler output:
Main.java:14: error: cannot find symbol
	    log=Math.log10(a+b);
	            ^
  symbol:   method log10(int)
  location: class Math
Main.java:16: error: cannot find symbol
	    System.out.printf("%.0f\n",Math.ceil(log));
	                                   ^
  symbol:   method ceil(double)
  location: class Math
2 errors
Language: Java

 	

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int a = sc.nextInt(), b = sc.nextInt();
            int c = a+b;
            int x = 1;
            while (c >= 10) {
                c /= 10;
                cnt++;
           }
            System.out.println(x);
        }
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
                cnt++;
                ^
  symbol:   variable cnt
  location: class Main
1 error
Language: Java

import java.lang.math;
import java.util.Scanner;
class Main{
    public static void main(String[] a){
      Scanner in = new Scanner(System.in);
      long a,b;
      a=in.nextInt();
      b=in.nextInt();
      System.out.println(ceil(log10((double)a+b)));
    }
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.lang.math;
                ^
  symbol:   class math
  location: package java.lang
Main.java:6: error: variable a is already defined in method main(String[])
      long a,b;
           ^
Main.java:9: error: cannot find symbol
      System.out.println(ceil(log10((double)a+b)));
                              ^
  symbol:   method log10(double)
  location: class Main
3 errors
Language: Java

import java.lang.Math;
import java.util.Scanner;
class Main{
    public static void main(String[] args){
      Scanner in = new Scanner(System.in);
      long a,b;
      a=in.nextInt();
      b=in.nextInt();
      System.out.println(ceil(log10((double)a+b)));
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
      System.out.println(ceil(log10((double)a+b)));
                              ^
  symbol:   method log10(double)
  location: class Main
1 error
Language: Java

456789101112 

#include<iostream>#include<cmath>using namespace std; int main(){    int a,b;    while(cin>>a>>b){        a=log10(a+b)+1;        cout<<a<<endl;    }    return 0;} 

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
456789101112 
^
Main.java:3: error: illegal character: '#'
#include<iostream>#include<cmath>using namespace std; int main(){    int a,b;    while(cin>>a>>b){        a=log10(a+b)+1;        cout<<a<<endl;    }    return 0;} 
^
Main.java:3: error: illegal character: '#'
#include<iostream>#include<cmath>using namespace std; int main(){    int a,b;    while(cin>>a>>b){        a=log10(a+b)+1;        cout<<a<<endl;    }    return 0;} 
                  ^
Main.java:3: error: not a statement
#include<iostream>#include<cmath>using namespace std; int main(){    int a,b;    while(cin>>a>>b){        a=log10(a+b)+1;        cout<<a<<endl;    }    return 0;} 
                                                                                                                                        ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
#include<iostream>#include<cmath>using namespace std; int main(){    int a,b;    while(cin>>a>>b){        a=log10(a+b)+1;        cout<<a<<endl;    }    return 0;} 
                                                      ^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

import java.util.*;
public class Main {
    static Scanner sc = new Scanner(System.in);
    static int a, b;
    public static void main(String[] args) {
        while(read()){
            slove();
        }
    }

    static boolean read(){
        if(!sc.hasNext())return false;
        a = sc.nextInt(); 
　　　　b = sc.nextInt();
        return true;
    }

    static void slove(){
        int ans = Integer.toString(a+b).length();
        System.out.println(ans);
    }

}

Compiler output:
Main.java:14: error: illegal character: '\u3000'
????b = sc.nextInt();
^
Main.java:14: error: illegal character: '\u3000'
????b = sc.nextInt();
 ^
Main.java:14: error: illegal character: '\u3000'
????b = sc.nextInt();
  ^
Main.java:14: error: illegal character: '\u3000'
????b = sc.nextInt();
   ^
4 errors
Language: Java

    public static void main (String args[]) {
        int inputA = 5;int inputB = 7;
        double i = 1;double by = 10;
        while (i>0) {
            by = Math.pow(by,i);
            if (inputA + inputB - by < 0) {
                System.out.println(i);
                break;
            }
            i++;
        }
    }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main (String args[]) {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

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: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
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
		ArrayList<Integer> count = new ArrayList<Integer>();
		String a, b;

		Scanner input = new Scanner(System.in);
		
				while(input.hasNext()) {
					a = input.next();
					b = input.next();


					int sum = Integer.parseInt(a) + Integer.parseInt(b);
					count.add(Integer.toString(sum).length());
				}

				for(int i : count)
					System.out.println(i);

		
		}
	}
}

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

import java.util.Scanner;

public class AOJ_Volume0002 {

	public static void main(String[] args)
	{
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while(sc.nextLine() != null)
		{
			String[] s = sc.nextLine().split("[\\s]+");
			int value = Integer.parseInt(s[0]);
			int value_2 = Integer.parseInt(s[1]);
			int sum = value + value_2;
			int count = 1;
			while(sum / 10 != 0)
			{
				sum /= 10;
				count++;
			}
			System.out.println(count);
		}
	}
}

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

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

public class DigitNumber {
  public static int digitNumber(int a, int b){ 
    int sum = a + b;
    String sumString = Integer.toString(sum);
    int digit = sumString.length();
    return digit;
  }
  public static void main(String[] args) throws Exception {
    for(int i = 0; i < 200; i++) {
      // 入力をもらう
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String line = br.readLine();
      String[] inputArray = line.split(" ");
      int sumofinput = digitNumber(Integer.parseInt(inputArray[0]),Integer.parseInt(inputArray[1]));
      System.out.println(sumofinput);
    }   
  }
}

Compiler output:
Main.java:4: 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 Main{
    public static void main(String args[]){
        int a, b;
        Scannner sc = new Sccaner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        a += b;
        System.out.println((a.toString).length);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        Scannner sc = new Sccaner(System.in);
        ^
  symbol:   class Scannner
  location: class Main
Main.java:6: error: cannot find symbol
        Scannner sc = new Sccaner(System.in);
                          ^
  symbol:   class Sccaner
  location: class Main
Main.java:10: error: int cannot be dereferenced
        System.out.println((a.toString).length);
                             ^
3 errors
Language: Java

import java.util.Scanner;
public class P0002DigitNumber {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(true){
			int x=sc.nextInt();
			int y=sc.nextInt();
			System.out.println(Integer.toString(x+y).length());
		}
	}
}

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

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

public class DigitNumber {

	public static void main(String[] args) throws IOException {
		java.io.BufferedReader in = new java.io.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:4: error: class DigitNumber is public, should be declared in a file named DigitNumber.java
public class DigitNumber {
       ^
1 error
Language: Java

class Main{

	public static void main(String[] args) throws IOException {
		java.io.BufferedReader in = new java.io.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:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:7: error: cannot find symbol
			StringTokenizer st;
			^
  symbol:   class StringTokenizer
  location: class Main
Main.java:9: error: cannot find symbol
				st = new StringTokenizer(s);
				         ^
  symbol:   class StringTokenizer
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNextInt()) {
			System.out.println(String.valueOf(scan.nextInt()
					+ scan.nextInt()).length);
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
					+ scan.nextInt()).length);
					                 ^
  symbol:   variable length
  location: class String
1 error
Language: Java

import java.util.Scanner;
public class Digit {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		String sum = String.valueOf(a+b);
		System.out.println(sum.length());
	}
}

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

import java.util.Scanner;
public class Digit {
	public static void main(String[] args){
		Scanner in=new Scanner(System.in);
		while(true){
			String x =in.next();
			String y =in.next();
			int i = Integer.parseInt(x);
			int j = Integer.parseInt(y);
			int q = i+j;
			int p=1;
			for(int a =0;q/10 !=0;a++){
				q = q/10;
				p += 1;
			}
			System.out.println(p);
		}
	}
}

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

#include <stdio.h>

int main(void) {
	int input1, input2;      /* 入力値 */
	int buff;               /* 計算値バッファ */
	int i;                     /* loopcounter */

	while (scanf_s("%d %d", &input1, &input2) != EOF) {

		buff = input1 + input2;
		i = 1;

		while (buff >= 10) {
			buff /= 10;
			i++;
		}

		printf("%d\n", i);
	}


	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         while (scanf_s("%d %d", &input1, &input2) != EOF) {
      |                ^~~~~~~
      |                scanf