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

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

int main(void)
{	
	int count = 0;
	int i;
	long num;
	char str[20],str1[200][15], str2[200][15];
	char *p;
	
	for(i=0; i<200; i++){
		scanf("%s %s", &str1[i], &str2[i]);
		//gets(str1[i]);
		if( *str1[i]=='\0' || *str1[i]=='\n') break;	
		
		num = atol(str1[i])+atol(str2[i]);
		itoa(num, str, 10);
		
		//printf("%ld\n", num);
		//printf("str %s\n", str);
		
		count = 0;
		p = str;
		while(*p!='\0'){
			p++;
			count++;
		}
		printf("%d\n",count);
	}

	return 0;
}

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

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

int main(void)
{	
	int count = 0;
	int i;
	long num;
	char str[20],str1[200][15], str2[200][15];
	char *p;
	
	for(i=0; i<200; i++){
		scanf("%s %s", &str1[i], &str2[i]);
		//gets(str1[i]);
		if( *str1[i]=='\0' || *str1[i]=='\n') break;	
		
		num = atol(str1[i])+atol(str2[i]);
		ltoa(num, str, 10);
		
		//printf("%ld\n", num);
		//printf("str %s\n", str);
		
		count = 0;
		p = str;
		while(*p!='\0'){
			p++;
			count++;
		}
		printf("%d\n",count);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: implicit declaration of function 'ltoa' [-Wimplicit-function-declaration]
   18 |                 ltoa(num, str, 10);
      |                 ^~~~
Language: C

#include <stdio.h>

struct dataset{
	int a, b;
	int num_digits;
};

int main(){
	dataset data[200];
	int i, j, sum;

	i = 0;
	do{
		if(scanf("%d %d", &data[i].a, &data[i].b) == EOF) break;
		else i += 1;

		sum = data[i-1].a + data[i-1].b;
		data[i-1].num_digits = 0;
		do{
			data[i-1].num_digits += 1;
			sum /= 10;
		}while(sum != 0);
	}while(i < 200);

	for(j = 0; j < i; j++) printf("%d\n", data[j].num_digits);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: unknown type name 'dataset'; use 'struct' keyword to refer to the type
    9 |         dataset data[200];
      |         ^~~~~~~
      |         struct 
main.c:14:43: error: request for member 'a' in something not a structure or union
   14 |                 if(scanf("%d %d", &data[i].a, &data[i].b) == EOF) break;
      |                                           ^
main.c:14:55: error: request for member 'b' in something not a structure or union
   14 |                 if(scanf("%d %d", &data[i].a, &data[i].b) == EOF) break;
      |                                                       ^
main.c:17:32: error: request for member 'a' in something not a structure or union
   17 |                 sum = data[i-1].a + data[i-1].b;
      |                                ^
main.c:17:46: error: request for member 'b' in something not a structure or union
   17 |                 sum = data[i-1].a + data[i-1].b;
      |                                              ^
main.c:18:26: error: request for member 'num_digits' in something not a structure or union
   18 |                 data[i-1].num_digits = 0;
      |                          ^
main.c:20:34: error: request for member 'num_digits' in something not a structure or union
   20 |                         data[i-1].num_digits += 1;
      |                                  ^
main.c:25:54: error: request for member 'num_digits' in something not a structure or union
   25 |         for(j = 0; j < i; j++) printf("%d\n", data[j].num_digits);
      |                                                      ^
Language: C

#include<stdio.h>
main () {
	int i;
	int j;
	unsigned long a,b,total;
	while(scanf("%d %d",&a,&b) Q= EOF) {

		total = a + b;
		i = 0;
		while(total >= 10) {
			total /= 10;
			i++;
		}
		i++;
		printf("%d\n",i);
	}
	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:6:35: error: expected ')' before 'Q'
    6 |         while(scanf("%d %d",&a,&b) Q= EOF) {
      |              ~                    ^~
      |                                   )
Language: C

#include<stdio.h>

int main(){
  int i,j,count=0,sum;
int a[3],b[3];
  while(1){
if(scanf("%d %d",a[i],b[i]) == EOF){break;}
i++
}
for(j = 0;j<i;j++){
sum = a[j]+b[j];
while(sum >0){
sum/=10;
count++;
}printf("%d\n",count);
count = 0;
}
}

Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected ';' before '}' token
    8 | i++
      |    ^
      |    ;
    9 | }
      | ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'sum' undeclared (first use in this function)
    7 |     sum = a + b;
      |     ^~~
main.c:7:5: 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;
    int count = 0;
    scanf("%d", &a); scanf("%d", &b);
    sum = a + b;
    do{
        sum /= 10;
        count++;
    }while(sum);
    
    printf("%d\n", count);
    return 0
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'sum' undeclared (first use in this function)
    7 |     sum = a + b;
      |     ^~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: expected ';' before '}' token
   14 |     return 0
      |             ^
      |             ;
   15 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:15: 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(){
main.c:7:15: 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)
{

  int a, b, c, d=0, e=10,f=0;

  while(scanf("%d %d", &a, &b)!=EOF){

    c=a+b;

    while(1){
      d=c/e;
      f++;
      e=e*10;
      if(d==0)break;
  }
    printf("%d\n",f);
    f=0;
    e=10;
    d=0;

  }

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

#include <stdio.h>

int main(){
    int a,b,c,d,i;
    int count;
    int max_data = 200;
    
    for(i=1;i<=max_data;i++){
        a=-1;
        b=-1;
        count=0;
        scanf("%d %d",&a,&b);
        
        if(a<0||b<0){
            break;
        }
        c=a+b;
        d=(int)log10(double)c) + 1;
        printf("%d\n",d);
    }
}

Compiler output:
main.c: In function 'main':
main.c:18:16: error: implicit declaration of function 'log10' [-Wimplicit-function-declaration]
   18 |         d=(int)log10(double)c) + 1;
      |                ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'log10'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:18:16: warning: incompatible implicit declaration of built-in function 'log10' [-Wbuiltin-declaration-mismatch]
   18 |         d=(int)log10(double)c) + 1;
      |                ^~~~~
main.c:18:16: note: include '<math.h>' or provide a declaration of 'log10'
main.c:18:22: error: expected expression before 'double'
   18 |         d=(int)log10(double)c) + 1;
      |                      ^~~~~~
