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

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

public class B3
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		for(int i=0; i<n; i++)
		{
		    String s1 = br.readLine();
		    String s2 = br.readLine();
		    if(s1.length() > 80 || s2.length() > 80)
			System.out.println("overflow");
		    else if ((s1.length() < 10) && (s2.length() < 10)) {
			System.out.println(Integer.parseInt(s1.toString()) + 
					   Integer.parseInt(s2.toString()));
		    } else {	
			Stack budget = cal(s1,s2);
			int m = budget.size();
			if( m > 80 ) System.out.println("overflow");
			else {
			    for(int j=0; j<m; j++)
			    System.out.print(budget.pop());
			    System.out.println();
			}
		    }
		 }
	}

	private static Stack cal(String s1, String s2)
	{
		Stack<Integer> a = new Stack<Integer>();
		Stack<Integer> b = new Stack<Integer>();
		Stack<Integer> c = new Stack<Integer>();
		char[] char1 = s1.toCharArray();
		char[] char2 = s2.toCharArray();
		int lenA = char1.length, lenB = char2.length, max = Math.max(lenA, lenB);
		for(int i=0; i<	lenA; i++) 
			a.push(Integer.parseInt(char1[i]+""));
		for(int i=0; i< lenB; i++)
			b.push(Integer.parseInt(char2[i]+""));

		int temp=0, roundup=0; //determine whether round up is needed
		for(int i=0; i<max; i++)
		{
		    if( !a.isEmpty() && !b.isEmpty() ) {
		        temp = a.pop() + b.pop() + roundup;
		    } else if( a.isEmpty() ) {
			temp = b.pop() + roundup;
		    } else {
			temp = a.pop() + roundup;
		    }

		    if(temp>9) {roundup = 1; temp-=10;}
		    else       roundup = 0;
		    c.push(temp);
		    if(i==max-1 && roundup == 1)
			c.push(1);
		}
		return c;
	}
}

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

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

public class Main
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		for(int i=0; i<n; i++)
		{
		    String s1 = br.readLine();
		    String s2 = br.readLine();
		    if(s1.length() > 80 || s2.length() > 80)
			System.out.println("overflow");
		    else if ((s1.length() < 10) && (s2.length() < 10)) {
			System.out.println(Integer.parseInt(s1.toString()) + 
					   Integer.parseInt(s2.toString()));
		    } else {	
			Stack budget = cal(s1,s2);
			int m = budget.size();
			if( m > 80 ) System.out.println("overflow");
			else {
			    for(int j=0; j<m; j++)
			    System.out.print(budget.pop());
			    System.out.println();
			}
		    }
		 }
	}

	private static Stack cal(String s1, String s2)
	{
		Stack<Byte> a = new Stack<Byte>();
		Stack<Byte> b = new Stack<Byte>();
		Stack<Byte> c = new Stack<Byte>();
		char[] char1 = s1.toCharArray();
		char[] char2 = s2.toCharArray();
		int lenA = char1.length, lenB = char2.length, max = Math.max(lenA, lenB);
		for(int i=0; i<	lenA; i++) 
			a.push(Byte.parseByte(char1[i]+""));
		for(int i=0; i< lenB; i++)
			b.push(Byte.parseByte(char2[i]+""));

		byte temp=0, roundup=0; //determine whether round up is needed
		for(int i=0; i<max; i++)
		{
		    if( !a.isEmpty() && !b.isEmpty() ) {
		        temp = a.pop() + b.pop() + roundup;
		    } else if( a.isEmpty() ) {
			temp = b.pop() + roundup;
		    } else {
			temp = a.pop() + roundup;
		    }

		    if(temp>9) {roundup = 1; temp-=10;}
		    else       roundup = 0;
		    c.push(temp);
		    if(i==max-1 && roundup == 1)
			c.push((byte)1);
		}
		return c;
	}
}

Compiler output:
Main.java:52: error: incompatible types: possible lossy conversion from int to byte
		        temp = a.pop() + b.pop() + roundup;
		                                 ^
Main.java:54: error: incompatible types: possible lossy conversion from int to byte
			temp = b.pop() + roundup;
			               ^
Main.java:56: error: incompatible types: possible lossy conversion from int to byte
			temp = a.pop() + roundup;
			               ^
3 errors
Language: Java

mport java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        input.nextLine();
        for(int i = 0 ; i < n ; i++){
        	BigInteger a = new BigInteger(input.nextLine());
        	BigInteger b = new BigInteger(input.nextLine());
        	if(a.add(b).toString().length() < 80){
        		System.out.println(a.add(b));
        	}else{
        		System.out.println("overflow");
        	}
        }
    }    
}

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

import java.math.BigInteger;
import java.util.Scanner;


public class Aoj0015
{

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int dataset = scan.nextInt();
		for(int i = 0; i < dataset; i++)
		{
			BigInteger a = scan.nextBigInteger();
			BigInteger b = scan.nextBigInteger();
			System.out.println(a.add(b));
		}
	}
}

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

import java.math.BigInteger;
import java.util.Scanner;


public class main
{

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int dataset = scan.nextInt();
		for(int i = 0; i < dataset; i++)
		{
			BigInteger a = scan.nextBigInteger();
			BigInteger b = scan.nextBigInteger();
			System.out.println(a.add(b));
		}
	}
}

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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		BigInteger a,b;
		for (int i = 0; i < N; i++) {
			a = new BigInteger(in.readLine());
			b = new BigInteger(in.readLine());
			if(a.toString().length()>80||b.toString().length()>80)
				System.out.println("overflow");
			a=a.add(b);
			if(a.toString().length()>80)
				System.out.println("overflow");
			else {
				System.out.println(a.toString());
			}
		}
	}
}

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
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:5: error: cannot find symbol
		BigInteger a,b;
		^
  symbol:   class BigInteger
  location: class Main
Main.java:7: error: cannot find symbol
			a = new BigInteger(in.readLine());
			        ^
  symbol:   class BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
			b = new BigInteger(in.readLine());
			        ^
  symbol:   class BigInteger
  location: class Main
