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

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


int main(int argv,char *argc[]){	
	int i;
	int a,b,c;
	int count=1;
	
	while(1){
		c = scanf("%d %d",&a,&b);
		if(c != 2){
			break;
		}
		count=1;
		while(1){
			if((a+b)>pow(10,double(count))){
				count++;
			}else{
				printf("%d\n",count);
				break;
			}
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:41: error: expected expression before 'double'
   20 |                         if((a+b)>pow(10,double(count))){
      |                                         ^~~~~~
Language: C

include <stdio.h>

int main(void)
{
	int a, b, c;
	int count=1;

	scanf("%d %d", &a, &b);
	
	c = a + b;
	while(1)
	{
		c = c/10;
		if(c > 0)
			count++;
		else
			break;
	}
	
	printf("%d\n", count);
	
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>

int main(void)
{
	int a, b, c;
	int count=1;

	scanf("%d %d", &a, &b);
	
	c = a + b;
	while(1)
	{
		c = c/10;
		if(c != 0 )
			count++;
		else
			break;
	}
	
	printf("%d\n", count);
	
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include<stdio.h>
#define DATASET 200

int main(void)
{
	int a,b,n,i,k=0;

for(i=0,i,DATASET,i++)
{
	scanf("%d %d",&a,&b);
}	
	n=a+b;
	
while(n!=0)
{
	n=n/10;
	k++;
}
	printf("%d",k);

	
}
	

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before ')' token
    8 | for(i=0,i,DATASET,i++)
      |                      ^
      |                      ;
main.c:8:22: error: expected expression before ')' token
Language: C

#include<stdio.h>
int main()
{
    int a,b,i,j;
    while(scanf("%d %d",&a,&b)!=EOF)
    {
        for(i=1;a!<10;)
        {
            if(a%10==0)
            {
                a=a%10;
            }
            else
            {
                a=a%10;
                i++;
            }
        }
        for(j=1;b!<10;)
        {
            if(b%10==0)
            {
                b=b%10;
            }
            else
            {
                b=b%10;
                j++;
            }
        }
        printf("%d\n",i+j);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ';' before '!' token
    7 |         for(i=1;a!<10;)
      |                  ^
      |                  ;
main.c:19:18: error: expected ';' before '!' token
   19 |         for(j=1;b!<10;)
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
 
int main(void){
int a,i;
for(){
scanf("%d\n",a);
for(i=0;a!=0;i++) a=(int)(a/10);
printf("%d\n",i);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected expression before ')' token
    5 | for(){
      |     ^
main.c:5:5: error: expected expression before ')' token
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

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

int main(void){
	int a[200],b[200],n[200],i,l[200];
	
	for(i=0;i<200;i++){
	scanf("%d %d",&a[i],&b[i]);
	n[i]=a[i]+b[i];
	char c[i]=n[i]+'0';
	}
	
	for(i=0;i<200;i++){
	l[i]=strlen(c[i]);
	printf("%d\n",l[i]);
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: variable-sized object may not be initialized except with an empty initializer
   10 |         char c[i]=n[i]+'0';
      |                   ^
main.c:14:14: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   14 |         l[i]=strlen(c[i]);
      |              ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | 
main.c:14:14: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   14 |         l[i]=strlen(c[i]);
      |              ^~~~~~
main.c:14:14: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:14:21: error: 'c' undeclared (first use in this function)
   14 |         l[i]=strlen(c[i]);
      |                     ^
main.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
 
int main(){
    int a, b;
    char c[16];
 
    while(scanf("%d %d", &a, &b) != EOF) {
        sprintf(c, "%d", a+b);
        printf("%d\n", strlen(buf));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:31: error: 'buf' undeclared (first use in this function)
   10 |         printf("%d\n", strlen(buf));
      |                               ^~~
main.c:10:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
    int a, b, total, dig;

    while(scanf("%d%d", &a, &b)!=EOF){
        d=0; total = a+b;
        while(total){
            d++;
            total /= 10;
        }
        printf("%d\n", d);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'd' undeclared (first use in this function)
    8 |         d=0; total = a+b;
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
	int i = 0, a, b, c, n;
	while(scanf("%d %d", &a, &b) != -1){
		c[i] = a + b;
		for(n = 0; c != 0; n++){
			c = c / 10;
		}
		printf("%d", n);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: subscripted value is neither array nor pointer nor vector
    7 |                 c[i] = a + b;
      |                  ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
	int a, b;
	int i;
	while (true)
	{
		if (scanf("%d",&a))
		{
			scanf("%d", &b);
			i = 0;
			while (pow(10,i)<a+b)
			{
				i++;
			}
			printf("%d", i - 1);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'true' undeclared (first use in this function)
    7 |         while (true)
      |                ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<math.h>
  +++ |+#include <stdbool.h>
    3 | int main()
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
    7 |         while (true)
      |                ^~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
	int a, b;
	int i;
	while (true)
	{
		if (scanf("%d",&a)!=EOF)
		{
			scanf("%d", &b);
			i = 0;
			while (pow(10,i)<a+b)
			{
				i++;
			}
			printf("%d", i - 1);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'true' undeclared (first use in this function)
    7 |         while (true)
      |                ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<math.h>
  +++ |+#include <stdbool.h>
    3 | int main()
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
    7 |         while (true)
      |                ^~~~
Language: C

#include <stdio.h>

int main(void) {
	while(){
		int a = -1,b = 0,c = 0,i,n = 10;
		scanf("%d%d",&a,&b);
		c = a + b;
		if(c < 10){
			printf("1\n");
			return 0;
		}
		for(i = 2;;i++){
			n *= 10;
			if(c < n){
				printf("i\n");
				break;
			}
		}
		if(a = -1){
			break;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected expression before ')' token
    4 |         while(){
      |               ^
main.c:6:31: error: 'a' undeclared (first use in this function)
    6 |                 scanf("%d%d",&a,&b);
      |                               ^
main.c:6:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:34: error: 'b' undeclared (first use in this function)
    6 |                 scanf("%d%d",&a,&b);
      |                                  ^
main.c:7:17: error: 'c' undeclared (first use in this function)
    7 |                 c = a + b;
      |                 ^
main.c:12:21: error: 'i' undeclared (first use in this function)
   12 |                 for(i = 2;;i++){
      |                     ^
main.c:13:25: error: 'n' undeclared (first use in this function)
   13 |                         n *= 10;
      |                         ^
Language: C

a,b=input().strip().split()
a=int(a)
b=int(b)
sum = a+b
sum = str(sum)
print(len(sum))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b=input().strip().split()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b=input().strip().split()
      |   ^
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a,b=input().strip().split()
      |     ^~~~~
main.c:1:12: error: request for member 'strip' in something not a structure or union
    1 | a,b=input().strip().split()
      |            ^
main.c:2:1: error: expected ',' or ';' before 'a'
    2 | a=int(a)
      | ^
Language: C

main(a,b){
    for(;scanf("%d%d",&a,&b)!= EOF;){
        for(a+=b,b=0;a>0;a/=10,b++);
        printf("%d\n",b);
    }
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |     for(;scanf("%d%d",&a,&b)!= EOF;){
      |          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){
main.c:2:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |     for(;scanf("%d%d",&a,&b)!= EOF;){
      |          ^~~~~
main.c:2:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:32: error: 'EOF' undeclared (first use in this function)
    2 |     for(;scanf("%d%d",&a,&b)!= EOF;){
      |                                ^~~
main.c:2:32: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:2:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         printf("%d\n",b);
      |         ^~~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

a,b;
main(){
    for(;scanf("%d%d",&a,&b)!= EOF;){
        for(a+=b,b=0;a>0;a/=10,b++);
        printf("%d\n",b);
    }
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b;
      |   ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     for(;scanf("%d%d",&a,&b)!= EOF;){
      |          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b;
main.c:3:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     for(;scanf("%d%d",&a,&b)!= EOF;){
      |          ^~~~~
main.c:3:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:32: error: 'EOF' undeclared (first use in this function)
    3 |     for(;scanf("%d%d",&a,&b)!= EOF;){
      |                                ^~~
main.c:3:32: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("%d\n",b);
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

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

   for(n=0; n<200; n++){
      scanf("%d %d", &a[n], &b[n]);
      R[n] = a[n]+b[n];
   }

   for(i=1; i<7; i=i*10){
      if(R[n]>=10*(i-1) && R[n]<10*i)
         printf("%d\n", i);
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:8: error: 'i' undeclared (first use in this function)
   14 |    for(i=1; i<7; i=i*10){
      |        ^
main.c:14:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

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

   for(n=0; n<200; n++){
      scanf("%d %d", &a[n], &b[n]);
      R[n] = a[n]+b[n];
   }

   for(i=1; i<7; i=i*10){
      if(R[n]>=10*(i-1) && R[n]<10*i){
         printf("%d\n", i);
      }
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:8: error: 'i' undeclared (first use in this function)
   14 |    for(i=1; i<7; i=i*10){
      |        ^
main.c:14:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <cstdio>
using namespace std;
int a,b,s;
int p,cnt,ans;
int scan(){
  if(scanf("%d %d",&a,&b)==EOF) return 0;
  return s=a+b;
}
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(1){
    cnt=1;
    ans=count(scan());
    printf("%d\n",ans);
  }
}

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

#include <stdio.h>
using namespace std;
int a,b,s;
int p,cnt,ans;
int scan(){
  if(scanf("%d %d",&a,&b)==EOF) return 0;
  return s=a+b;
}
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(1){
    cnt=1;
    ans=count(scan());
    printf("%d\n",ans);
  }
}

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

#include<stdio>
int main(){
int a,b,s,d,i;
while(scanf("%d %d",&a,&b)!=EOF){
s=a+b;
d=1;
while(s/10!=0){
d++;
s/=10;
}
printf("%d\n",d);
}
return 0;
}

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

#include<stdio.h>

int main(void){
	int a, b, c, keta = 0;
	while(scanf("%d%d", &a, &b)) != EOF){
		c = a + b;
		while(1){
			c = c / 10;		
			keta++;
			if(c == 0){
				break;
			}
		}
		printf("%d", keta);
	}
}

Compiler output:
main.c: In function 'main':
main.c:5:38: error: expected expression before '!=' token
    5 |         while(scanf("%d%d", &a, &b)) != EOF){
      |                                      ^~
main.c:5:44: error: expected statement before ')' token
    5 |         while(scanf("%d%d", &a, &b)) != EOF){
      |                                            ^
Language: C

#include<stdio.h>
 
typedef int S4;
typedef unsigned char U1;

#define FALSE (0)
#define TRUE  (1)

#define MAX_DIGIT (7)    /* ?????§?????° */
#define MIN_DIGIT (1)    /* ????°??????° */

#define DIVID_NUM_FOR_LOWER_DIGIT (10) /* ????????????????????????????????° */

#define MAX_INPUT_VALUE (1000000) /* ?????§??\?????? */
 
S4 main(){

    S4 s4_t_a;
    S4 s4_t_b;
    U1 u1_t_delimiter;
    S4 s4_t_scanfRtn;
    S4 s4_t_sumInput;
    S4 s4_t_digit;

    s4_t_scanfRtn = (S4)0;

    while(s4_t_scanfRtn != (S4)EOF)
    {
          s4_t_scanfRtn = scanf("%d %d%c", &s4_t_a, &s4_t_b, &u1_t_delimiter);
          s4_t_sumInput = s4_t_a + s4_t_b;

          s4_t_digit = s4_s_calcDigit(s4_t_sumInput);

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

    return 0;
}

static S4 s4_s_calcDigit(S4 s4_a_inputNum)
{
    S4 s4_t_digit;
    S4 s4_t_maxNumOfDigit
    U1 u1_t_isFinishCalc;
    
    u1_t_isFinishCalc = (U1)FALSE;
    s4_t_maxNumOfDigit = (S4)MAX_INPUT_VALUE;
    s4_t_digit = (S4)MAX_DIGIT;

    while((s4_t_digit > (S4)MIN_DIGIT) &&
          (u1_t_isFinishCalc != (U1)TRUE))
    {
         if(s4_a_inputNum >= s4_t_maxNumOfDigit)
         {
             u1_t_isFinishCalc = (U1)TRUE;
         }
         else
         {
             s4_t_digit--;
             s4_t_maxNumOfDigit /= (S4)DIVID_NUM_FOR_LOWER_DIGIT;
         }
    }

    return (s4_t_digit);
}

Compiler output:
main.c: In function 'main':
main.c:32:24: error: implicit declaration of function 's4_s_calcDigit' [-Wimplicit-function-declaration]
   32 |           s4_t_digit = s4_s_calcDigit(s4_t_sumInput);
      |                        ^~~~~~~~~~~~~~
main.c: At top level:
main.c:40:11: error: static declaration of 's4_s_calcDigit' follows non-static declaration
   40 | static S4 s4_s_calcDigit(S4 s4_a_inputNum)
      |           ^~~~~~~~~~~~~~
main.c:32:24: note: previous implicit declaration of 's4_s_calcDigit' with type 'int()'
   32 |           s4_t_digit = s4_s_calcDigit(s4_t_sumInput);
      |                        ^~~~~~~~~~~~~~
main.c: In function 's4_s_calcDigit':
main.c:43:26: error: expected ';' before 'U1'
   43 |     S4 s4_t_maxNumOfDigit
      |                          ^
      |                          ;
   44 |     U1 u1_t_isFinishCalc;
      |     ~~                    
main.c:47:5: error: 's4_t_maxNumOfDigit' undeclared (first use in this function)
   47 |     s4_t_maxNumOfDigit = (S4)MAX_INPUT_VALUE;
      |     ^~~~~~~~~~~~~~~~~~
main.c:47:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main ()
{
	int a,b, sum;

	int count = 0;

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

	sum = a + b;

	for (int i = 1000000, i >= 10; i / 10) {
		if (sum % i >= 0) {
			count++;
		}
	}

	printf("%d\n", count);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
   13 |         for (int i = 1000000, i >= 10; i / 10) {
      |                                 ^~
main.c:13:46: error: expected ';' before ')' token
   13 |         for (int i = 1000000, i >= 10; i / 10) {
      |                                              ^
      |                                              ;
Language: C

#include<stdio.h>

int main(){
    int a,b,c,i=1,j=0;

    while(scanf("%d %d",&a,&b)!=EOF){
        while(!(1<=c&&c=<9)){
            c=(a+b)/i;
            i=i*10;
            j++;
        }
        printf("%d\n",j);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected expression before '<' token
    7 |         while(!(1<=c&&c=<9)){
      |                         ^
Language: C

#include<stdio.h>

int main(void){
    int i=0;
    int tmp1, tmp2, tmp, count;
    int list[200];
    while(scanf("%d%d", &tmp1, &tmp2)!=EOF){
        list[i++] = tmp1+tmp2;
    }
    for(int j=0; j<200; j++){
        tmp=list[j];
        count=0;
        while(tmp<1) {
            count++
            tmp=tmp/10;
        }
        printf("%d", count);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:20: error: expected ';' before 'tmp'
   14 |             count++
      |                    ^
      |                    ;
   15 |             tmp=tmp/10;
      |             ~~~
Language: C

#include <stdio.h>
int main(void){
	while(1){
		int a,b,x;
		scanf("%d%d",&a,&b);
		x=(a+b)/10;
		print("%d",x);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |                 print("%d",x);
      |                 ^~~~~
      |                 printf
Language: C

#include <stdio.h>
int main(void){
	while(1){
		int a,b,x;
		scanf("%d%d",&a,&b);
		x=(a+b)/10;
		print("%d\n",x);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |                 print("%d\n",x);
      |                 ^~~~~
      |                 printf
Language: C

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

int main()
{
	int a = 0, b = 0, c = 0;
	char d[8];
	scanf_s("%d%*[^\n]", &a);
	getchar();
	scanf_s("%d", &b);
	c = a + b;
	_itoa_s(c, d, 10);
	printf("%d", strlen(d));
	return 0;
		 
}


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

int main() {
    int a,b,i;
    int sum;

   while(scanf("%d %d\n", &a,&b)!=EOF) {
        sum=a+b;
        for(i=0;sum!=0;i++){
            sum=sum/10;
       }
       printf("%d\n",i);
   }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |    while(scanf("%d %d\n", &a,&b)!=EOF) {
      |          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:5:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |    while(scanf("%d %d\n", &a,&b)!=EOF) {
      |          ^~~~~
main.c:5:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:35: error: 'EOF' undeclared (first use in this function)
    5 |    while(scanf("%d %d\n", &a,&b)!=EOF) {
      |                                   ^~~
main.c:5:35: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:5:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |        printf("%d\n",i);
      |        ^~~~~~
main.c:10:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:8: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<cstdio>
#include<cmath>

int main() {
	int a, b;
	while (scanf("%d %d", &a, &b)!=EOF) {
		printf("%d\n",(int)log10(a+b) + 1);
	}
	return 0;
}


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

#include<stdio.h>
int main(void){
    int a, b, c, n;
    
    while(scanf("%d %d", &a, &b) != EOF){
        c=a+b;
        n=0;
        do{
            n++;
            c /= 10;
        }
        
        printf(" %d\n", n);
    }
    return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected 'while' before 'printf'
   13 |         printf(" %d\n", n);
      |         ^~~~~~
Language: C

#include <stdio.h>
int main(){
    int a[200],b[200],c[200],t,i,j;
    for(i=0;scanf("%d %d",&a[i],&b[i])!=EOF;i++){
        c[i] = a[i] + b[i];
    }
    for(j=0;j <= i;j++){
        t = 1;
        while(c[j] >= 10){
            c[j] = c[j] / 10;
            t++;
        }
        printf("%d\n",t);
    }
	getch();
    return 0;
}


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

#include <stdio.h>
int main(void){
    int a,b,c;
    int tem=0;
    int ten;
    
    while(true){
        scanf("%d %d",&a,&b);
        if(a==" "&&b==" ") break;
        c = a+b;
        for(ten=1;ten<=100000;ten*=10){
            if(c/ten != 0){
                tem+=1;
            }else{
                break;
            }
        }
        printf("%d\n",tem);
        tem=0;
    }
 
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:11: error: 'true' undeclared (first use in this function)
    7 |     while(true){
      |           ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(void){
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
    7 |     while(true){
      |           ^~~~
main.c:9:13: warning: comparison between pointer and integer
    9 |         if(a==" "&&b==" ") break;
      |             ^~
main.c:9:21: warning: comparison between pointer and integer
    9 |         if(a==" "&&b==" ") break;
      |                     ^~
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
	int a,b;
	int y;
	
	scanf("%d%d",&a,&b);
	
	y=a+b;
	if(y<10){
	printf("1桁\n");
	}
	if else(y<100){
	printf("2桁\n");
	}
	if else(y<1000){
	printf("3桁\n");
	}
	if else(y<10000){
	printf("4桁\n");
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:12: error: expected '(' before 'else'
   14 |         if else(y<100){
      |            ^~~~
      |            (
Language: C

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

int main(void){
	int	a,b,sum,len;
	char line[100],c[2];
	
	fgets(line,sizeof(line),stdin);
	sscanf(line,"%d %d",&a,&b);

	sum = a + b;

	itoa(sum,c,10);

	sprintf(c,"%d",sum);
	
	len = strlen(c);
	
	printf("%d",len);
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   13 |         itoa(sum,c,10);
      |         ^~~~
Language: C

#include <stdio.h>
main(){
  while(1){
    if(count==4) break;
  int a,b,c,count,n;
  n=0;
  scanf("%d%d",&a,&b);
  c=a+b;
  count=0; 
 while(c>0){
    c/=10;
    count++;
  }
  printf("%d\n",count);
  }
return 0; 
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:8: error: 'count' undeclared (first use in this function)
    4 |     if(count==4) break;
      |        ^~~~~
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int a,b,c,n=0;
scanf("%d%d",&a,&b);
c=a+b;
do{c/10=c;
n++;
}while(c>=1);
printf("%d",n);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: lvalue required as left operand of assignment
    6 | do{c/10=c;
      |        ^
Language: C

#include<stdio.h>
int main(){
int a,b,c;
double c;
while(scanf("%d%d",&a,&b)){
c=a+b;
n=0;
if(c==0)n=1;
else while(c>=1){
c/=10;
n++;}
printf("%d\n",n);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: conflicting types for 'c'; have 'double'
    4 | double c;
      |        ^
main.c:3:9: note: previous declaration of 'c' with type 'int'
    3 | int a,b,c;
      |         ^
main.c:7:1: error: 'n' undeclared (first use in this function)
    7 | n=0;
      | ^
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:64: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      |                                                                ^~~~~~
main.c:1:64: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:64: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:64: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:1:87: error: expected declaration specifiers or '...' before numeric constant
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      |                                                                                       ^
main.c:1:90: error: expected identifier or '(' before '}' token
    1 | b;main(a){for(;~scanf("%d%d",&a,&b);a+=b)for(b=0;a>0;b++)a/=10;printf("%d\n",b);}exit(0);}
      |                                                                                          ^
Language: C

b;
main(a){
  for(;~scanf("%d%d",&a,&b);a+=b)
    {
      for(b=0;a>0b++)
	a/=10;
      printf("%d\n",b);
    }
  exit(0);
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(a){
      | ^~~~
main.c: In function 'main':
main.c:2:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   for(;~scanf("%d%d",&a,&b);a+=b)
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b;
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   for(;~scanf("%d%d",&a,&b);a+=b)
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:17: error: invalid suffix "b" on integer constant
    5 |       for(b=0;a>0b++)
      |                 ^~
main.c:5:21: error: expected ';' before ')' token
    5 |       for(b=0;a>0b++)
      |                     ^
      |                     ;
main.c:7:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |       printf("%d\n",b);
      |       ^~~~~~
main.c:7:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    9 |   exit(0);
      |   ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | b;
main.c:9:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    9 |   exit(0);
      |   ^~~~
main.c:9:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

int main(void)
{
	int a, b, sum;
	int i;
	
	while (scanf("%d %d", &a, &b){
		sum = a + b;
		
		i = 0;
		while (sum!= 0){
			sum /= 10;
			i++;
		}
		
		printf("%d\n", i);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:8:38: error: expected ')' before '{' token
    8 |         while (scanf("%d %d", &a, &b){
      |               ~                      ^
      |                                      )
main.c:21:1: error: expected expression before '}' token
   21 | }
      | ^
Language: C

#include <stdio.h>

int main(){
  int a, b, c;
  int keta;

  for(;"scanf("%d %d", &a, &b);){
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    printf("%d\n", keta);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'd' undeclared (first use in this function)
    7 |   for(;"scanf("%d %d", &a, &b);){
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:21: warning: missing terminating " character
    7 |   for(;"scanf("%d %d", &a, &b);){
      |                     ^
main.c:7:21: error: missing terminating " character
    7 |   for(;"scanf("%d %d", &a, &b);){
      |                     ^~~~~~~~~~~~~
main.c:7:21: error: expected ';' before 'c'
    7 |   for(;"scanf("%d %d", &a, &b);){
      |                     ^
      |                     ;
    8 |     c=a+b;
      |     ~                
main.c:9:11: error: expected ')' before ';' token
    9 |     keta=1;
      |           ^
      |           )
main.c:7:6: note: to match this '('
    7 |   for(;"scanf("%d %d", &a, &b);){
      |      ^
main.c:12:3: error: expected expression before '}' token
   12 |   }
      |   ^
main.c: At top level:
main.c:14:3: error: expected identifier or '(' before 'return'
   14 |   return 0;
      |   ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

<stdio.h>
main(){
  int a,b,i,sum;
  while(scanf("%d",&a)!=EOF){
    scanf("%d",&b);
    sum=a+b;
    for(i=1;sum>1;i++)
      sum=sum/10;
    printf("%d\n",i);
  }
  return(0);
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before '<' token
    1 | <stdio.h>
      | ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected expression before ')' token
    8 |   printf("%d\n",);
      |                 ^
Language: C

#include<stdio.h>

int checkdigit(int num)
{
	int i=1;
	while((num/=10)>0)
	{
		i++;
	}
	return i;
}

int power10(int power)
{
	int i,temp=1;
	for(i=0;i<power;i++)
	{
		temp*=10;
	}
	return temp;
}

int formatnum(char *str,int begin,int digit)
{
	int i;
	int temp=0;
	
	for(i=begin;i<digit;i++)
	{
		temp+=((int)(*(str+i)-'0'))*power10(digit-i-1);
	}
	
	return temp;
}

int main()
{
	char str[22];
	int separate,end;
	int num1,num2;
	int i;
	
	while(gets(str)!=NULL)
	{
		i=0;
		while(*(str+i)!='\0')
		{
			if(*(str+i)==' '){separate=i;}
			i++;
		}
		end=i;
		
		num1=formatnum(str,0,separate);
		num2=formatnum(str,separate+1,end);

		printf("%d\n",checkdigit(num1+num2));
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:43:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   43 |         while(gets(str)!=NULL)
      |               ^~~~
      |               fgets
main.c:43:24: warning: comparison between pointer and integer
   43 |         while(gets(str)!=NULL)
      |                        ^~
Language: C

int main()
{
	int a, b, ans;
	char hoge[256];
	
	while(scanf("%d%d", &a, &b) != EOF)
		printf("%d\n", sprintf(hoge, "%d", a+b));
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         while(scanf("%d%d", &a, &b) != EOF)
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:6:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         while(scanf("%d%d", &a, &b) != EOF)
      |               ^~~~~
main.c:6:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:40: error: 'EOF' undeclared (first use in this function)
    6 |         while(scanf("%d%d", &a, &b) != EOF)
      |                                        ^~~
main.c:6:40: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:6:40: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |                 printf("%d\n", sprintf(hoge, "%d", a+b));
      |                 ^~~~~~
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:32: error: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
    7 |                 printf("%d\n", sprintf(hoge, "%d", a+b));
      |                                ^~~~~~~
main.c:7:32: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:7:32: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
main.c:7:32: note: include '<stdio.h>' or provide a declaration of 'sprintf'
Language: C


c[];main(a,b){
	for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
}

Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | c[];main(a,b){
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:2:5: error: return type defaults to 'int' [-Wimplicit-int]
    2 | c[];main(a,b){
      |     ^~~~
main.c: In function 'main':
main.c:2:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:2:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:3:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:3:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |               ^~~~~
main.c:3:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:35: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |                                   ^~~~~~
main.c:3:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:35: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:49: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |                                                 ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | 
main.c:3:49: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |                                                 ^~~~~~
main.c:3:49: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:3:57: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |                                                        ~^~
      |                                                         |
      |                                                         int
main.c:3:57: note: expected 'const char *' but argument is of type 'int'
main.c:3:49: error: too many arguments to function 'strlen'
    3 |         for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(a+b,c,10)));
      |                                                 ^~~~~~
main.c: At top level:
main.c:2:1: warning: array 'c' assumed to have one element
    2 | c[];main(a,b){
      | ^
Language: C

  1 #include <stdio.h>
  2 
  3 int main(int argc, char *argv[]){
  4         int a,b,c,d;
  5         while(1){
  6                 scanf("%d",&a);
  7                 if(a == EOF){
  8                         return 0;
  9                 }
 10                 scanf("%d",&b);
 11                 c = a+b;
 12                 d = 0;
 13                 while(c){
 14                         d++; 
 15                         c /= 10;
 16                 }
 17                 printf("%d\n", d);
 18         }
 19         return 0;
 20 }

Compiler output:
main.c:1:3: error: expected identifier or '(' before numeric constant
    1 |   1 #include <stdio.h>
      |   ^
main.c:1:5: error: stray '#' in program
    1 |   1 #include <stdio.h>
      |     ^
Language: C

main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
      |                                     ^~~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:51: error: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
      |                                                   ^~~~~~~
main.c:1:51: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:1:51: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
main.c:1:51: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:1:59: error: expected expression before ',' token
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",sprintf(,"%d",a+b)));}
      |                                                           ^
Language: C

main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                                     ^~~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:51: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                                                   ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
main.c:1:51: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                                                   ^~~~~~
main.c:1:51: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:1:58: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                                                          ^~~~
main.c:1:58: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",strlen(itoa(a+b,&a,10))));}
      |                                                          ^~~~~~~~~~~~~~~
      |                                                          |
      |                                                          int
main.c:1:58: note: expected 'const char *' but argument is of type 'int'
Language: C

// aoj-1002.c

#include <iostream>

int main() {
	int a, b, temp;
	
	while(scanf("%d %d", &a, &b) != EOF) {
		printf("%d\n", sprintf(temp, "%d", a+b));
	}
	
	return 0;
}

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