main.c:18:29: error: expected ';' before 'c'
   18 |         d=(int)log10(double)c) + 1;
      |                             ^
      |                             ;
main.c:18:30: error: expected statement before ')' token
   18 |         d=(int)log10(double)c) + 1;
      |                              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'While' [-Wimplicit-function-declaration]
    4 | While(scanf("%d%d",&x,&y)!=EOF){
      | ^~~~~
main.c:4:32: error: expected ';' before '{' token
    4 | While(scanf("%d%d",&x,&y)!=EOF){
      |                                ^
      |                                ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected ';' before 'ans'
    7 |   scanf("%d %d\n",&a,&b)
      |                         ^
      |                         ;
    8 |   ans = a + b;
      |   ~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected ';' before 'ans'
    8 |   scanf("%d %d\n",&a,&b)
      |                         ^
      |                         ;
    9 |   ans = a + b;
      |   ~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected ';' before 'c'
    8 |   scanf("%d %d\n",&a,&b)
      |                         ^
      |                         ;
    9 |   c = a + b;
      |   ~                      
main.c:10:9: error: 'ans' undeclared (first use in this function)
   10 |   while(ans!=0){
      |         ^~~
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main()
{
  int a,b,i;
  int ans = 0;
  int digit = 0;
  for(i=0;i<3;i++{
  scanf("%d %d\n",&a,&b);
  ans = a + b;
  while(ans!=0){
    ans = ans / 10;
    digit++;
  }
  printf("%d\n",digit);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ')' before '{' token
    8 |   for(i=0;i<3;i++{
      |      ~           ^
      |                  )
main.c:18:1: error: expected expression before '}' token
   18 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,i;
  int ans[2] = 0;
  int digit[2] = 0;
  for(i=0;i<3;i++){
    scanf("%d %d\n",&a,&b);
    ans[i] = a + b;
  }
  for(i=0;i<3;i++){
    while(ans[i]!=0){
      ans[i] = ans[i] / 10;
      digit[i]++;
    }
    printf("%d\n",digit[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: invalid initializer
    6 |   int ans[2] = 0;
      |                ^
main.c:7:18: error: invalid initializer
    7 |   int digit[2] = 0;
      |                  ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:11: error: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     while(scant("%d %d",&a,&b)!=EOF){
      |           ^~~~~
      |           scanf
Language: C

#include<stdio.h>

int main(){
    int a,b,sum,i;
    while(scant("%d %d",&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:11: error: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     while(scant("%d %d",&a,&b)!=EOF){
      |           ^~~~~
      |           scanf
Language: C

#include<stdio.h>

int main(){
    int a,b,sum,i;
    while(scant("%d %d",a,b)!=-1){
        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:11: error: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     while(scant("%d %d",a,b)!=-1){
      |           ^~~~~
      |           scanf
Language: C

#include<stdio.h>

int main()
{
  int a,b,i;
  int ans;
  int digit;
  for(i=0;i<3;i++){
    ans = 0;
    digit = 0;
    scanf("%d %d\n",&a,&b);
    ans = a + b;
    digit = (int)log10((double)ans[i]) + 1;
    printf("%d\n",digit);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:18: error: implicit declaration of function 'log10' [-Wimplicit-function-declaration]
   13 |     digit = (int)log10((double)ans[i]) + 1;
      |                  ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'log10'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:13:18: warning: incompatible implicit declaration of built-in function 'log10' [-Wbuiltin-declaration-mismatch]
   13 |     digit = (int)log10((double)ans[i]) + 1;
      |                  ^~~~~
main.c:13:18: note: include '<math.h>' or provide a declaration of 'log10'
main.c:13:35: error: subscripted value is neither array nor pointer nor vector
   13 |     digit = (int)log10((double)ans[i]) + 1;
      |                                   ^
Language: C

#include <stdio.h>

int main(void){
  int a,b,c,s
  while(scanf("%d %d",&a,&b) != EOF){
    s = a+b;
    c = 0;
    if(s!=0){
      while(s>0){
        s /= 10;
        c ++;
      }
      printf("%d\n",c);
    }else{
      printf("%d\n",1);
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    5 |   while(scanf("%d %d",&a,&b) != EOF){
      |   ^~~~~
Language: C

#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d,&a,&b);
c = a + b;

if(c < 10)printf("1\n");
else if(10 <= c && c < 100)printf("2\n);
else if(100 <= c && c < 1000)printf("3\n");
else if(1000 <= c && c < 10000)printf("4\n");
else if(10000 <= c && c < 100000)priintf("5\n");
else if(100000 <= c && c < 1000000)printf("6\n");
else if(1000000 <= c)printf("7\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: warning: missing terminating " character
    4 | scanf("%d %d,&a,&b);
      |       ^
main.c:4:7: error: missing terminating " character
    4 | scanf("%d %d,&a,&b);
      |       ^~~~~~~~~~~~~~
main.c:5:10: error: expected ')' before ';' token
    5 | c = a + b;
      |          ^
      |          )
main.c:4:6: note: to match this '('
    4 | scanf("%d %d,&a,&b);
      |      ^
main.c:8:35: warning: missing terminating " character
    8 | else if(10 <= c && c < 100)printf("2\n);
      |                                   ^
main.c:8:35: error: missing terminating " character
    8 | else if(10 <= c && c < 100)printf("2\n);
      |                                   ^~~~~~
main.c:5:3: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 | c = a + b;
      | ~~^~~~~~~
      |   |
      |   int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
c = a + b;

if(c < 10)printf("1\n");
else if(10 <= c && c < 100)printf("2\n);
else if(100 <= c && c < 1000)printf("3\n");
else if(1000 <= c && c < 10000)printf("4\n");
else if(10000 <= c && c < 100000)priintf("5\n");
else if(100000 <= c && c < 1000000)printf("6\n");
else if(1000000 <= c)printf("7\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:35: warning: missing terminating " character
    8 | else if(10 <= c && c < 100)printf("2\n);
      |                                   ^
main.c:8:35: error: missing terminating " character
    8 | else if(10 <= c && c < 100)printf("2\n);
      |                                   ^~~~~~
main.c:9:1: error: expected expression before 'else'
    9 | else if(100 <= c && c < 1000)printf("3\n");
      | ^~~~
main.c:14:10: error: expected ';' before '}' token
   14 | return 0;
      |          ^
      |          ;
   15 | }
      | ~
Language: C

#include <stdio.h>

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

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

	sum = a + b;

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

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

	return 0;
}

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

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

int main(){
	int i,j;
	char str[100];

	while(scanf("%d %d",&i,&j) != EOF){
	sptintf(str,"%d",a+b)
	printf("%d\n",strlen(i+j));
	}

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'sptintf'; did you mean 'sprintf'? [-Wimplicit-function-declaration]
    9 |         sptintf(str,"%d",a+b)
      |         ^~~~~~~
      |         sprintf
main.c:9:26: error: 'a' undeclared (first use in this function)
    9 |         sptintf(str,"%d",a+b)
      |                          ^
main.c:9:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:28: error: 'b' undeclared (first use in this function)
    9 |         sptintf(str,"%d",a+b)
      |                            ^
main.c:9:30: error: expected ';' before 'printf'
    9 |         sptintf(str,"%d",a+b)
      |                              ^
      |                              ;
   10 |         printf("%d\n",strlen(i+j));
      |         ~~~~~~
Language: C

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

int main(){
	int i,j;
	char str[100];

	while(scanf("%d %d",&i,&j) != EOF){
	sptintf(str,"%d",i+j)
	printf("%d\n",strlen(i+j));
	}

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'sptintf'; did you mean 'sprintf'? [-Wimplicit-function-declaration]
    9 |         sptintf(str,"%d",i+j)
      |         ^~~~~~~
      |         sprintf
main.c:9:30: error: expected ';' before 'printf'
    9 |         sptintf(str,"%d",i+j)
      |                              ^
      |                              ;
   10 |         printf("%d\n",strlen(i+j));
      |         ~~~~~~
Language: C

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

int main(){
	int i,j;
	char str[100];

	while(scanf("%d %d",&i,&j) != EOF){
	sptintf(str,"%d",i+j)
	printf("%d\n",strlen(str));
	}

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'sptintf'; did you mean 'sprintf'? [-Wimplicit-function-declaration]
    9 |         sptintf(str,"%d",i+j)
      |         ^~~~~~~
      |         sprintf
main.c:9:30: error: expected ';' before 'printf'
    9 |         sptintf(str,"%d",i+j)
      |                              ^
      |                              ;
   10 |         printf("%d\n",strlen(str));
      |         ~~~~~~
Language: C

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

int main(){
	int i,j;
	char str[100];

	while(scanf("%d %d",&i,&j) != EOF){
	sptintf(str,"%d",i+j);
	printf("%d\n",strlen(str));
	}

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'sptintf'; did you mean 'sprintf'? [-Wimplicit-function-declaration]
    9 |         sptintf(str,"%d",i+j);
      |         ^~~~~~~
      |         sprintf
Language: C

#include<stdio.h>
int main()
{
	int a,b,i;
	for (i = 0; i < 3; i++) {
		scanf_s("%d %d", &a, &b);
		a = a + b;
		b = a / 10 + 1;
		printf("%d\n", b);
		a = 0;
		b = 0;
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |                 scanf_s("%d %d", &a, &b);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>

int main(){

int a,b,n,l,i,j;

for(i=0;i<201;i++){

if(scanf("%d %d",a,b)=!0){

n=a+b;

for(j=0;n>0;j++){
n=n/10;
l++;
}
printf("%d\n",l);

}
else{
break;
}

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: lvalue required as left operand of assignment
    9 | if(scanf("%d %d",a,b)=!0){
      |                      ^
Language: C

#include<stdio.h>

int main(){

int a,b,n,l,i,j;

for(i=0;i<201;i++){


break;
else{
if(scanf("%d %d",a,b)==0){

n=a+b;

for(j=0;n>0;j++){
n=n/10;
l++;
}
printf("%d\n",l);

}
}

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:1: error: 'else' without a previous 'if'
   11 | else{
      | ^~~~
Language: C

#include<stdio.h>

int main(){

int a,b,n,l,i,j;

for(i=0;i<201;i++){



if(scanf("%d %d",a,b)!=0){

n=a+b;

for(j=0;n>0;j++){
n=n/10;
l++;
}
printf("%d\n",l);

}
break;
else{

}

}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'else' without a previous 'if'
   23 | else{
      | ^~~~
Language: C

#include<stdio.h>
 
int main(){
 
int a,b,n,l,i,j,flag;
 
//for(i=0;i<201;i++){
 

 
if(scanf("%d %d",a,b)==2){
 
n=a+b;
 
for(j=0;n>0;j++){
n=n/10;
l++;
}
printf("%d\n",l);
 
}

else{
flag=1;
 break;
}
 
if(flag==1){
break;
}

//}
 
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:2: error: break statement not within loop or switch
   25 |  break;
      |  ^~~~~
main.c:29:1: error: break statement not within loop or switch
   29 | break;
      | ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected expression before '=' token
    8 |                 a/ = 10;
      |                    ^
Language: C

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

int main()
{
  int a, b;

  while(scanf("%d %d", &a, &b) != EOF)
    printf("%d\n", stdlen(str(a+b)));

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: implicit declaration of function 'stdlen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    9 |     printf("%d\n", stdlen(str(a+b)));
      |                    ^~~~~~
      |                    strlen
main.c:9:27: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    9 |     printf("%d\n", stdlen(str(a+b)));
      |                           ^~~
Language: C

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

int main()
{
  int a, b;

  while(scanf("%d %d", &a, &b) != EOF)
    printf("%d\n", strlen(str(a+b)));

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:27: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    9 |     printf("%d\n", strlen(str(a+b)));
      |                           ^~~
main.c:9:27: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    9 |     printf("%d\n", strlen(str(a+b)));
      |                           ^~~~~~~~
      |                           |
      |                           int
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C

int main(void) {
	int i,count;
	int arr[3][MAX];
	int dig[MAX];

	// input
	for (i=0; ; i++) {
		printf("in\n");
		if(scanf("%d %d", &arr[0][i], &arr[1][i]) == EOF) break;
		arr[2][i] = arr[0][i] + arr[1][i];
		count++;
	}

	// calc
	for (i=0; i < count; ++i){
		while (1) {
			arr[2][i] /= 10;
			printf("%d\n", arr[2][i]);
			dig[i]++;
			if(arr[2][i] == 0) break;
		}
	}	


	//output 
	for (i = 0; i < count; ++i)	{
		printf("%d\n", dig[i]);
	}

	return 0;	
}

Compiler output:
main.c: In function 'main':
main.c:3:20: error: 'MAX' undeclared (first use in this function)
    3 |         int arr[3][MAX];
      |                    ^~~
main.c:3:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                 printf("in\n");
      |                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:8:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |                 printf("in\n");
      |                 ^~~~~~
main.c:8:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:20: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |                 if(scanf("%d %d", &arr[0][i], &arr[1][i]) == EOF) break;
      |                    ^~~~~
main.c:9:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:9:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:62: error: 'EOF' undeclared (first use in this function)
    9 |                 if(scanf("%d %d", &arr[0][i], &arr[1][i]) == EOF) break;
      |                                                              ^~~
main.c:9:62: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:18:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |                         printf("%d\n", arr[2][i]);
      |                         ^~~~~~
main.c:18:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   27 |                 printf("%d\n", dig[i]);
      |                 ^~~~~~
main.c:27:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>
#define MAX 200

int main(void) {
        int i,count;
        int arr[3][MAX];
        int dig[MAX];

        // input                                                                
        for (i=0; ; i++) {
                if(scanf("%d %d", &arr[0][i], &arr[1][i]) == EOF) break;
                arr[2][i] = arr[0][i] + arr[1][i];
                count++;
        }

        // calc                                                                 
        for (i=0; i < count; ++i){
                while (1) {
                        arr[2][i] /= 10;
                        dig[i]++;
                        if(arr[2][i] == 0) break;
                }
        }


        //output                                                                
        for (i = 0; i < count; ++i)     {
                printf("%d\n", dig[i]);
        }

        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,i,R;
    while(scanf("%d %d",&a,&b)!=EOF){
        R=a+b;
        for(i=0;R!=0;i++)
??????????   R=R/10;
??????    ??printf("%d\n",i);

    }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????????   R=R/10;
      | ^
main.c:8:1: error: expected expression before '?' token
    8 | ??????    ??printf("%d\n",i);
      | ^
Language: C

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

    }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????????       k = k/10;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????    ??printf("%d\n",i);
      | ^
Language: C

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

    }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: expected expression before '?' token
    6 | ??????????   while(k!=0){
      | ^
Language: C

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

}
  
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected ';' before 'while'
    6 | digit=0
      |        ^
      |        ;
    7 | while(scanf("%d %d\n", &a, &b) != EOF){
      | ~~~~~
Language: C

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

}
  
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: lvalue required as left operand of assignment
   12 |      a+b=(a+b)/10;
      |         ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:24: error: expected ';' before 'while'
    7 |                 num=a+b
      |                        ^
      |                        ;
    8 |                 while(num/10!=0)
      |                 ~~~~~
Language: C

#include<stdio.h>

int main() {

int a[200],b[200],i,count=0,c,waru=1count_waru=0;

while(scanf("%d%d",&a[i],b[i])==EOF)
count++;

for(i=0;i<count;i++){
c=a[i]+b[i];

while(c%waru==0){
waru*=10;
count_waru++;
}
printf("%d\n",count_waru);
coun_waru=0;
waru=1;
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:36: error: invalid suffix "count_waru" on integer constant
    5 | int a[200],b[200],i,count=0,c,waru=1count_waru=0;
      |                                    ^~~~~~~~~~~
main.c:15:1: error: 'count_waru' undeclared (first use in this function)
   15 | count_waru++;
      | ^~~~~~~~~~
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:1: error: 'coun_waru' undeclared (first use in this function)
   18 | coun_waru=0;
      | ^~~~~~~~~
Language: C

#include<stdio.h>

int main() {

int a[200],b[200],i,count=0,c,waru=1,count_waru=0;

while(scanf("%d%d",&a[i],b[i])==EOF)
count++;

for(i=0;i<count;i++){
c=a[i]+b[i];

while(c%waru==0){
waru*=10;
count_waru++;
}
printf("%d\n",count_waru);
coun_waru=0;
waru=1;
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:1: error: 'coun_waru' undeclared (first use in this function); did you mean 'count_waru'?
   18 | coun_waru=0;
      | ^~~~~~~~~
      | count_waru
main.c:18:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main () {
    int i, n = 0;
    int data[1000];

    while(1) {
        if ( scanf("%d %d", &data[n], &data[n+1]) == EOF )
            break;
        n += 2;
    }

    for ( i = 0; i < n; i += 2 ) {
        /*
        int sum = data[i] + data[i+1];
        int digit = 0;
        while( sum >= 10 ) {
            sum -= 10;
            // sum /= 10;
            digit++;
        }
        */

        printf("%d\n", digit);
    }
    return 1;
}

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

#include<stdio.h>

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

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

#include<stdio.h>

int main(void){
  int a[200].b[200];
  int i,j,tmp;
  for(i=0;i<200;i++){
    a[i]=0;
    b[i]=0;
  }
  for(i=0;i<200;i++){
    scanf("%d %d",&a[i],&b[i]);
  }
  for(i=0;i<200&&a[i]+b[i]!=0;i++){
    tmp=a[i]+b[i];
    for(i=0;tmp!=0;i++){
      tmp/=10;
    }
    printf("%d\n",i);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |   int a[200].b[200];
      |             ^
main.c:4:13: error: expected expression before '.' token
main.c:7:5: error: 'a' undeclared (first use in this function)
    7 |     a[i]=0;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'b' undeclared (first use in this function)
    8 |     b[i]=0;
      |     ^
Language: C

#include<stdio.h>

int main(void){
  int a[200].b[200];
  int i,j,tmp;
  for(i=0;i<200;i++){
    a[i]=0;
    b[i]=0;
  }
  for(i=0;i<200;i++){
    scanf("%d %d",&a[i],&b[i]);
  }
  for(i=0;i<200&&a[i]+b[i]!=0;i++){
    tmp=a[i]+b[i];
    for(j=0;tmp!=0;j++){
      tmp/=10;
    }
    printf("%d\n",j);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |   int a[200].b[200];
      |             ^
main.c:4:13: error: expected expression before '.' token
main.c:7:5: error: 'a' undeclared (first use in this function)
    7 |     a[i]=0;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'b' undeclared (first use in this function)
    8 |     b[i]=0;
      |     ^
Language: C

#include <stdio.h>
int main (void)
{
  int sum1 = 0, d1 = 0;
  int sum2 = 0, d2 = 0;
  int sum3 = 0, d3 = 0;
  int i1, i2, i3, j1, j2, j3, d1, d2, d3;
  scanf("%d %d", &i1, &j1);
  scanf("%d %d", &i2, &j2);
  scanf("%d %d", &i3, &j3);
  sum1 = i1 + j1;
  sum2 = i2 + j2;
  sum3 = i3 + j3;
  while(sum1 != 0){
    sum1 /= 10;
    d1++;
  }
  while(sum2 != 0){
    sum2 /= 10;
    d2++;
  }
  while(sum3 != 0){
    sum3 /= 10;
    d3++;
  }
  printf("%d\n", d1);
  printf("%d\n", d2);
  printf("%d\n", d3);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:31: error: redeclaration of 'd1' with no linkage
    7 |   int i1, i2, i3, j1, j2, j3, d1, d2, d3;
      |                               ^~
main.c:4:17: note: previous definition of 'd1' with type 'int'
    4 |   int sum1 = 0, d1 = 0;
      |                 ^~
main.c:7:35: error: redeclaration of 'd2' with no linkage
    7 |   int i1, i2, i3, j1, j2, j3, d1, d2, d3;
      |                                   ^~
main.c:5:17: note: previous definition of 'd2' with type 'int'
    5 |   int sum2 = 0, d2 = 0;
      |                 ^~
main.c:7:39: error: redeclaration of 'd3' with no linkage
    7 |   int i1, i2, i3, j1, j2, j3, d1, d2, d3;
      |                                       ^~
main.c:6:17: note: previous definition of 'd3' with type 'int'
    6 |   int sum3 = 0, d3 = 0;
      |                 ^~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: too few arguments to function 'feof'
    6 |         while(feof()!=0){
      |               ^~~~
In file included from main.c:1:
/usr/include/stdio.h:852:12: note: declared here
  852 | extern int feof (FILE *__stream) __THROW __wur __nonnull ((1));
      |            ^~~~
Language: C

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

int main()
{

	int i=0;
	char a[9][200];
	char b[9][200];
	int length_a=0;
	int length_b=0;

	while (scanf("%s %s", a+i, b+i) != EOF) {
		i++;
	}
	
	for(j=0;j<i;j++)
	{
		printf("%d\n",strlen(a[i])+strlen(b[i]));
	}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:13: error: 'j' undeclared (first use in this function)
   17 |         for(j=0;j<i;j++)
      |             ^
main.c:17:13: 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, count;
int input = scanf("%d %d", &a,&b);
while (input != EOF) {
    sum = a + b;
    count = 0;
    while (sum != 0) {
        count += 1;
        sum = sum / 10;
    }
    printf("%d\n", count);
    input = scanf("%d %d", &a,&b);
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:2: error: expected declaration specifiers before 'scanf'
    4 |  scanf("%d %d", &a,&b);
      |  ^~~~~
main.c:5:1: error: expected declaration specifiers before 'while'
    5 | while (input != EOF) {
      | ^~~~~
main.c:3:14: error: declaration for parameter 'count' but no such parameter
    3 | int a,b,sum, count;
      |              ^~~~~
main.c:3:9: error: declaration for parameter 'sum' but no such parameter
    3 | int a,b,sum, count;
      |         ^~~
main.c:3:7: error: declaration for parameter 'b' but no such parameter
    3 | int a,b,sum, count;
      |       ^
main.c:3:5: error: declaration for parameter 'a' but no such parameter
    3 | int a,b,sum, count;
      |     ^
main.c:15: error: expected '{' at end of input
Language: C

#include<stdio.h>

int main(){
	int a, b, sum, count = 1;
	for (int i = 1; i <= 200;){
		scanf_s("%d %d", &a, &b);
		if (0 <= a, b <= 1000000){
			sum = a + b;
			for (;;){
				if (sum / 10 == 0){
					break;
				}
				else{
					sum /= 10;
					count++;
				}
			}
			printf("%d\n", count);
			count = 1;
			i++;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |                 scanf_s("%d %d", &a, &b);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>

int main(){
	int a, b, sum, count = 1;
	int i;
	for (i = 1; i <= 200;){
		scanf_s("%d %d", &a, &b);
		if (0 <= a, b <= 1000000){
			sum = a + b;
			for (;;){
				if (sum / 10 == 0){
					break;
				}
				else{
					sum /= 10;
					count++;
				}
			}
			printf("%d\n", count);
			count = 1;
			i++;
		}
	}
	return 0;
}

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

#include <stdio.h>

int main()
{
   int a,b,c,count;
   scanf("%d %d",&a,&b);
   c = a+b;

  for(count = 0;c>0;count++){
      c /= 10
}
printf("%d\n",count);
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected ';' before '}' token
   10 |       c /= 10
      |              ^
      |              ;
   11 | }
      | ~
Language: C

#include <stdio.h>
int main()
{
  int a,b,c;
  int n = 0;

 
  while(scanf("%d%d",&a,&b) != EOF){
    c = a + b;

    while( c != 0){{
      c = c / 10;
      ++n;
    
    }
     printf("%d\n",n);

    }
 
  }
  
  return 0;

Compiler output:
main.c: In function 'main':
main.c:22:3: error: expected declaration or statement at end of input
   22 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>
int main()
{
  int a,b,c;
  int n;

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

    }
  
  return 0;

Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
   21 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>
int main()
{
  int a,b,c;
  int n = 0;

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

    }
  
  return 0;

Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
   21 |   return 0;
      |   ^~~~~~
Language: C

include <stdio.h>
int main()
{
  int a,b,c;
  int n = 0;

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

    }
  
  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()
{
  int a,b;
  int n = 0;

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

    
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: lvalue required as left operand of assignment
   13 |         (a + b) /= 10;
      |                 ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected ';' before '}' token
   10 |   return 0
      |           ^
      |           ;
   11 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:11: error: expected ';' before '}' token
   14 |   return 0
      |           ^
      |           ;
   15 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected ';' before 'while'
    5 |   scanf("%d%d",&a,&b)
      |                      ^
      |                      ;
    6 |       while(c<=a+b)
      |       ~~~~~           
main.c:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
Language: C

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

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

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

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

#include<stdio.h>
int main(void){
int a,b,n,s,c;
scanf("%d%d",&a,%b);
s=a+b;
for(n=1;n<=s;n*10){
c=c+1;
}
printf("%d\n",c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected expression before '%' token
    4 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

#include<stdio.h>
int main(void){
int a,b,n,s,c=0;
scanf("%d%d",&a,%b);
s=a+b;
for(n=1;n<=s;n*10){
c=c+1;
}
printf("%d\n",c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected expression before '%' token
    4 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected expression before '%' token
    4 | scanf("%d%d",&a,%b);
      |                 ^
main.c:7:4: error: expected expression before ';' token
    7 | c==;
      |    ^
Language: C

#include <stdio.h>
int main(){
	int varA[] = {0}, varB[] = {0};
	int varSum[] = {0};
	int varDigit = 0;
	int comp = 1;
	int i = 0;
	while(i < 3){
		scanf("%d %d", &varA[i], &varB[i]);
		varSum[i] = varA[i] + varB[i];
		i++;
	}
	for(i = 0; i < 10; i++){
		comp *= 10;
		varDigit++;
		if((varSum % comp) == varSum){
			break;
		}
	}
	printf("%d\n", varDigit);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:28: error: invalid operands to binary % (have 'int *' and 'int')
   16 |                 if((varSum % comp) == varSum){
      |                     ~~~~~~ ^
      |                     |
      |                     int *
Language: C

#include <stdio.h>
int main(){
	int varA[3] = {0}, varB[3] = {0};
	int varSum[3] = {0};
	int varDigit = 0;
	int comp = 1;
	int i = 0;
	while(i < 3){
		scanf("%d %d", &varA[i], &varB[i]);
		varSum[i] = varA[i] + varB[i];
		i++;
	}
	for(i = 0; i < 10; i++){
		comp *= 10;
		varDigit++;
		if((varSum % comp) == varSum){
			break;
		}
	}
	printf("%d\n", varDigit);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:28: error: invalid operands to binary % (have 'int *' and 'int')
   16 |                 if((varSum % comp) == varSum){
      |                     ~~~~~~ ^
      |                     |
      |                     int *
Language: C

#include <stdio.h>
int main(){
	int varA[3] = {0}, varB[3] = {0};
	int varSum[3] = {0};
	int varDigit = 0;
	int comp = 1;
	int i = 0;
	while(i < 3){
		scanf("%d%d", &varA[i], &varB[i]);
		varSum[i] = varA[i] + varB[i];
		i++;
	}
	for(i = 0; i < 10; i++){
		comp *= 10;
		varDigit++;
		if((varSum % comp) == varSum){
			break;
		}
	}
	printf("%d\n", varDigit);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:28: error: invalid operands to binary % (have 'int *' and 'int')
   16 |                 if((varSum % comp) == varSum){
      |                     ~~~~~~ ^
      |                     |
      |                     int *
Language: C

#include <stdio.h>
int main(){
	int varA[3] = {0}, varB[3] = {0};
	int varSum[3] = {0};
	int varDigit[3] = {0};
	int comp = 1;
	int i = 0;
	while(i < 3){
		scanf("%d%d",&varA[i],&varB[i]);
		varSum[i] = varA[i] + varB[i];
		i++;
	}
	for(j = 0; j < 3; j++){
		comp = 1;
		for(i = 0; i < 10; i++){
			comp *= 10;
			varDigit[j]++;
			if((varSum[j] % comp) == varSum[j]){
				break;
			}
		}
	}
	printf("%d\n%d\n%d\n",varDigit[0],varDigit[1],varDigit[2]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:13: error: 'j' undeclared (first use in this function)
   13 |         for(j = 0; j < 3; j++){
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
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 == EOF){
			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))){
      |                                         ^~~~~~