7 errors
Language: Java

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(in.readLine());
		BigInteger a,b;
		for (int i = 0; i < N; i++) {
			a = new BigInteger(in.readLine());
			b = new BigInteger(in.readLine());
			if(a.toString().length()>80||b.toString().length()>80){
				System.out.println("overflow");
				continue;
			}
			a=a.add(b);
			if(a.toString().length()>80)
				System.out.println("overflow");
			else {
				System.out.println(a.toString());
			}
		}
	}
}

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
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:5: error: cannot find symbol
		BigInteger a,b;
		^
  symbol:   class BigInteger
  location: class Main
Main.java:7: error: cannot find symbol
			a = new BigInteger(in.readLine());
			        ^
  symbol:   class BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
			b = new BigInteger(in.readLine());
			        ^
  symbol:   class BigInteger
  location: class Main
7 errors
Language: Java

import java.util.Scanner;
import java.math.BigInteger;

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

	int n = sc.nextInt();
	for(int i = 0; i < n; ++i){
	    BigInteger bi1 = new BigInteger(sc.next());
	    BigInteger bi2 = new BigInteger(sc.next());

	    String result = (bi1.add(bi2)).toString();

	    if(result.length() > 80){
		result = "overflow";
	    }

	    System.out.println(result);
	}
    }
}

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

mport java.math.BigInteger;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		while(t--!=0){
			BigInteger b = sc.nextBigInteger().add(sc.nextBigInteger());
			System.out.println(b.toString().length()>80?"overflow":b.toString());
		}
	}
}

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

import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int rep = sc.nextInt();

        for(int u = 0; u < rep; u++){
            String a = sc.next();
            String b = sc.next();

            int longer;
            if(a.length() > b.length()){
                longer = a.length();
            }else{
                longer = b.length();
            }

            int[] sum = new int[longer+1];
            int memory = 0;

            for(int i = 1; i <= longer; i++){
                if(a.length() >= i && b.length() >= i){
                    memory = Integer.parseInt("" + a.charAt(a.length()-i)) + Integer.parseInt("" + b.charAt(b.length()-i)) + memory;
                    sum[i-1] = memory % 10;
                    memory = memory / 10;
                }else if(a.length() >= i && b.length() < i){
                    memory = Integer.parseInt("" + a.charAt(a.length()-i)) + memory;
                    sum[i-1] = memory % 10;
                    memory = memory / 10;
                }else{
                    memory = Integer.parseInt("" + b.charAt(b.length()-i)) + memory;
                    sum[i-1] = memory % 10;
                    memory = memory / 10;
                }
            }
            sum[longer] = memory;

            if(longer > 80 || (longer == 80 && sum[80] > 0)){
                System.out.println("overflow")
                continue;
            }

            boolean zero_check = true;

            for(int i = longer; i > 0; i--){
                if(zero_check && sum[i] == 0){
                    continue;
                }else if(zero_check && sum[i] > 0){
                    zero_check = false;
                    System.out.print(sum[i]);
                }else{
                    System.out.print(sum[i]);
                }
            }
            System.out.println(sum[0]);

        }
    }
}

Compiler output:
Main.java:41: error: ';' expected
                System.out.println("overflow")
                                              ^
1 error
Language: C

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

#define digit_max 80
#define N 50

int main(){
	int sample = 0;
	scanf("%d",&sample);
	for (int i = 0; i < sample; i++)
	{
		char temp1[101],temp2[101];
		scanf("%s%s",temp1, temp2);
		
		int len1 = strlen(temp1);
		int len2 = strlen(temp2);
		int number[101] = {0};
		int l = 0;
		if (len1 > 80 || len2 > 80)
		{
			printf("%s", "overflow");
		}
		else if (len1 > len2)
		{
			l = len1;
			for (int i = 0; i < len1; i++)
			{
				if (i < len2)
				{
					int a = (temp1[len1-1-i] - '0');
					int b = (temp2[len2-1-i] - '0');
					number[i] = a+b;
				} 
				else
				{
					int a = (temp1[len1-1-i] - '0');
					number[i] = a;
				}
			}//for
			for (int i=0; i < len1; i ++)
			{
				if (number[i] > 9)
				{
					number[i+1]++;
					number[i] = number[i]-10;
				}
			}
		}
		else
		{
			l = len2;
			for (int i = 0; i < len2; i++)
			{
				if (i < len1)
				{
					int a = (temp1[len1-1-i] - '0');
					int b = (temp2[len2-1-i] - '0');
					number[i] = a+b;
				} 
				else
				{
					int a = (temp2[len2-1-i] - '0');
					number[i] = a;
				}
			}//for
			for (int i=0; i < len2; i ++)
			{
				if (number[i] > 9)
				{
					number[i+1]++;
					number[i] = number[i]-10;
				}
			}	
		}
		if (number[l] != 0)
			printf("%d", number[l]);
		for (int i = 0; i < l; i++)
		{
			printf("%d", number[l-i-1]);
		}
		printf("\n");
	}
	return 0;
}



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

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

int c[100];

void add(char*a, char*b)  //鮟倩ョ、a豈巴髟ソ
{
    int i,j;
    for(i=0; i<100;i++)
            c[i]=0;//蜥檎噪蜷?ス咲スョ髮カ
    int la=strlen(a), lb=strlen(b);
    for( i=la,j=lb;i>la-lb&&j>0;i--,j--) // 菫晉蕗c豈泌刈謨ー譛?柄荳イ螟壻ク?ス?    {
            c[i]+=a[i-1]-'0'+b[j-1]-'0';
            if(c[i]>9)
            {
                c[i]-=10;
                c[i-1]++;
            }
    }
    for( i=la-lb;i>0;i--)
    {
            c[i]+=a[i-1]-'0';
            if(c[i]>9)
            {
                c[i]-=10;
                c[i-1]++;
            }
    }

    if(la==80&&c[0]==1)
        {
          printf("overflow\n");
        }
    else
    {
        if(c[0]==0)
            {
                for(i=1;i<=la;i++)
                    printf("%d",c[i]);
                printf("\n");
            }
            else
            {
                for(i=0;i<=la;i++)
                   printf("%d",c[i]);
                printf("\n");
            }
    }
}

