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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 |         __int64 *a,*b;
      |         ^~~~~~~
      |         __int64_t
main.c:9:20: error: '__int64' undeclared (first use in this function); did you mean '__int64_t'?
    9 |                 a=(__int64*)malloc(sizeof(int)*(c+1));
      |                    ^~~~~~~
      |                    __int64_t
main.c:9:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:28: error: expected expression before ')' token
    9 |                 a=(__int64*)malloc(sizeof(int)*(c+1));
      |                            ^
main.c:10:28: error: expected expression before ')' token
   10 |                 b=(__int64*)malloc(sizeof(int)*(c+1));
      |                            ^
Language: C

#incllude<stdio.h>
int Input(int *keta){
	int x,y,buf;
	for(x=0;x<80;x++){
		buf=getchar();
		if(buf=='\n')break;
		for(y=0;y<80;y++){
			if(y!=0||y!=79){
				keta[y]=keta[y+1];
			}
			keta[79]=buf;
		}	
	}
	return 0;
}
int Plus(int *a,int *b,int *ans){
	int c;
	for(c=79;c>=0;c--){
		ans[c]+=(a[c]+b[c]);
		if(ans[c]>9){
			ans[c]-=10
			if(c==0){return 1;}
			else ans[c-1]++;
		}
	}
	return 0;
}

int main(){
	int a[80],b[80],ans[80];
	int z,x,y;
	int kazu;
	scanf("%d",&kazu);
	for(z=0;z<kazu;z++){
		for(x=0;x<80;x++){a[x]=0;b[x]=0;c[x]=0;ans[x]=0;}
		Input(a);
		Input(b);
		if(Plus(a,b,ans)){printf("overflow");}
		else {
			for(x=0;x<80;x++){
				if(!ans[x]){
					continue;
				}
				else printf("%d",ans[x]);
			}
		}
	}

}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'Input':
main.c:5:21: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    5 |                 buf=getchar();
      |                     ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | #incllude<stdio.h>
main.c: In function 'Plus':
main.c:21:35: error: expected ';' before 'if'
   21 |                         ans[c]-=10
      |                                   ^
      |                                   ;
   22 |                         if(c==0){return 1;}
      |                         ~~         
main.c: In function 'main':
main.c:33:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   33 |         scanf("%d",&kazu);
      |         ^~~~~
main.c:33:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:33:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:33:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:35:49: error: 'c' undeclared (first use in this function)
   35 |                 for(x=0;x<80;x++){a[x]=0;b[x]=0;c[x]=0;ans[x]=0;}
      |                                                 ^
main.c:35:49: note: each undeclared identifier is reported only once for each function it appears in
main.c:38:35: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   38 |                 if(Plus(a,b,ans)){printf("overflow");}
      |                                   ^~~~~~
main.c:38:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:38:35: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:38:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:44:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   44 |                                 else printf("%d",ans[x]);
      |                                      ^~~~~~
main.c:44:38: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

#define Max 80
 
using namespace std;
 
int main(){
 
  int n, i, j;
  scanf("%d",&n);
 
  while(n--){
	  char str[100];
	  int ar[3][100], leng[3], ovf=0;

	  for(i=0; i<100; i++) ar[0][i]=ar[1][i]=ar[2][i]=0;

	  for(i=0; i<2; i++){
		scanf(" %s",str);
		leng[i]=strlen(str);
		if(Max<leng[i]) ovf=1;

			for(j=0; j<leng[i];j++)
				ar[i][j]=str[leng[i]-1-j]-'0';
	  }
	 
	for(i=0; i<100-1; i++){
		int s =(ar[2][i]+ar[0][i]+ar[1][i]);
		ar[2][i]  =s%10;
		ar[2][i+1]=s/10;
	}

	for(i=0; (i<100)&&(0==ar[2][100-1-i]); i++);
		leng[2]=100-i;

	
	if(Max<leng[2]) ovf=1;
 
  if(1==ovf)   printf("overflow\n");
  else{
	  for(i=0; i<leng[2]; i++)
		  printf("%d",ar[2][leng[2]-1-i]);
	  printf("\n");
  }
  }

    return 0;
}

Compiler output:
main.c:6:1: error: unknown type name 'using'
    6 | using namespace std;
      | ^~~~~
main.c:6:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    6 | using namespace std;
      |                 ^~~
Language: C

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

int main()
{
	char s1[125];
	char s2[125];
	char s3[125];
	int i, j, n, leap = 0;
	int ans;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		memset(s1, '0', 124);	s1[124] = '\0';
		memset(s2, '0', 124);	s2[124] = '\0';
		memset(s3, '0', 124);	s3[124] = '\0';
		scanf(" %s", s1);
		scanf(" %s", s2);
		if (strlen(s1) < strlen(s2)) {	// s1を長くする
			strcpy(s3, s2);
			strcpy(s2, s1);
			strcpy(s1, s3);
		}
		strrev(s1);
		strrev(s2);

		for (j = 0; !(s1[j] == '\0' || s2[j] == '\0'); j++) {
			ans = (s1[j] - '0') + (s2[j] - '0') + leap;
			s1[j] = ans % 10 + '0';
			leap = ans / 10;
		}
		for (; leap > 0; j++) {
			if (isdigit(s1[j])) {
				ans = (s1[j] - '0') + leap;
				s1[j] = ans % 10 + '0';
				leap = ans / 10;
			} else {
				s1[j] = '1';
				leap = 0;
				s1[j+1] = '\0';
			}
		}
		strrev(s1);
		printf("%s\n", s1);
	}


	return 0;
}

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

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