int main()
{
    char a[100], b[100];
    int n;
    scanf("%d",&n);

    while(n--){
    scanf("%s%s",a,b);
    int la = strlen(a), lb = strlen(b);
    if(la>80 || lb>80)
        printf("overflow\n");
    else if(la>lb)
        add(a,b);
    else add(b,a);
    }
    return 0;
}

Compiler output:
main.c:20:5: error: expected identifier or '(' before 'for'
   20 |     for( i=la-lb;i>0;i--)
      |     ^~~
main.c:20:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
   20 |     for( i=la-lb;i>0;i--)
      |                   ^
main.c:20:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '--' token
   20 |     for( i=la-lb;i>0;i--)
      |                       ^~
main.c:30:5: error: expected identifier or '(' before 'if'
   30 |     if(la==80&&c[0]==1)
      |     ^~
main.c:34:5: error: expected identifier or '(' before 'else'
   34 |     else
      |     ^~~~
main.c:49:1: error: expected identifier or '(' before '}' token
   49 | }
      | ^
Language: C

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

int c[100];

void add(char*a, char*b)  //鮟倩ョ、a豈巴髟ソ
{
    int i,j;
    for(i=0; i<100;i++)
            c[i]=0;//蜥檎噪蜷?ス咲スョ髮カ
    int la=strlen(a), lb=strlen(b);
    for( i=la,j=lb;i>la-lb&&j>0;i--,j--) // 菫晉蕗c豈泌刈謨ー譛?柄荳イ螟壻ク?ス?    {
            c[i]+=a[i-1]-'0'+b[j-1]-'0';
            if(c[i]>9)
            {
                c[i]-=10;
                c[i-1]++;
            }
    }

    for(i=la-lb;i>0;i--)
    {
            c[i]+=a[i-1]-'0';
            if(c[i]>9)
            {
                c[i]-=10;
                c[i-1]++;
            }
    }

    if(la==80&&c[0]==1)
    {
          printf("overflow\n");
    }
    else
    {
        if(c[0]==0)
            {
                for(i=1;i<=la;i++)
                    printf("%d",c[i]);
                printf("\n");
            }
        else
            {
                for(i=0;i<=la;i++)
                   printf("%d",c[i]);
                printf("\n");
            }
    }
}

int main()
{
    char a[100], b[100];
    int n;
    scanf("%d",&n);

    while(n--){
    scanf("%s%s",a,b);
    int la = strlen(a), lb = strlen(b);
    if(la>80 || lb>80)
        printf("overflow\n");
    else if(la>lb)
        add(a,b);
    else add(b,a);
    }
    return 0;
}

Compiler output:
main.c:21:5: error: expected identifier or '(' before 'for'
   21 |     for(i=la-lb;i>0;i--)
      |     ^~~
main.c:21:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
   21 |     for(i=la-lb;i>0;i--)
      |                  ^
main.c:21:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '--' token
   21 |     for(i=la-lb;i>0;i--)
      |                      ^~
main.c:31:5: error: expected identifier or '(' before 'if'
   31 |     if(la==80&&c[0]==1)
      |     ^~
main.c:35:5: error: expected identifier or '(' before 'else'
   35 |     else
      |     ^~~~
main.c:50:1: error: expected identifier or '(' before '}' token
   50 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int c[100];
void add(char*a, char*b)  //鮟倩ョ、a豈巴髟ソ
{
    int i,j;
    int la=strlen(a), lb=strlen(b);
     for(i=0; i<=la;i++)
            c[i]=0;//蜥檎噪蜷?ス咲スョ髮カ
    for( i=la,j=lb;i>la-lb&&j>0;i--,j--) // 菫晉蕗c豈泌刈謨ー譛?柄荳イ螟壻ク?ス?    {
            c[i]+=a[i-1]+b[j-1]-96;
            if(c[i]>9)
            {
                c[i]-=10;
                c[i-1]++;
            }
    }
    for( i=la-lb;i>0;i--)
    {
            c[i]+=a[i-1]-'0';
            if(c[i]>9)
            {
                c[i]-=10;
                c[i-1]++;
            }
    }
    if(la==80&&c[0]==1)
        printf("overflow\n");
    else
    {
        if(c[0]==0)
            {
                for(i=1;i<=la;i++)
                    printf("%d",c[i]);
                printf("\n");
            }
            else
            {
                for(i=0;i<=la;i++)
                   printf("%d",c[i]);
                printf("\n");
            }
    }
}
int main()
{
    char a[100], b[100];
    int n;
    scanf("%d",&n);
    while(n--)
    {
       scanf("%s%s",a,b);
       int la = strlen(a), lb = strlen(b);
       if(la>80 || lb>80)
          printf("overflow\n");
       else if(la>lb)
          add(a,b);
       else add(b,a);
    }
    return 0;
}

Compiler output:
main.c:18:5: error: expected identifier or '(' before 'for'
   18 |     for( i=la-lb;i>0;i--)
      |     ^~~
main.c:18:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
   18 |     for( i=la-lb;i>0;i--)
      |                   ^
main.c:18:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '--' token
   18 |     for( i=la-lb;i>0;i--)
      |                       ^~
main.c:27:5: error: expected identifier or '(' before 'if'
   27 |     if(la==80&&c[0]==1)
      |     ^~
main.c:29:5: error: expected identifier or '(' before 'else'
   29 |     else
      |     ^~~~
main.c:44:1: error: expected identifier or '(' before '}' token
   44 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>	
void fun1();
void fun2(int len1,int len2,int j);
char str1[100],str2[100];
int Ans[82];
int main(void)
{
	int len1,len2,len_Ans,i,j,n;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		fun1();
		scanf("%s",str1);
		scanf(" %s",str2);
		len1=strlen(str1);
		len2=strlen(str2);
		if(len1>=80 || len2>=80) puts("overflow");
		else{
			len1--;
			len2--;
			for(j=0;len1>=0 || len2>=0;j++,len1--,len2--){
				fun2(len1,len2,j);
			}
			if(Ans[j]==0) j--;
			for(;j>=0;j--){
				printf("%d",Ans[j]);
			}
		printf("\n");
		}
	}
	return 0;
}

void fun1()
{
	int i;
	for(i=0;i<100;i++){
	str1[i]='\0';
	str2[i]='\0';
	}
	for(i=0;i<82;i++){
		Ans[i]=0;
	}
	
	return ;
}

void fun2(int len1,int len2,int j)
{
	if(len1>=0 && len2>=0){
		Ans[j]+=(str1[len1]-'0')+(str2[len2]-'0');
		Ans[j+1]+=Ans[j]/10;
		Ans[j]=Ans[j]%10;
		}
	else if(len1>=0 && len2<0){
		Ans[j]+=str1[len1]-'0';
		Ans[j+1]+=Ans[j]/10;
		Ans[j]=Ans[j]%10;
		}
	else if(len1<0 && len2>=0){
		Ans[j]+=str2[len2]-'0';
		Ans[j+1]=Ans[j]/10;
		Ans[j]=Ans[j]%10;
		}
		

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

#include<stdio.h>

int main() {
  char a[100], b[100], c[100];
  int i, j, k, n, s;
  char m;
  scanf("%d", &n);
  for (s = 0; s < n; s ++) {
    for (i = 0; i < 84; i ++) {
      a[i] = 0; b[i] = 0;
    }
    scanf(" %s", c);
    for (i = 0; c[i] != 0; i ++);
    if(i => 80){
      printf("overflow\n");
      continue;
    }
    for (j = 0; j < i; j ++) a[j] = c[i - j - 1];
    k = i;
    scanf(" %s", c);
    for (i = 0; c[i] != 0; i ++);
    if(i => 80){
      printf("overflow\n");
      continue;
    }
    for (j = 0; j < i; j ++) b[j] = c[i - j - 1]; 
    if (k > i) {
      for (j = i; j < k; j ++) b[j] = '0';
    } else if (i > k) {
      for (j = k; j < i; j ++) a[j] = '0';
    }
    for (i = 0; i < 81; i ++) c[i] = 0;
    for (i = 0; a[i] || b[i]; i ++) {
      if (i == 80) {
	printf("overflow");
	i++;
	break;
      }
      m = a[i] - '0' + b[i] - '0';
      if (m > 9) {
	if (a[i + 1]) {
	  a[i + 1] += 1;
	} else {
	  a[i + 1] = '1'; b[i + 1] = '0';
	}
	m -= 10;
      }
      m += '0'; c[i] = m;
    }
    i --;
    for (; i < 80 && i > -1; i --) printf("%c", c[i]);
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:11: error: expected expression before '>' token
   14 |     if(i => 80){
      |           ^
main.c:22:11: error: expected expression before '>' token
   22 |     if(i => 80){
      |           ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  int N;
  scanf("%d\n",&N);
  while(N){
    char a[81],b[81],c[82];
    int al,bl,cl;File Edit Options Buffers Tools C Help
#include <stdio.h>
#include <string.h>
int main(){
  int N;
  scanf("%d\n",&N);
  while(N){
    char a[81],b[81],c[82];
    int al,bl,cl;
    scanf("%s\n",a); scanf("%s\n",b);
    al=strlen(a);bl=strlen(b);cl=81;
    if((al>80)||(bl>80)) puts("overflow");
    else {
      int i=82;
      memset(c,0,82);
      while(al||bl|i){
        int an,bn;
        if(al>0) an=a[--al]-'0';
        else   an=0;
        if(bl>0) bn=b[--bl]-'0';
        else   bn=0;
        c[--cl]=c[cl]+an+bn;
        if(c[cl]>9){
          c[cl-1]=1;c[cl]=c[cl]%10+'0';
        }
        else{
          c[cl-1]=0;
          c[cl]=c[cl]+'0';
        }
        i--;
      }
      if (c[cl-1]) c[cl-1]='1';
      if (!cl) puts("overflow");
      else if(!c[cl-1]) puts(&c[cl]);
      else puts(&c[cl-1]);
    }
    N--;
  }
  return 0;
}
    scanf("%s\n",a); scanf("%s\n",b);
    al=strlen(a);bl=strlen(b);cl=81;
    if((al>80)||(bl>80)) puts("overflow");
    else {
      int i=82;
      memset(c,0,82);
      while(al||bl|i){
        int an,bn;
        if(al) an=a[--al]-'0';
        else   an=0;
        if(bl) bn=b[--bl]-'0';
        else   bn=0;
        c[--cl]=c[cl]+an+bn;
        if(c[cl]>9){
          c[cl-1]=1;c[cl]=c[cl]%10+'0';
        }
        else{
          c[cl-1]=0;
          c[cl]=c[cl]+'0';
        }
        i--;
      }
      if (c[cl-1]) c[cl-1]='1';
      if (!cl) puts("overflow");
      else if(!c[cl-1]) puts(&c[cl]);
      else puts(&c[cl-1]);
    }
    N--;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: unknown type name 'File'
    8 |     int al,bl,cl;File Edit Options Buffers Tools C Help
      |                  ^~~~
main.c:8:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Options'
    8 |     int al,bl,cl;File Edit Options Buffers Tools C Help
      |                            ^~~~~~~
Language: C

#include <string.h>

int main(){
  int N,n;
  char inbuf[256];
  fgets(inbuf, 82, stdin);
  sscanf(inbuf,"%d\n",&N);
  for(n=0;n<N;n++){
    char a[85],b[85],c[82];
    int al,bl,cl;
    fgets(inbuf, 82, stdin); sscanf(inbuf,"%s\n",a);
    fgets(inbuf, 82, stdin); sscanf(inbuf,"%s\n",b);
    al=strlen(a);bl=strlen(b);cl=80;
    if((al>80)||(bl>80)) puts("overflow");
    else {
      memset(c,0,82);
      while(al||bl){
        int an,bn;
        if(al>0) an=a[--al]-'0';else an=0;
        if(bl>0) bn=b[--bl]-'0';else bn=0;
        c[cl]+=an+bn;
        if(c[cl]>9){
          c[cl-1]=1;
          c[cl]=c[cl]%10+'0';
        }
        else{
          c[cl-1]=0;
          c[cl]=c[cl]+'0';
        }
        cl--;
      }
      if (c[0]) puts("overflow");
      else {
        if (!c[cl]) cl++;
        if (c[cl]==1) c[cl]='1';
        puts(&c[cl]);
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
    6 |   fgets(inbuf, 82, stdin);
      |   ^~~~~
main.c:6:20: error: 'stdin' undeclared (first use in this function)
    6 |   fgets(inbuf, 82, stdin);
      |                    ^~~~~
main.c:2:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
    1 | #include <string.h>
  +++ |+#include <stdio.h>
    2 | 
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
    6 |   fgets(inbuf, 82, stdin);
      |                    ^~~~~
main.c:7:3: error: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration]
    7 |   sscanf(inbuf,"%d\n",&N);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'sscanf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'sscanf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'sscanf'
main.c:14:26: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   14 |     if((al>80)||(bl>80)) puts("overflow");
      |                          ^~~~
main.c:14:26: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

def writeSum
	number1 = gets.to_i
	number2 = gets.to_i
	sum = number1 + number2
	if sum >= 10 ** 81
		puts "overflow"
	else
		puts sum
	end
end

dataSet = gets.to_i
1.upto(dataSet) do |i|
	writeSum()
end

Compiler output:
main.c:1:1: error: unknown type name 'def'
    1 | def writeSum
      | ^~~
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'number1'
    2 |         number1 = gets.to_i
      |         ^~~~~~~
main.c:13:1: error: invalid suffix "upto" on floating constant
   13 | 1.upto(dataSet) do |i|
      | ^~~~~~
Language: C

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

int main()
{
	char a[1024], b[1024], c[1024];
	int i, j, n, p;
	int a1, b1;
	int leaf;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		for (j = 0; j < 80; j++) {
			a[j] = b[j] = '\0';
		}
		scanf("%s", a);
		scanf("%s", b);
		if (strlen(a) > 80 || strlen(b) > 80) {
			puts("overflow");
			continue;
		}
		strrev(a);
		strrev(b);
		leaf = 0;
		for (j = 0; j < 80; j++) {
			a1 = a[j] == '\0' ? 0 : a[j] - '0';
			b1 = b[j] == '\0' ? 0 : b[j] - '0';
			c[j] = (a1 + b1 + leaf) % 10 + '0';
			leaf = (a1 + b1 + leaf) / 10;
		}
		if (leaf == 1) {
			puts("overflow");
			continue;
		}
		p = 0;
		for (j = 79; c[j] == '0'; j--) {
		}
		c[j + 1] = '\0';
		strrev(c);
		printf("%s\n", c);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:17: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
   22 |                 strrev(a);
      |                 ^~~~~~
      |                 strsep
Language: C

n = input()

for i in range(n):
    a = input(),
    b = input()
    print a + b

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | n = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'for'
    3 | for i in range(n):
      | ^~~
Language: C

#include<stdio.h>

int main(void)
{
int a,i,flag=0;
char s[81]={0};
char t[80]={0};
char x[2]={0};
char y[2]={0};
char ans[100]

while(scanf("%80s%1s%*s%80s%1s%*s",&s,&x,&t,&y)!=EOF){
flag=0;
for(i=0;i<80;i++){
a=s[i]+t[i];
if(a>=10){

}

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
   12 | while(scanf("%80s%1s%*s%80s%1s%*s",&s,&x,&t,&y)!=EOF){
      | ^~~~~
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
main.c:18:1: error: expected declaration or statement at end of input
main.c:18:1: error: expected declaration or statement at end of input
Language: C

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

int makeBigInt80(char*, const char*);
int sumBigInt80(char*, const char*, const char*);

int main(void){
	int i, n;
	char buf[81], a[81], b[81];
	
	scanf("%d", &n);
	
	while(n--){
		scanf(" %s", buf);
		//makeBigInt80(a, buf);
		
		scanf(" %s", buf);
		//makeBigInt80(b, buf);
		
		//if(sumBigInt80(buf, a, b))
			printf("overflow\n");
		//else{
		//	for(i = 0; i < 81; i++)
		//		if(buf[i] != '0') break;
			
		//	printf("%s\n", buf + i);
		}
	}
}

int makeBigInt80(char *s, const char *t){
	int l, i;
	
	l = 80 - strlen(t);
		
	for(i = 0; i < l; i++)
		s[i] = '0';
	
	strcpy(s + l, t);
	
	return 0;
}

int sumBigInt80(char *sum, const char *a, const char *b){
	int i, n;
	int m = 0;
	
	for(i = 79; i >= 0; i--){
		n = (a[i] - '0') + (b[i] - '0') + m;
		m = n / 10;
		sum[i] = (n % 10) + '0';
	}
	
	sum[80] = '\0';
	
	return (m ? -1 : 0);
}

Compiler output:
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;



int main(){
	int n;
	string x, y;
	int a, b, c;
	cin >> n;
	for (int i = 0; i < n; i++){
		cin >> x >> y;
		if (x.length() > 80 || y.length() > 80){
			cout << "overflow" << endl;
		}
		else{
			a = stoi(x);
			b = stoi(x);
			if (to_string(a + b).length() > 80){
				cout << "overflow" << endl;
			}
			else cout << a + b << endl;
		}
	}
	return 0;
}

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

#include <stdio.h>
#include <string.h>
????
int main(void)
{
????????int n, i, j, len, s, c;
????????char f[90], f2[90], t[90], t2[90], ans[90];
????????????
????????scanf("%d", &n);
????????????
????????for (i = 0; i < n; i++){
????????????????????
????????????????for (j = 0; j < 90; j++){
????????????????????????t[j] = '0';
????????????????????????t2[j] = '0';
????????????????}
????????????????????
????????????????scanf("%81s", f);
????????????????scanf("%81s", f2);
????????????????????
????????????????if (strlen(f) > 80 || strlen(f2) > 80){
????????????????????????printf("overflow\n");
????????????????????????continue;
????????????????}
????????????????????
????????????????if (strlen(f) > strlen(f2))len = strlen(f);
????????????????????
????????????????else len =?? strlen(f2);
????????????????????
????????????????for (j = 0; j < strlen(f); j++){
????????????????????????t[j] = f[strlen(f) -1 - j];
????????????????}
????????????????????
????????????????for (j = 0; j < strlen(f2); j++){
????????????????????????t2[j] = f2[strlen(f2) -1 - j];
????????????????}
????????????????????
????????????????????
????????????????for (j = 0; j < len; j++){
????????????????????????t[j] += t2[j] - '0';
????????????????????????????
????????????????????????if (t[j] > '9'){
????????????????????????????????t[j] -= 10;
????????????????????????????????t[j + 1]++;
????????????????????????}
????????????????}
????????????????????
????????????????if (t[len] != '0')t[len + 1] = '\0';
????????????????????
????????????????????
????????????????else t[len] = '\0';
????????????????????
????????????????for(j = 0; j < strlen(t); j++){
????????????????????????ans[j] = t[strlen(t) - 1 - j];
????????????????}
????????????????ans[strlen(t)] = '\0';
????????????????????
????????????????if (strlen(ans) > 80){
????????????????????????printf("overflow\n");
????????????????????????continue;
????????????????}
????????????????????
????????????????printf("%s\n", ans);
????????}
????????return (0);
????????????
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ????
      | ^
Language: C

#include <stdio.h>
#include <string.h>
????
int main(void)
{
????????int n, i, j, len, s, c;
????????char f[90], f2[90], t[90], t2[90], ans[90];
????????????
????????scanf("%d", &n);
????????????
????????for (i = 0; i < n; i++){
????????????????????
????????????????for (j = 0; j < 90; j++){
????????????????????????t[j] = '0';
????????????????????????t2[j] = '0';
????????????????}
????????????????????
????????????????scanf("%81s", f);
????????????????scanf("%81s", f2);
????????????????????
????????????????if (strlen(f) > 80 || strlen(f2) > 80){
????????????????????????printf("overflow\n");
????????????????????????continue;
????????????????}
????????????????????
????????????????if (strlen(f) > strlen(f2))len = strlen(f);
????????????????????
????????????????else len =?? strlen(f2);
????????????????????
????????????????for (j = 0; j < strlen(f); j++){
????????????????????????t[j] = f[strlen(f) -1 - j];
????????????????}
????????????????????
????????????????for (j = 0; j < strlen(f2); j++){
????????????????????????t2[j] = f2[strlen(f2) -1 - j];
????????????????}
????????????????????
????????????????????
????????????????for (j = 0; j < len; j++){
????????????????????????t[j] += t2[j] - '0';
????????????????????????????
????????????????????????if (t[j] > '9'){
????????????????????????????????t[j] -= 10;
????????????????????????????????t[j + 1]++;
????????????????????????}
????????????????}
????????????????????
????????????????if (t[len] != '0')t[len + 1] = '\0';
????????????????????
????????????????????
????????????????else t[len] = '\0';
????????????????????
????????????????for(j = 0; j < strlen(t); j++){
????????????????????????ans[j] = t[strlen(t) - 1 - j];
????????????????}
????????????????ans[strlen(t)] = '\0';
????????????????????
????????????????if (strlen(ans) > 80){
????????????????????????printf("overflow\n");
????????????????????????continue;
????????????????}
????????????????????
????????????????printf("%s\n", ans);
????????}
????????return 0;
????????????
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ????
      | ^
Language: C

#include<stdio.h> 
int main(){
 
  int n,a,s_sum,digit = 0;
  scanf("%d",&n);

  while(scanf("%d",&a)!=EOF){
    for(i=1;i<=n;i++)
    {
       s_sum=s_sum+a;
    }

  /* ?????°????¨???? */ 
  while(number!=0){ 
    number = number / 10; 
    ++digit; 
  } 
    if(digit<=80){
     printf("%d\n", s_sum);
    }else{
     printf("overflow\n");       
    }
   }   
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'i' undeclared (first use in this function)
    8 |     for(i=1;i<=n;i++)
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'number' undeclared (first use in this function)
   14 |   while(number!=0){
      |         ^~~~~~
Language: C

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

int main(void)
{
  int n, i, j, fa, fb, carry, ans[100];
  char a[101], b[101];

  scnaf("%d", &n);

  while(n--){
    scnaf("%s", a);
    scnaf("%s", b);
    if(strlen(a) > 80 || strlen(b) > 80){
      printf("overflow\n");
      continue;
    }
    fa = strlen(a);
    fb = strlen(b);
    j = carry = 0;

    while(fa || fb){
      if(fa) ans[j] += a[--fa] - '0';
      if(fb) ans[j] += b[--fb] - '0';
      carry = ans[j] / 10;
      if(carry) ans[j+1] += 1;
      else
	ans[j] %= 10;
      j++;
    }

    if(j >= 80){
      printf("overflow\n");
      continue;
    }

    for(; j >= 0; j--)
      printf("%d", ans[j]);
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |   scnaf("%d", &n);
      |   ^~~~~
      |   scanf
Language: C

#include<stdio.h>
int main(void){
   int sum, N, i;
   long a, b;
   scanf("%d", &N);
   for ( i = 0; i < N, i++ ) {
      scanf("%d %d", a, b);
      if( a >= 10 * 80 || b = 10 * 8 || ( a + b ) >= 10 * 8) printf("overflow");
      else printf("%d", a + b);
   }
   return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before ')' token
    6 |    for ( i = 0; i < N, i++ ) {
      |                           ^~
      |                           ;
main.c:8:29: error: lvalue required as left operand of assignment
    8 |       if( a >= 10 * 80 || b = 10 * 8 || ( a + b ) >= 10 * 8) printf("overflow");
      |                             ^
Language: C

//½{·Ìa
#include<stdio.h>
#define N 10000

void mpStr2Num(char *str,int *num)//ñð½{·®É
{
    char *ss;
    int  *nn;
    int  k;
    int  x;

    while (*str == ' ' || *str == '\t') str++;
    while (*str == '0') str++;
    ss = str;
    while (*ss >= '0' && *ss <= '9') ss++;

    if (ss == str) {
        *num = 0;
        return;
    }

    x = 0;
    k = 1;
    nn = num;
    do {
        x += (*--ss - '0') * k;
        k *= 10;
        if (k == N || ss == str) {
            *++nn = x;
            x = 0;
            k = 1;
        }
    } while (ss != str);

    *num = nn - num;
}

void mpNum2Str(int *num,char *str)//½{·®ðñÉ
{
    int  i, j;
    char *ss;
    int  x;

    if (*num == 0) {
        *str++ = '0';
        *str = '\0';
        return;
    }

    ss = str - 1;
    for (i = *num; i > 0; i--) {
        x = *++num;
        for (j = 1; j < N; j *= 10) {
            *++ss = x % 10 + '0';
            x /= 10;
        }
    }
    while (*ss == '0') ss--;

    *(ss + 1) = '\0';    
    while (str < ss) {
        x = *str;
        *str++ = *ss;
        *ss-- = x;
    }
}

void mpAdd(int *ret, int *a, int *b)
{
    int  i;
    int  lr, la, lb;
    int  *rr;
    int  x;

    la = *a;
    lb = *b;
    lr = (la >= lb) ? la : lb;

    rr = ret;
    x = 0;
    for (i = 1; i <= lr; i++) {
        if (i <= la) x += *++a;
        if (i <= lb) x += *++b;
        if (x < N) {
            *++rr = x;
            x = 0;
        } else {
            *++rr = x - N;
            x = 1;
        }
    }
    *++rr = x;
    *ret = lr + x;
}

int main(void){
	int s[30],a[30],b[30];
	char ss[80],aa[80],bb[80];

	gets(aa);
	mpStr2Num(aa,a);

	gets(bb);
	mpStr2Num(bb,b);

	mpAdd(s,a,b);
	mpNum2Str(s,ss);
	printf("%s\n",ss);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:100:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
  100 |         gets(aa);
      |         ^~~~
      |         fgets
Language: C

//½{·Ìa
#include<stdio.h>
#include<string.h>
#define N 10000

void mpStr2Num(char *str,int *num)//ñð½{·®É
{
    char *ss;
    int  *nn;
    int  k;
    int  x;

    while (*str == ' ' || *str == '\t') str++;
    while (*str == '0') str++;
    ss = str;
    while (*ss >= '0' && *ss <= '9') ss++;

    if (ss == str) {
        *num = 0;
        return;
    }

    x = 0;
    k = 1;
    nn = num;
    do {
        x += (*--ss - '0') * k;
        k *= 10;
        if (k == N || ss == str) {
            *++nn = x;
            x = 0;
            k = 1;
        }
    } while (ss != str);

    *num = nn - num;
}

void mpNum2Str(int *num,char *str)//½{·®ðñÉ
{
    int  i, j;
    char *ss;
    int  x;

    if (*num == 0) {
        *str++ = '0';
        *str = '\0';
        return;
    }

    ss = str - 1;
    for (i = *num; i > 0; i--) {
        x = *++num;
        for (j = 1; j < N; j *= 10) {
            *++ss = x % 10 + '0';
            x /= 10;
        }
    }
    while (*ss == '0') ss--;

    *(ss + 1) = '\0';    
    while (str < ss) {
        x = *str;
        *str++ = *ss;
        *ss-- = x;
    }
}

void mpAdd(int *ret, int *a, int *b)
{
    int  i;
    int  lr, la, lb;
    int  *rr;
    int  x;

    la = *a;
    lb = *b;
    lr = (la >= lb) ? la : lb;

    rr = ret;
    x = 0;
    for (i = 1; i <= lr; i++) {
        if (i <= la) x += *++a;
        if (i <= lb) x += *++b;
        if (x < N) {
            *++rr = x;
            x = 0;
        } else {
            *++rr = x - N;
            x = 1;
        }
    }
    *++rr = x;
    *ret = lr + x;
}

int main(void){
	int s[30],a[30],b[30];
	char ss[80],aa[80],bb[80];
	int n,cnt,i;

	memset(ss,'\0',sizeof(ss));
	memset(aa,'\0',sizeof(aa));
	memset(bb,'\0',sizeof(bb));
	scanf("%d ",&n);
	while(n--){
		cnt=0;
	gets(aa);
	mpStr2Num(aa,a);

	gets(bb);
	mpStr2Num(bb,b);

	mpAdd(s,a,b);
	mpNum2Str(s,ss);
	for(i=0;i<81;i++){
		if(ss[i]!='\0'){
			cnt++;
		}
		if(cnt>=9){
			printf("overflow\n");
			goto end;
		}
	}
	printf("%s\n",ss);
end:
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:108:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
  108 |         gets(aa);
      |         ^~~~
      |         fgets
Language: C

//½{·Ìa
#include<stdio.h>
#include<string.h>
#define N 10000

void mpStr2Num(char *str,int *num)//ñð½{·®É
{
    char *ss;
    int  *nn;
    int  k;
    int  x;

    while (*str == ' ' || *str == '\t') str++;
    while (*str == '0') str++;
    ss = str;
    while (*ss >= '0' && *ss <= '9') ss++;

    if (ss == str) {
        *num = 0;
        return;
    }

    x = 0;
    k = 1;
    nn = num;
    do {
        x += (*--ss - '0') * k;
        k *= 10;
        if (k == N || ss == str) {
            *++nn = x;
            x = 0;
            k = 1;
        }
    } while (ss != str);

    *num = nn - num;
}

void mpNum2Str(int *num,char *str)//½{·®ðñÉ
{
    int  i, j;
    char *ss;
    int  x;

    if (*num == 0) {
        *str++ = '0';
        *str = '\0';
        return;
    }

    ss = str - 1;
    for (i = *num; i > 0; i--) {
        x = *++num;
        for (j = 1; j < N; j *= 10) {
            *++ss = x % 10 + '0';
            x /= 10;
        }
    }
    while (*ss == '0') ss--;

    *(ss + 1) = '\0';    
    while (str < ss) {
        x = *str;
        *str++ = *ss;
        *ss-- = x;
    }
}

void mpAdd(int *ret, int *a, int *b)
{
    int  i;
    int  lr, la, lb;
    int  *rr;
    int  x;

    la = *a;
    lb = *b;
    lr = (la >= lb) ? la : lb;

    rr = ret;
    x = 0;
    for (i = 1; i <= lr; i++) {
        if (i <= la) x += *++a;
        if (i <= lb) x += *++b;
        if (x < N) {
            *++rr = x;
            x = 0;
        } else {
            *++rr = x - N;
            x = 1;
        }
    }
    *++rr = x;
    *ret = lr + x;
}

int main(void){
	int s[30],a[30],b[30];
	char ss[80],aa[80],bb[80];
	int n,cnt,i;

	memset(ss,'\0',sizeof(ss));
	memset(aa,'\0',sizeof(aa));
	memset(bb,'\0',sizeof(bb));
	scanf("%d ",&n);
	while(n--){
		cnt=0;
	gets(aa);
	mpStr2Num(aa,a);

	gets(bb);
	mpStr2Num(bb,b);

	mpAdd(s,a,b);
	mpNum2Str(s,ss);
	for(i=0;i<81;i++){
		if(ss[i]!='\0'){
			cnt++;
		}
		if(cnt>=9){
			printf("overflow\n");
			cnt=-6;
		}
	}
	if(cnt>=0){
	printf("%s\n",ss);
	}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:108:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
  108 |         gets(aa);
      |         ^~~~
      |         fgets
Language: C


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

int atoiLonger(char a[],long num[]){
	int length;
	int i,j,k=0;
	char temp[10];
	for(i=0;i<9;i++){/*--*/
		temp[i]=0;
	}
	temp[9]='\0';
	length=strlen(a);
	for(j=0;j<9;j++){
		temp[j]='0';
	}
	j=8;
	for(i=length-1;i>=0;i--){
		temp[j]=a[i];
		if(j==0){
			num[k]=atoi(temp);
			k++;
			for(j=0;j<9;j++){
				temp[j]='0';
			}
			j=8;
		}else{
			j--;
		}
	}
	num[k]=atoi(temp);
	return 0;
}

int plus(long a[],long b[],long c[]){
	int temp,i,flag=0;
	for(i=0;i<9;i++){
		temp=a[i]+b[i]+flag;
		flag=0;
		if (temp>=1000000000){
			temp-=1000000000;
			flag=1;
		}
		c[i]=temp;
/*		printf("%dÚ:%d+%d=%d( Óê%d)\n",i,a[i],b[i],c[i],flag);
*/	}
	
	return flag;
}

int printLongNumber(long a[]){
	int i,flag=0;
	for(i=8;i>=0;i--){
		if(a[i]!=0 || flag==1){
			if (flag==0){
				printf("%d",a[i]);
				flag=1;
			}else{
				printf("%09d",a[i]);
			}
		}
	}
	
	printf("\n");
	return 0;
}

int scan(char a[]){
	/*char irane[100000];	*/	/*å«·¬H*/
	int i;
/*	for(i=0;i<100000;i++){	/*--*/
		irane[i]=0;
	}
*/	a[81]='a';
	scanf("%s",a);
	if(a[81]!='a'){
		printf("overflow\n");
		scanf("%*s");
		return 1;
	}
	return 0;
}

int main(){
	char a[82],b[82];
	long numA[9],numB[9],numC[9];
	int i,j,cnt;
	scanf("%d",&cnt);
	for(j=0;j<cnt;j++){
		for(i=0;i<9;i++){
			numA[i]=0;
			numB[i]=0;
			numC[i]=0;
		}
/*	*/	for(i=0;i<82;i++){
			a[i]='0';
			b[i]='0';
/*	*/	}
		if(scan(a))continue;
		if(scan(b))continue;
	/*	printf("%s\n%s\n",a,b);
	*/	
		atoiLonger(a,numA);
		atoiLonger(b,numB);
		
		if(plus(numA,numB,numC)){
			printf("overflow\n");
			continue;
		}
		
	/*	printLongNumber(numA);
		printLongNumber(numB);
	*/	printLongNumber(numC);
	}
	return 0;
}

Compiler output:
main.c: In function 'scan':
main.c:73:17: error: 'irane' undeclared (first use in this function)
   73 |                 irane[i]=0;
      |                 ^~~~~
main.c:73:17: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:75:2: error: expected identifier or '(' before '/' token
   75 | */      a[81]='a';
      |  ^
main.c:76:15: error: expected declaration specifiers or '...' before string constant
   76 |         scanf("%s",a);
      |               ^~~~
main.c:76:20: error: unknown type name 'a'
   76 |         scanf("%s",a);
      |                    ^
main.c:77:9: error: expected identifier or '(' before 'if'
   77 |         if(a[81]!='a'){
      |         ^~
main.c:82:9: error: expected identifier or '(' before 'return'
   82 |         return 0;
      |         ^~~~~~
main.c:83:1: error: expected identifier or '(' before '}' token
   83 | }
      | ^
Language: C

#include<stdio.h>

int main(){
	int c,d;
	__int64 a,b;
	
	while(scanf("%d",&c)!=EOF){
		for(d=0;d<c;d++){
			scanf("%I64d",&a);
			scanf("%I64d",&b);
			printf("%I64d\n",a+b);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    5 |         __int64 a,b;
      |         ^~~~~~~
      |         __int64_t