int main()
{
	char s1[125];
	char s2[125];
	char s3[125];
	int i, j, n, leap = 0;
	int ans;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		memset(s1, '0', 124);	s1[124] = '\0';
		memset(s2, '0', 124);	s2[124] = '\0';
		memset(s3, '0', 124);	s3[124] = '\0';
		scanf(" %s", s1);
		scanf(" %s", s2);
		if (strlen(s1) < strlen(s2)) {	/* s1を長くする */
			strcpy(s3, s2);
			strcpy(s2, s1);
			strcpy(s1, s3);
		}
		strrev(s1);
		strrev(s2);

		for (j = 0; !(s1[j] == '\0' || s2[j] == '\0'); j++) {
			ans = (s1[j] - '0') + (s2[j] - '0') + leap;
			s1[j] = ans % 10 + '0';
			leap = ans / 10;
		}
		for (; leap > 0; j++) {
			if (isdigit(s1[j])) {
				ans = (s1[j] - '0') + leap;
				s1[j] = ans % 10 + '0';
				leap = ans / 10;
			} else {
				s1[j] = '1';
				leap = 0;
				s1[j+1] = '\0';
			}
		}
		strrev(s1);
		printf("%s\n", s1);
	}


	return 0;
}

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

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

int main(){
	int i,j,k,n,tmp,flag,length;
	int yosan[20];
	char str[81],str2[1024],ans[5];

	scanf("%d",&n);

	for(i = 0;i < n;i++){
		memset(yosan,0,sizeof(yosan));
		flag = 0;
		for(j = 0;j < 2;j++){
			scanf("%s",str2);
			length = strlen(str2);
			if(!flag && length >= 81){
				flag = 1;
			}else{
				memset(str,' ',sizeof(str));
				for(k = 0;k < 80;k++){
					if(k >= 80-length){
						str[k] = str2[k-80+length];
					}else{
						str[k] = '0';
					}
				}
				str[80] = '\0';
				//printf("%s\n",str);
				tmp = 0;
				for(k = 0;k < 80;k++){
					tmp *= 10;
					tmp += (str[k] - '0');
					if(k % 4 == 3){
						yosan[k/4] += tmp;
						tmp = 0;
					}
				}
				for(k = 29;k > 0;k--){
					if(yosan[k] >= 10000){
						yosan[k-1]++;
						yosan[k] %= 10000;
					}
				}
			}
		}
		if(yosan[0] >= 10000){
				flag = 1;
		}
		if(!flag){
			tmp = 0;
			while(yosan[tmp] == 0){
				tmp++;
			}
			itoa(yosan[tmp],ans,10);
			printf("%s",ans);
			tmp++;
			for(j = tmp;j < 20;j++){
				sprintf(ans,"%04d",yosan[j]);
				printf("%s",ans);
			}
			printf("\n");
		}else{
			printf("overflow\n");
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:56:25: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   56 |                         itoa(yosan[tmp],ans,10);
      |                         ^~~~
Language: C

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

int main(){
	int i,j,k,n,tmp,flag,length;
	int yosan[20];
	char str[81],str2[1024],ans[5];

	scanf("%d",&n);

	for(i = 0;i < n;i++){
		memset(yosan,0,sizeof(yosan));
		flag = 0;
		for(j = 0;j < 2;j++){
			scanf("%s",str2);
			length = strlen(str2);
			if(!flag && length >= 81){
				flag = 1;
			}else{
				memset(str,'0',sizeof(str));
				for(k = 0;k < 80;k++){
					if(k >= 80-length){
						str[k] = str2[k-80+length];
					}else{
						str[k] = '0';
					}
				}
				str[80] = '\0';
				//printf("%s\n",str);
				tmp = 0;
				for(k = 0;k < 80;k++){
					tmp *= 10;
					tmp += (str[k] - '0');
					if(k % 4 == 3){
						yosan[k/4] += tmp;
						tmp = 0;
					}
				}
				for(k = 29;k > 0;k--){
					if(yosan[k] >= 10000){
						yosan[k-1]++;
						yosan[k] %= 10000;
					}
				}
			}
		}
		if(yosan[0] >= 1000){
				flag = 1;
		}
		if(!flag){
			tmp = 0;
			while(yosan[tmp] == 0){
				tmp++;
			}
			itoa(yosan[tmp],ans,10);
			printf("%s",ans);
			tmp++;
			for(j = tmp;j < 20;j++){
				sprintf(ans,"%04d",yosan[j]);
				printf("%s",ans);
			}
			printf("\n");
		}else{
			printf("overflow\n");
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:56:25: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   56 |                         itoa(yosan[tmp],ans,10);
      |                         ^~~~
Language: C

#include<stdio.h>

int main(){

  int i,n,j,k,l,F,S,e,sf,ss,st;
  char f[256],s[256],t[256]={};

  scanf("%d%*c",&n);

  for(i=0;i<n;i++)
    {
      j=1;
      f[0] = '0';
      while(1)
	{
	  f[j]=getchar();
	  if(f[j] == '\n'){break;}
	  else{j++;}
	}

      k=1;
      s[0] = '0';
      while(1)
	{ 
	  s[k]=getchar();
	  if(s[k] == '\n'){break;}
	  else{k++;}
	}

      j--;
      k--;
      sf=j;
      ss=k;
      e=0;

      while(1)
	{	 
	  if(j<0){f[j] = '0';}
	  if(k<0){s[k] = '0';}
	  F =f[j]-'0';
	  S =s[k]-'0';
	  if(j>=k){
	    if(j<0)break;
	    if(F+S+e>=10){
	      t[j] =F+S+e-10 + '0';
	      e = 1;
	      j--;
	      k--;
	    }
	    else{
	      t[j] = F+S+e + '0';
	      e = 0;
	      j--;
	      k--;
	    }
	  }


      l=0;
      st=0;

      if(t[0]=='0'){l++;}
      else{st++;}

      if(sf>=ss){st=st+sf;}
      else{st=st+ss;}

      if(st>80){printf("overflow");}
      else{
	while(l<80){
	  printf("%c",t[l]);
	  l++;	
	}
      }
      printf("\n");
      
    }

   return 0;
}

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

#include<stdio.h>

int main(){

  int i,n,j,k,l,F,S,e,sf,ss,st;
  char f[256],s[256],t[256]={};

  scanf("%d%*c",&n);

  for(i=0;i<n;i++)
    {
      j=1;
      f[0] = '0';
      while(1)
	{
	  f[j]=getchar();
	  if(f[j] == '\n'){break;}
	  else{j++;}
	}

      k=1;
      s[0] = '0';
      while(1)
	{ 
	  s[k]=getchar();
	  if(s[k] == '\n'){break;}
	  else{k++;}
	}

      j--;
      k--;
      sf=j;
      ss=k;
      e=0;

if(j>=k){
      while(1)
	{	 
	  if(j<0){f[j] = '0';}
	  if(k<0){s[k] = '0';}
	  F =f[j]-'0';
	  S =s[k]-'0';
	    if(j<0)break;
	    if(F+S+e>=10){
	      t[j] =F+S+e-10 + '0';
	      e = 1;
	      j--;
	      k--;
	    }
	    else{
	      t[j] = F+S+e + '0';
	      e = 0;
	      j--;
	      k--;
	    }
	  }
}
	  if(j<k){
      while(1)
	{	 
	  if(j<0){f[j] = '0';}
	  if(k<0){s[k] = '0';}
	  F =f[j]-'0';
	  S =s[k]-'0';
	    if(k<0)break;
	    if(F+S+e>=10){
	      t[k] = F+S+e-10 + '0';
	      e = 1;
	      j--;
	      k--;
	    }
	    else{
	      t[k] = F+S+e + '0';
	      e = 0;
	      j--;
	      k--;
	    }
	  }
	}
}
      l=0;
      st=0;

      if(t[0]=='0'){l++;}
      else{st++;}

      if(sf>=ss){st=st+sf;}
      else{st=st+ss;}

      if(st>80){printf("overflow");}
      else{
	while(l<80){
	  printf("%c",t[l]);
	  l++;	
	}
      }
      printf("\n");
      
    }

   return 0;
}

Compiler output:
main.c:101:4: error: expected identifier or '(' before 'return'
  101 |    return 0;
      |    ^~~~~~
main.c:102:1: error: expected identifier or '(' before '}' token
  102 | }
      | ^
Language: C

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

int main(void) {
	
	char a[91],b[91];
	int ca,i,n,m;
	scanf("%d",&n);

	while(scanf("%s",a)!=EOF){
	scanf("%s",b)
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ';' before '}' token
   11 |         scanf("%s",b)
      |                      ^
      |                      ;
   12 |         }
      |         ~
Language: C

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

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

	scanf("%s",a);
	scanf("%s",b);
scanf("%s",a);
	scanf("%s",b);
scanf("%s",a);
	scanf("%s",b);
scanf("%s",a);
	scanf("%s",b);
	}

	return 0;
}

Compiler output:
main.c:20:9: error: expected identifier or '(' before 'return'
   20 |         return 0;
      |         ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	__int64 a, b, sum;
	int keta;
	int n;
	int i;
	
	scanf("%d", &n);
	for (i = 0; i < n; i++){
		scanf("%I64u", &a);
		scanf("%I64u", &b);
		sum = a + b;
		
		keta = 1;
		while (sum / 10 > 0){
			keta++;
			sum /= 10;
		}
		
		if (keta > 80){
			printf("overflow\n");
		}
		else {
			sum = a + b;
			printf("%I64u\n", sum);
		}
	}
	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, sum;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include <stdio.h>

   int main(void){
         int n; long long int a,b;
          scanf("%d",&n);
          while(n){
             scanf("%d %d",&a,&B);
             printf("%d",a+b);
            n--;
           }
               return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: 'B' undeclared (first use in this function)
    7 |              scanf("%d %d",&a,&B);
      |                                ^
main.c:7:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
	int i, I;
	int n;
	scanf("%d", n);
	for(i=0;i<n;i++)
	{
		long long int a[100]={},b[100]={};
		scanf("%lld %lld", &a[i], &b[i]);
	}
	for(I=0;I<i;I++)
	{
		printf("%lld\n", a[i]+b[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:34: error: 'a' undeclared (first use in this function)
   14 |                 printf("%lld\n", a[i]+b[i]);
      |                                  ^
main.c:14:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:39: error: 'b' undeclared (first use in this function)
   14 |                 printf("%lld\n", a[i]+b[i]);
      |                                       ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
    int n,ap,bp,cp,t;
    char a[81],b[81],c[81];
    scanf("%d",&n);
    while(~scanf("%s%s",&a,&b)){
        ap=strlen(a);
        bp=strlen(b);
        cp=sizeof(c)-1;
        c[cp]='\0';
        t=0;
        while((t||ap||bp)&&cp>0){
            t+=(ap?a[--ap]-'0':0)+(bp?b[--bp]-'0':0);
            c[--cp]='0'+(t%10);
            t/=10;
        }
        if(t)puts("overflow");
        else puts("%s",&c[cp]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:14: error: too many arguments to function 'puts'
   19 |         else puts("%s",&c[cp]);
      |              ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	char a[82]={0},b[82]={0};
	int i,k,N;

	scanf("%d",&N);

	for(i=0;i<N;i++){
		for(k=0;k<82;k++)
			a[k]=b[k]=0:

		scanf("%82s",a);
		scanf("%82s",b);

		if(a[81]!=0||b[81]!=0){
			printf("overflow\n");
		}
		else{
			for(k=0;k<82;k++)
				a[k]+=b[k]-'0';

			for(k=0;k<82;k++){
				if(a[k]-'0'>=10){
					a[k+1]++;
					a[k]-=10;
				}
			}
			if(a[81]!=0)printf("overflow\n");

			else printf("%s\n",a);
		}
	}


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:36: error: expected ';' before ':' token
   11 |                         a[k]=b[k]=0:
      |                                    ^
      |                                    ;
Language: C++

#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;

int c[100];

void add(char*a, char*b)  //鮟倩ョ、a豈巴髟ソ
{
    fill(c,c+100,0);      //蜥檎噪蜷?ス咲スョ髮カ
    int la=strlen(a), lb=strlen(b);
        for(int 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(int 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(int i=1;i<=la;i++)
                    printf("%d",c[i]);
                printf("\n");
            }
            else
            {
                for(int 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:
a.cc: In function 'void add(char*, char*)':
a.cc:14:18: error: 'i' was not declared in this scope
   14 |             if(c[i]>9)
      |                  ^
a.cc: At global scope:
a.cc:20:9: error: expected unqualified-id before 'for'
   20 |         for(int i=la-lb;i>0;i--)
      |         ^~~
a.cc:20:25: error: 'i' does not name a type
   20 |         for(int i=la-lb;i>0;i--)
      |                         ^
a.cc:20:29: error: 'i' does not name a type
   20 |         for(int i=la-lb;i>0;i--)
      |                             ^
a.cc:29:9: error: expected unqualified-id before 'if'
   29 |         if(la==80&&c[0]==1) printf("overflow\n");
      |         ^~
a.cc:30:9: error: expected unqualified-id before 'else'
   30 |         else
      |         ^~~~
a.cc:45:1: error: expected declaration before '}' token
   45 | }
      | ^
Language: C++

#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;

int c[100];

void add(char*a, char*b)  //鮟倩ョ、a豈巴髟ソ
{
    fill(c,c+100,0);      //蜥檎噪蜷?ス咲スョ髮カ
    int la=strlen(a), lb=strlen(b);
    int i,j;
    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:
a.cc:21:9: error: expected unqualified-id before 'for'
   21 |         for( i=la-lb;i>0;i--)
      |         ^~~
a.cc:21:22: error: 'i' does not name a type
   21 |         for( i=la-lb;i>0;i--)
      |                      ^
a.cc:21:26: error: 'i' does not name a type
   21 |         for( i=la-lb;i>0;i--)
      |                          ^
a.cc:31:9: error: expected unqualified-id before 'if'
   31 |         if(la==80&&c[0]==1) printf("overflow\n");
      |         ^~
a.cc:32:9: error: expected unqualified-id before 'else'
   32 |         else
      |         ^~~~
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;



void add(char*a, char*b, char*c)  //鮟倩ョ、a豈巴髟ソ
{
    fill(c,c+100,0);      //蜥檎噪蜷?ス咲スョ髮カ
    int la=strlen(a), lb=strlen(b);
    int i,j;
    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 c[100];
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,c);
    else add(b,a,c);
    }
    return 0;
}

Compiler output:
a.cc:21:5: error: expected unqualified-id before 'for'
   21 |     for( i=la-lb;i>0;i--)
      |     ^~~
a.cc:21:18: error: 'i' does not name a type
   21 |     for( i=la-lb;i>0;i--)
      |                  ^
a.cc:21:22: error: 'i' does not name a type
   21 |     for( i=la-lb;i>0;i--)
      |                      ^
a.cc:31:5: error: expected unqualified-id before 'if'
   31 |     if(la==80&&c[0]==1)
      |     ^~
a.cc:33:5: error: expected unqualified-id before 'else'
   33 |     else if(c[0]==0)
      |     ^~~~
a.cc:39:13: error: expected unqualified-id before 'else'
   39 |             else
      |             ^~~~
a.cc:46:1: error: expected declaration before '}' token
   46 | }
      | ^
a.cc: In function 'int main()':
a.cc:61:17: error: cannot convert 'int*' to 'char*'
   61 |         add(a,b,c);
      |                 ^
      |                 |
      |                 int*
a.cc:8:31: note:   initializing argument 3 of 'void add(char*, char*, char*)'
    8 | void add(char*a, char*b, char*c)  //鮟倩ョ、a豈巴髟ソ
      |                          ~~~~~^
a.cc:62:18: error: cannot convert 'int*' to 'char*'
   62 |     else add(b,a,c);
      |                  ^
      |                  |
      |                  int*
a.cc:8:31: note:   initializing argument 3 of 'void add(char*, char*, char*)'
    8 | void add(char*a, char*b, char*c)  //鮟倩ョ、a豈巴髟ソ
      |                          ~~~~~^
Language: C++

#include<iostream>
int main(){
int n;
cin>>n;
while(n--){
    long long int a,b;
    cin>>a>>b;
    cout<<a+b<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>n;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<a+b<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<<a+b<<endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

#define MAX_ORDER 80

void alignOrder(std::string& input1, std::string& input2);
int myAtoi(const char c);
void addTwoInputs(const std::string& input1, const std::string& input2, std::string& output);
bool overflowCheck(const std::string& output);

int main(void)
{
  int n;
  std::string input1, input2;
  std::string output;

  std::cin >> n;

  for (int i = 0; i < n; i++) {
    std::cin >> input1;
    std::cin >> input2;

    alignOrder(input1, input2);
    addTwoInputs(input1, input2, output);
    if (overflowCheck(output)) {
      std::cout << output << std::endl;
    }
    else {
      std::cout << "overflow" << std::endl;
    }
  }

  return 0;
}

void alignOrder(std::string& input1, std::string& input2)
{
  if (input1.size() == input2.size()) {
    return;
  }
  if (input1.size() < input2.size()) {
    std::swap(input1, input2);
  }
  int distance = input1.size() - input2.size();
  for (int i = 0; i < distance; i++) {
    input2.insert(0, "0");
  }
  return;
}

int myAtoi(const char c)
{
  return c - '0';
}

void addTwoInputs(const std::string& input1, const std::string& input2, std::string& output)
{
  int outputOrder = input1.size() + 1;
  output.resize(outputOrder);

  bool advance = false;
  for (int i = outputOrder - 2; i >= 0; i--) {
    int num1 = myAtoi(input1[i]);
    int num2 = myAtoi(input2[i]);
    int sum = num1 + num2;
    if (advance) {
      sum++;
    }
    char sumStr[10];
    itoa(sum, sumStr, 10);
    if (sumStr[1] == '\0') {
      output[i + 1] = sumStr[0];
      advance = false;
    }
    else {
      output[i + 1] = sumStr[1];
      advance = true;
    }
    if (i == 0) {
      if (advance) {
        output[0] = '1';
      }
      else {
        output = output.substr(1);
      }
    }
  }
}

bool overflowCheck(const std::string& output)
{
  if (output.size() > MAX_ORDER) {
    return false;
  }
  return true;
}

Compiler output:
a.cc: In function 'void addTwoInputs(const std::string&, const std::string&, std::string&)':
a.cc:73:5: error: 'itoa' was not declared in this scope
   73 |     itoa(sum, sumStr, 10);
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <stdlib.h>

using namespace std;

#define MAX_ORDER 80

void alignOrder(std::string& input1, std::string& input2);
int myAtoi(const char c);
void addTwoInputs(const std::string& input1, const std::string& input2, std::string& output);
bool overflowCheck(const std::string& output);

int main(void)
{
  int n;
  std::string input1, input2;
  std::string output;

  std::cin >> n;

  for (int i = 0; i < n; i++) {
    std::cin >> input1;
    std::cin >> input2;

    alignOrder(input1, input2);
    addTwoInputs(input1, input2, output);
    if (overflowCheck(output)) {
      std::cout << output << std::endl;
    }
    else {
      std::cout << "overflow" << std::endl;
    }
  }

  return 0;
}

void alignOrder(std::string& input1, std::string& input2)
{
  if (input1.size() == input2.size()) {
    return;
  }
  if (input1.size() < input2.size()) {
    std::swap(input1, input2);
  }
  int distance = input1.size() - input2.size();
  for (int i = 0; i < distance; i++) {
    input2.insert(0, "0");
  }
  return;
}

int myAtoi(const char c)
{
  return c - '0';
}

void addTwoInputs(const std::string& input1, const std::string& input2, std::string& output)
{
  int outputOrder = input1.size() + 1;
  output.resize(outputOrder);

  bool advance = false;
  for (int i = outputOrder - 2; i >= 0; i--) {
    int num1 = myAtoi(input1[i]);
    int num2 = myAtoi(input2[i]);
    int sum = num1 + num2;
    if (advance) {
      sum++;
    }
    char sumStr[10];
    itoa(sum, sumStr, 10);
    if (sumStr[1] == '\0') {
      output[i + 1] = sumStr[0];
      advance = false;
    }
    else {
      output[i + 1] = sumStr[1];
      advance = true;
    }
    if (i == 0) {
      if (advance) {
        output[0] = '1';
      }
      else {
        output = output.substr(1);
      }
    }
  }
}

bool overflowCheck(const std::string& output)
{
  if (output.size() > MAX_ORDER) {
    return false;
  }
  return true;
}

Compiler output:
a.cc: In function 'void addTwoInputs(const std::string&, const std::string&, std::string&)':
a.cc:74:5: error: 'itoa' was not declared in this scope
   74 |     itoa(sum, sumStr, 10);
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main() {
int N;
cin >> N;
for (; N > 0; --N) {
int a[80] = {}, b[80] = {}, sum[80] = {};
bool co = false;
string s, t;
cin >> s >> t;
for (int i = 0; i < s.length(); ++i) a[i] = (int)(s[i] - '0');
for (int i = 0; i < t.length(); ++i) b[i] = (int)(t[i] - '0');
for (int i = 0; i < 80; ++i) {
co = ((co?1:0)+a[i]+b[i]) >= 10;
sum[i] = ((co?1:0)+a[i]+b[i])%10;
}
if (co) cout << "overflow" << endl;
else {
bool fz = true;
for (int i = 79; i >= 0; --i)
if (fz && sum[i] != 0) {fz = false;}
if (!fz) cout << sum[i];
}
cout << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'i' was not declared in this scope
   24 | if (!fz) cout << sum[i];
      |                      ^
Language: C++

#include<stdio.h>

#define STR_MAX 80
#define ASCII_BIAS 48

char h_adder(char n1, char n2, char *n3, char carry)
{
  char result = n1 + n2 + carry;
  
  if(result<10){ *n3 = result + ASCII_BIAS; return 0; }
  else{ *n3 = result-10+ASCII_BIAS; return 1; }
}

int main(void)
{
  int i, j;
  int dataset;
  char in[2][STR_MAX+2], out[STR_MAX+2], result[STR_MAX+2];
  int len_in[2], idx_min, idx_max, lmin, lmax, lout, dif;
  char carry;

  scanf("%d\n", &dataset);

  for(i=0;i<dataset;i++){
    fgets(in[0], sizeof in[0], stdin); rewind(stdin);
    fgets(in[1], sizeof in[1], stdin); rewind(stdin);
    len_in[0] = strlen(in[0])-1; len_in[1] = strlen(in[1])-1;

    // check # of digits
    if(in[0][len_in[0]]!='\n' || in[1][len_in[1]]!='\n'){
      printf("overflow\n"); continue;
    }
    in[0][len_in[0]] = '\0';
    in[1][len_in[1]] = '\0';
    
    idx_min = (len_in[0]>len_in[1]) ? 1 : 0; // idx of shoter str
    idx_max = (idx_min + 1) & 1; // idx of longer str
    lmin = len_in[idx_min]-1; lmax = len_in[idx_max]-1;
    dif = (len_in[0]>len_in[1]) ? len_in[0]-len_in[1] : len_in[1]-len_in[0]; // difference in digits

    // execute addition
    carry = 0;
    for(j=0;j<lmin+1;j++){
      carry = h_adder(in[idx_min][lmin-j]-ASCII_BIAS, in[idx_max][lmin-j+dif]-ASCII_BIAS, &out[j+1], carry);
    }
    for(j=lmin+1;j<lmax+1;j++){
      carry = h_adder(0, in[idx_max][lmin-j+dif]-ASCII_BIAS, &out[j+1], carry);
    }
    
    // if carry is 0, validate overflow
    if(carry==1){
      if(lmax==STR_MAX-1){
  	printf("overflow\n"); continue;
      }    
    }

    lout = carry ? lmax+2 : lmax+1;
    out[lmax+2] = carry ? 1+ASCII_BIAS : 0+ASCII_BIAS;

    
    // if overflow does not occur, addition succeeded
    out[0] = '\0';
    for(j=0;j<lout+1;j++){
      result[j] = out[lout-j];
    }
    printf("%s\n", result);
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: 'strlen' was not declared in this scope
   27 |     len_in[0] = strlen(in[0])-1; len_in[1] = strlen(in[1])-1;
      |                 ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 |
Language: C++

#include <iostream>
#include <string>
#include <fstream>

using namespace std;

#define MAX_INT_LENGTH 80

//large integer upto 80 digits
struct largeInt{
    int vals[MAX_INT_LENGTH]; // MAX_INT_LENGTH digits
};

void toLargeInt(string str, largeInt &lv){
    int start = MAX_INT_LENGTH-str.length();
    for (int i = 0; i < MAX_INT_LENGTH; i++){
        if (i >= start)
            lv.vals[i] = (str[i-start] - '0');
        else
            lv.vals[i] = 0;
    }
}

largeInt addLargeInt(const largeInt &lv1, const largeInt &lv2){
    largeInt sum;
    int carry = 0;
    for (int i = MAX_INT_LENGTH-1; i >= 0; i--){
        int sub_sum = lv1.vals[i] + lv2.vals[i] + carry;
        sum.vals[i] = sub_sum % 10;
        carry = sub_sum / 10;
    }
    return sum;
}

string toString(const largeInt &v){
    string str(MAX_INT_LENGTH,'0');
    for (int i = 0; i < MAX_INT_LENGTH; i++)
        str[i] = v.vals[i] + '0';
    return str;
}

int main()
{
    //ifstream cin("input.txt");
    
    // input data
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
        string v1,v2;
        cin >> v1 >> v2;
        largeInt lv1, lv2;
        if (lv1.length()>MAX_INT_LENGTH || lv2.length()>MAX_INT_LENGTH){
            cout << "overflow" << endl;
            continue;
        }
        toLargeInt(v1,lv1);
        toLargeInt(v2,lv2);
        largeInt sum = addLargeInt(lv1,lv2);
        cout << toString(sum) << endl;
    }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:17: error: 'struct largeInt' has no member named 'length'
   53 |         if (lv1.length()>MAX_INT_LENGTH || lv2.length()>MAX_INT_LENGTH){
      |                 ^~~~~~
a.cc:53:48: error: 'struct largeInt' has no member named 'length'
   53 |         if (lv1.length()>MAX_INT_LENGTH || lv2.length()>MAX_INT_LENGTH){
      |                                                ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <sstraem>
#include <fstream>

using namespace std;

#define MAX_INT_LENGTH 80

//large integer upto 80 digits
struct largeInt{
    int vals[MAX_INT_LENGTH]; // MAX_INT_LENGTH digits
};

void toLargeInt(string str, largeInt &lv){
    int start = MAX_INT_LENGTH-str.length();
    for (int i = 0; i < MAX_INT_LENGTH; i++){
        if (i >= start)
            lv.vals[i] = (str[i-start] - '0');
        else
            lv.vals[i] = 0;
    }
}

largeInt addLargeInt(const largeInt &lv1, const largeInt &lv2){
    largeInt sum;
    int carry = 0;
    for (int i = MAX_INT_LENGTH-1; i >= 0; i--){
        int sub_sum = lv1.vals[i] + lv2.vals[i] + carry;
        sum.vals[i] = sub_sum % 10;
        carry = sub_sum / 10;
    }
    return sum;
}

string toString(const largeInt &v){
    stringstream ss;
    int i = 0;
    while (i < MAX_INT_LENGTH-1 && v.vals[i]==0) i++;
    while (i < MAX_INT_LENGTH){
        str[i] = v.vals[i] + '0';
        i++;
    }
    return str;
}

int main()
{
    ifstream cin("input.txt");
    
    // input data
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
        string v1,v2;
        cin >> v1 >> v2;
        largeInt lv1, lv2;
        if (v1.length()>MAX_INT_LENGTH || v2.length()>MAX_INT_LENGTH){
            cout << "overflow" << endl;
            continue;
        }
        toLargeInt(v1,lv1);
        toLargeInt(v2,lv2);
        largeInt sum = addLargeInt(lv1,lv2);
        cout << toString(sum) << endl;
    }
   return 0;
}

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

#include <iostream>
#include <string>
#include <sstraem>
#include <fstream>

using namespace std;

#define MAX_INT_LENGTH 80

//large integer upto 80 digits
struct largeInt{
    int vals[MAX_INT_LENGTH]; // MAX_INT_LENGTH digits
};

void toLargeInt(string str, largeInt &lv){
    int start = MAX_INT_LENGTH-str.length();
    for (int i = 0; i < MAX_INT_LENGTH; i++){
        if (i >= start)
            lv.vals[i] = (str[i-start] - '0');
        else
            lv.vals[i] = 0;
    }
}

largeInt addLargeInt(const largeInt &lv1, const largeInt &lv2){
    largeInt sum;
    int carry = 0;
    for (int i = MAX_INT_LENGTH-1; i >= 0; i--){
        int sub_sum = lv1.vals[i] + lv2.vals[i] + carry;
        sum.vals[i] = sub_sum % 10;
        carry = sub_sum / 10;
    }
    return sum;
}

string toString(const largeInt &v){
    stringstream ss;
    int i = 0;
    while (i < MAX_INT_LENGTH-1 && v.vals[i]==0) i++;
    while (i < MAX_INT_LENGTH){
        str[i] = v.vals[i] + '0';
        i++;
    }
    return str;
}

int main()
{
    //ifstream cin("input.txt");
    
    // input data
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
        string v1,v2;
        cin >> v1 >> v2;
        largeInt lv1, lv2;
        if (v1.length()>MAX_INT_LENGTH || v2.length()>MAX_INT_LENGTH){
            cout << "overflow" << endl;
            continue;
        }
        toLargeInt(v1,lv1);
        toLargeInt(v2,lv2);
        largeInt sum = addLargeInt(lv1,lv2);
        cout << toString(sum) << endl;
    }
   return 0;
}

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

#include <iostream>
#include <string>
#include <sstraem>
#include <fstream>

using namespace std;

#define MAX_INT_LENGTH 80

//large integer upto 80 digits
struct largeInt{
    int vals[MAX_INT_LENGTH]; // MAX_INT_LENGTH digits
};

void toLargeInt(string str, largeInt &lv){
    int start = MAX_INT_LENGTH-str.length();
    for (int i = 0; i < MAX_INT_LENGTH; i++){
        if (i >= start)
            lv.vals[i] = (str[i-start] - '0');
        else
            lv.vals[i] = 0;
    }
}

largeInt addLargeInt(const largeInt &lv1, const largeInt &lv2){
    largeInt sum;
    int carry = 0;
    for (int i = MAX_INT_LENGTH-1; i >= 0; i--){
        int sub_sum = lv1.vals[i] + lv2.vals[i] + carry;
        sum.vals[i] = sub_sum % 10;
        carry = sub_sum / 10;
    }
    return sum;
}

string toString(const largeInt &v){
    stringstream ss;
    int i = 0;
    while (i < MAX_INT_LENGTH-1 && v.vals[i]==0) i++;
    while (i < MAX_INT_LENGTH){
        ss << v.vals[i] + '0';
        i++;
    }
    return ss.str();
}

int main()
{
    //ifstream cin("input.txt");
    
    // input data
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
        string v1,v2;
        cin >> v1 >> v2;
        largeInt lv1, lv2;
        if (v1.length()>MAX_INT_LENGTH || v2.length()>MAX_INT_LENGTH){
            cout << "overflow" << endl;
            continue;
        }
        toLargeInt(v1,lv1);
        toLargeInt(v2,lv2);
        largeInt sum = addLargeInt(lv1,lv2);
        cout << toString(sum) << endl;
    }
   return 0;
}

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



int main(){
    int n;
    cin>>n;
    
    rep(j,n){
        int x[100]={},y[100]={};
        string a,b;
        cin>>a>>b;
        if(a.size()>80 || b.size()>80){cout<<"overflow"<<endl;return 0;}
        else{
        for(int i=a.size()-1;i>=0;i--){
            x[a.size()-1-i]=a[i]-'0';
        }
        for(int i=b.size()-1;i>=0;i--){
            y[b.size()-1-i]=b[i]-'0';
        }
        int ans[100]={};
        for(int i=0;i<80;i++){
            
            ans[i]+=x[i]+y[i];
            ans[i+1]+=ans[i]/10;
            ans[i]-=ans[i]/10*10;
        }
        if(ans[80]!=0)cout<<"overflow"<<endl;
        else{
            bool flag=false;
            for(int i=79;i>=0;i--){
                if(ans[i]!=0)flag=true;
                if(flag||i==0)cout<<ans[i];
            }
        }
        cout<<endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>n;
      |     ^~~
a.cc:7:9: error: 'j' was not declared in this scope
    7 |     rep(j,n){
      |         ^
a.cc:7:5: error: 'rep' was not declared in this scope
    7 |     rep(j,n){
      |     ^~~
Language: C++

import sys

n = int(input())
for i in range(n):
    a = int(input())
    b = int(input())
    if a + b >= 10**80:
        print ("overflow")
    else:
        print(a + b)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <boost/multiprecision/cpp_int.hpp>

using namespace boost::multiprecision;

int main()
{
  unsigned int a;
  cpp_int b, c;
  std::cin >> a;
  for (unsigned int i = 0; i < a * 2; ++i) {
    if (i % 2 == 0) {
      std::cin >> b;
    } else {
      std::cin >> c;
      std::cout << b + c << std::endl;
    }
  }
}

Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
//#include <boost/multiprecision/cpp_int.hpp>

using namespace boost::multiprecision;

int main()
{
  unsigned int a;
  cpp_int b, c;
  std::cin >> a;
  for (unsigned int i = 0; i < a * 2; ++i) {
    if (i % 2 == 0) {
      std::cin >> b;
    } else {
      std::cin >> c;
      std::cout << b + c << std::endl;
    }
  }
}

Compiler output:
a.cc:4:17: error: 'boost' has not been declared
    4 | using namespace boost::multiprecision;
      |                 ^~~~~
a.cc:4:24: error: 'multiprecision' is not a namespace-name
    4 | using namespace boost::multiprecision;
      |                        ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cpp_int' was not declared in this scope; did you mean 'u_int'?
    9 |   cpp_int b, c;
      |   ^~~~~~~
      |   u_int
a.cc:13:19: error: 'b' was not declared in this scope
   13 |       std::cin >> b;
      |                   ^
a.cc:15:19: error: 'c' was not declared in this scope
   15 |       std::cin >> c;
      |                   ^
a.cc:16:20: error: 'b' was not declared in this scope
   16 |       std::cout << b + c << std::endl;
      |                    ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	string a,b,c;
	int n;
	cin>>n;
	for(int fjal=0;fjal<n;fjal++){
	cin>>a>>b;
	c.clear();
	if(a.size()<b.size())swap(a,b);
	int as=a.size();]
	while(as!=b.size())b="0"+b;
	//cout<<a<<" "<<b;
	bool kuri=false;
	for(int i=as-1;i>=0;i--){
		int _a=a[i]-'0',_b=b[i]-'0',ans=_a+_b;
		if(kuri)ans++;
		if(ans>=10){
			kuri=true;
			ans-=10;
		}
		else {kuri=false;}
		//cout<<ans<<" "<<i;
		c.push_back(ans+'0');
	}
		if(kuri)c.push_back('1');
		string ans;
		if(c.size()<80){for(int i=c.size()-1;i>=0;i--)ans.push_back(c[i]);
		cout<<ans<<endl;
		}
		else cout<<"overflow"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected primary-expression before ']' token
   13 |         int as=a.size();]
      |                         ^
Language: C++

#include<iostream>
#include<cstring>
#include<cstdlib>
using namespace std;

int main()
{
    int N,j;
    cin >> N;
    for(int i=0 ; i<N ; i++){
        int ans[81]={0};
        ans[0]=11111;
        char strA[100],strB[100];
        cin >> strA >> strB;
        if(strlen(strA)>80||strlen(strB)>80){
            cout << "overflow" << endl;
            continue;
        }
        char str1[strlen(strA)][2],str2[strlen(strB)][2];
        for(int i=0 ; i<strlen(strA) ; i++){
            str1[i][0]=strA[i];
            str1[i][1]='\0';
        }
        for(int i=0 ; i<strlen(strB) ; i++){
            str2[i][0]=strB[i];
            str2[i][1]='\0';
        }
        int a[81]={0},b[81]={0};
        j=strlen(strA)-1;
        for(int i=80 ; j>=0 ; i--){
            a[i]=atoi(str1[j]);
            j--;
        }
        j=strlen(strB)-1;
        for(int i=80 ; j>=0 ; i--){
            b[i]=atoi(str2[j]);
            j--;
        }
        for(int i=80 ; i!=0 ; i--){
            ans[i]=ans[i]+a[i]+b[i];
            if(ans[i]>=10){
                ans[i]=ans[i]-10;
                ans[i-1]++;
            }
        }
        if(ans[0]!=11111){
            cout << "overflow" << endl;
            continue;
        }
        for(int i=1 ; i<81 ; i++){
            if(ans[i]!=0){
                j=i;
                break;
            }
        }
        char c[2];
        for(int i=j ; i<81 ; i++){
            itoa(ans[i],c,10);
            cout << c;
        }
        cout << '\n';
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:13: error: 'itoa' was not declared in this scope
   58 |             itoa(ans[i],c,10);
      |             ^~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdlib.h>
using namespace std;

int main()
{
    int N,j;
    cin >> N;
    for(int i=0 ; i<N ; i++){
        int ans[81]={0};
        ans[0]=11111;
        char strA[100],strB[100];
        cin >> strA >> strB;
        if(strlen(strA)>80||strlen(strB)>80){
            cout << "overflow" << endl;
            continue;
        }
        char str1[strlen(strA)][2],str2[strlen(strB)][2];
        for(int i=0 ; i<strlen(strA) ; i++){
            str1[i][0]=strA[i];
            str1[i][1]='\0';
        }
        for(int i=0 ; i<strlen(strB) ; i++){
            str2[i][0]=strB[i];
            str2[i][1]='\0';
        }
        int a[81]={0},b[81]={0};
        j=strlen(strA)-1;
        for(int i=80 ; j>=0 ; i--){
            a[i]=atoi(str1[j]);
            j--;
        }
        j=strlen(strB)-1;
        for(int i=80 ; j>=0 ; i--){
            b[i]=atoi(str2[j]);
            j--;
        }
        for(int i=80 ; i!=0 ; i--){
            ans[i]=ans[i]+a[i]+b[i];
            if(ans[i]>=10){
                ans[i]=ans[i]-10;
                ans[i-1]++;
            }
        }
        if(ans[0]!=11111){
            cout << "overflow" << endl;
            continue;
        }
        for(int i=1 ; i<81 ; i++){
            if(ans[i]!=0){
                j=i;
                break;
            }
        }
        char c[2];
        for(int i=j ; i<81 ; i++){
            itoa(ans[i],c,10);
            cout << c;
        }
        cout << '\n';
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:13: error: 'itoa' was not declared in this scope
   58 |             itoa(ans[i],c,10);
      |             ^~~~