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

#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}


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

#include <stdio.h>
 
int main(void) {
int d;
int i = 0;
    while(1){
    scanf("%d", &d);
    if ( d == 0 ){break;}
    i++
    printf("Case %d: %d", i, d);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected ';' before 'printf'
    9 |     i++
      |        ^
      |        ;
   10 |     printf("Case %d: %d", i, d);
      |     ~~~~~~
Language: C

#include <stdio.h>
int main() {
	int x;
	for (int i = 1; ; ++i) {
		scanf_s("%d", &x);
		
		if (x == 0) break;
		  printf("Case %d: %d\n",i,x); 
	}

	return 0;
}


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

#include<cmath>
#include<stdio.h>
//using namespace std;
//scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);
//printf("Yes\n");
int main() {
  int a;
  long i = 1;
  while(a != 0){
    scanf("%d",&a);
     if(a != 0){
      printf("Case %d: %d\n",i,a);
      i = i+1;
     }
  }

  return 0;
}


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

#include<stdio.h>
main(){
  int i,n;
  for(i=1;;i++){
    scanf("%d",&n);
    if(n==0)break;
    printf("case %d: %d\n",i,x);
    }
    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:7:30: error: 'x' undeclared (first use in this function)
    7 |     printf("case %d: %d\n",i,x);
      |                              ^
main.c:7:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

main()
{
    int i;
    int x[10000];
    for(i=0;i<10000;i++){
        scanf("%d",&x[i]);
        if(x=0){
            break;
        }
        printf("Case %d: &d\n",i,x[i]);
      }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:13: error: assignment to expression with array type
    9 |         if(x=0){
      |             ^
Language: C

#include<stdio.h>

main()
{
    int i,j;
    int x[10000];
    for(i=0;i<10000;i++){
        scanf("%d",&x[i]);
        if(x=0){
            break;
        }
        
      }
   for(j=0;j<i;j++){
        printf("Case %d: &d\n",j+1,x[j]);
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:13: error: assignment to expression with array type
    9 |         if(x=0){
      |             ^
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include<stdio.h>

main()
{
    int i,j;
    int x[10000];
    for(i=0;i<10000;i++){
        scanf("%d",&x[i]);
        if(x=0){
            break;
        }
        
      }
   for(j=0;j<i;j++){
        printf("Case %d: &d\n",j+1,x[j]);
    }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:13: error: assignment to expression with array type
    9 |         if(x=0){
      |             ^
Language: C

#include<stdio.h>

main(void)
{
    int i,j;
    int x[10000];
    for(i=0;i<10000;i++){
        scanf("%d",&x[i]);
        if(x=0){
            break;
        }
        
      }
   for(j=0;j<i;j++){
        printf("Case %d: &d\n",j+1,x[j]);
    }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:9:13: error: assignment to expression with array type
    9 |         if(x=0){
      |             ^
Language: C

#include<stdio.h>
int main(){
int a[10000],i=0,j;


while(a[i] != 0){
scanf("%d",&a[i]);
i++
}

for(j = 0;j < i;j++){
printf("Case %d: %d\n",i,a[i]);
}

reutrn 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected ';' before '}' token
    8 | i++
      |    ^
      |    ;
    9 | }
      | ~   
main.c:15:1: error: 'reutrn' undeclared (first use in this function)
   15 | reutrn 0;
      | ^~~~~~
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:7: error: expected ';' before numeric constant
   15 | reutrn 0;
      |       ^~
      |       ;
Language: C

#include<stdio.h>
int main(){
int a[10000],i=0,j;


while(a[i] != 0){
scanf("%d",&a[i]);
i++;
}

for(j = 0;j < i;j++){
printf("Case %d: %d\n",i,a[i]);
}

reutrn 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:1: error: 'reutrn' undeclared (first use in this function)
   15 | reutrn 0;
      | ^~~~~~
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:7: error: expected ';' before numeric constant
   15 | reutrn 0;
      |       ^~
      |       ;
Language: C

#include<stdio.h>
int main(){
int a[10000],i=0,j;


while(a[i] != 0){
scanf("%d",&a[i]);
i++;
}

for(j = 0;j < i;j++){
printf("Case %d: %d\n",j,a[j]);
}

reutrn 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:1: error: 'reutrn' undeclared (first use in this function)
   15 | reutrn 0;
      | ^~~~~~
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:7: error: expected ';' before numeric constant
   15 | reutrn 0;
      |       ^~
      |       ;
Language: C

#include<stdio.h>
int main(){
int i;
i = 1;
for(;;)
{
scanf("%d",&x);
printf("Case %d : %d\n",i, x);
if(x == 0)break;
i++;
}
return 0;
}


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

#include <stdio.h>
int main(){
int i;
i = 1;
for( ;; )
{
scanf("%d",&x);
printf("Case %d : %d\n",i, x);
if(x == 0){
break;
}
i++;
}
return 0;
}


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

#include <stdio.h>
int main(){
int i ,x;
i = 1;
while()
{
scanf("%d",&x);
printf("Case %d: %d\n",i, x);
i++;

if(x == 0){
break;
}

}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected expression before ')' token
    5 | while()
      |       ^
Language: C

#include<stdio.h>
int main(void)
{
	int x;
	for(int i = 0;x == 0;i++){
		scanf("%d",&x);
	}
	for(int j = 0;j == i;j++){
		i = 1;
		printf("Case %d: %d\n",i,x);
		i++;
	}
}



Compiler output:
main.c: In function 'main':
main.c:8:28: error: 'i' undeclared (first use in this function)
    8 |         for(int j = 0;j == i;j++){
      |                            ^
main.c:8:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int x[];
	for(;;){
		scanf("%d",&x);
		if(x==0){
			break;
		}
	}
	for(int j = 0;j<=i;j++){
			printf("Case %d: %d\n",j+1,x[j]);
	}
}


Compiler output:
main.c: In function 'main':
main.c:4:13: error: array size missing in 'x'
    4 |         int x[];
      |             ^
main.c:11:26: error: 'i' undeclared (first use in this function)
   11 |         for(int j = 0;j<=i;j++){
      |                          ^
main.c:11:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int x[];
	while(1){
			scanf("%d",&x);
			if(x==0){
			break;
		}
	}
	for(int j = 0;j<=i;j++){
			printf("Case %d: %d\n",j+1,x[j]);
	}
}


Compiler output:
main.c: In function 'main':
main.c:4:13: error: array size missing in 'x'
    4 |         int x[];
      |             ^
main.c:11:26: error: 'i' undeclared (first use in this function)
   11 |         for(int j = 0;j<=i;j++){
      |                          ^
main.c:11:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int x[];
	while(1){
		scanf("%d",&x);
		printf("Case %d: %d\n",j+1,x[j]);
		if(x==0){
			break;
		}
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:13: error: array size missing in 'x'
    4 |         int x[];
      |             ^
main.c:7:40: error: 'j' undeclared (first use in this function)
    7 |                 printf("Case %d: %d\n",j+1,x[j]);
      |                                        ^
main.c:7:40: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int x;
	while(1){
		scanf("%d",&x);
		printf("Case %d: %d\n",j+1,x);
		if(x==0){
			break;
		}
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:40: error: 'j' undeclared (first use in this function)
    7 |                 printf("Case %d: %d\n",j+1,x);
      |                                        ^
main.c:7:40: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int x[],i;
	while(1){
		scanf("%d",&x);
		i++;
		if(x[i]==0){
			break;
		}
	}
	for(int j = 0;j < i;j++)
	{
		printf("Case %d: %d",j+1,x[j]);
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:13: error: array size missing in 'x'
    4 |         int x[],i;
      |             ^
Language: C

#include<stdio.h>
int main(void)
{
	int x[],i;
	while(1){
		scanf("%d",&x);
		i++;
		if(x[i]==0){
			break;
		}
	}
	for(int j = 0;j < i;j++)
	{
		printf("Case %d: %d\n",j,x[j]);
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:13: error: array size missing in 'x'
    4 |         int x[],i;
      |             ^
Language: C

#include<stdio.h>

int main(void)
{
	int i = 1;
	int x;
	while(1){
		scanf("%d", &x);
		printf("Case %d: %d\n",i ,x);
		i++
		if( x == 0 )break;
	}

	return 0;
} 


Compiler output:
main.c: In function 'main':
main.c:10:20: error: expected ';' before 'if'
   10 |                 i++
      |                    ^
      |                    ;
   11 |                 if( x == 0 )break;
      |                 ~~
Language: C

#include<stdio.h>

int main(void)
{
	int i = 1;
	int x;
	while(1){
		scanf("%d", &x);
		if( x == 0 )break;
		printf("Case %d: %d\n",i ,x);
		i++
	}

	return 0;
} 


Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ';' before '}' token
   11 |                 i++
      |                    ^
      |                    ;
   12 |         }
      |         ~
Language: C

#include <stdio.h>

int main(void) {
	int x;
	int i;
	i = 1;
	while(1){
		scanf_s("%d",&x);
		printf("Case %d: %d\n",i,x);
		if (x == 0) break;
		i++;
	}
	return 0;
}


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

#include <stdio.h>

int main(void) {
	int x;
	int i;
	i = 1;
	while(1){
		scanf_s("%d",&x);
		if (x == 0) break;
		printf("Case %d: %d\n",i,x);
		i++;
	}
	return 0;
}



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

#include<stdio.h>

int main(void){
  int x,i = 1;
 
  while(1){
    int x = 0;
    scanf("%d",&x[i]);
    if(x == 0){
      break;
    }
    printf("Case %d: %d\n",i,x);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:18: error: subscripted value is neither array nor pointer nor vector
    8 |     scanf("%d",&x[i]);
      |                  ^
Language: C

#include <stdio.h>
int main(void)
{
 int i=1,x;
 for(i=1;;i++)
  {
    scanf("%d",&x);
    if(x==0)
      break;
    print("case %d: %d\n",i,x);
  }
  return 0;
}
   


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

#include <stdio.h>
main()
{
 int i,x;
 for(i=1;;i++)
  {
    scanf("%d",&x);
    if(x==0)
      break;
    print("Case %d: %d\n",i,x);
  }
  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:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("Case %d: %d\n",i,x);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>
int main(void)
{
    int x;
    i=1;
    while(scanf("%d",&x),x!= 0)
    {
        printf("Case %d: %d\n",i,x);
        i++;
        }
        return 0;
}



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

#include <stdio.h>
int main(void){
    int x, i;
    
    for(i=1; x=0; i++){
        scanf(%d, &x);
        if(x>0){
            printf(Case %d:%d\n, i,x);
        }else{
            break;   
        }
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d, &x);
      |               ^
main.c:8:20: error: 'Case' undeclared (first use in this function)
    8 |             printf(Case %d:%d\n, i,x);
      |                    ^~~~
main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:26: error: 'd' undeclared (first use in this function)
    8 |             printf(Case %d:%d\n, i,x);
      |                          ^
main.c:8:27: error: expected ')' before ':' token
    8 |             printf(Case %d:%d\n, i,x);
      |                   ~       ^
      |                           )
main.c:8:30: error: stray '\' in program
    8 |             printf(Case %d:%d\n, i,x);
      |                              ^
Language: C

#include <stdio.h>
int main(void){
    int x, i;
    
    for(i=1; x<0; i++){
        scanf(%d, &x);
        printf(Case %d:%d\n, i,x);
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d, &x);
      |               ^
main.c:7:16: error: 'Case' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                ^~~~
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                      ^
main.c:7:23: error: expected ')' before ':' token
    7 |         printf(Case %d:%d\n, i,x);
      |               ~       ^
      |                       )
main.c:7:26: error: stray '\' in program
    7 |         printf(Case %d:%d\n, i,x);
      |                          ^
Language: C

#include <stdio.h>
int main(void){
    int x=1, i;
    
    for(i=1; x<0; i++){
        scanf(%d, &x);
        printf(Case %d:%d\n, i,x);
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d, &x);
      |               ^
main.c:7:16: error: 'Case' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                ^~~~
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                      ^
main.c:7:23: error: expected ')' before ':' token
    7 |         printf(Case %d:%d\n, i,x);
      |               ~       ^
      |                       )
main.c:7:26: error: stray '\' in program
    7 |         printf(Case %d:%d\n, i,x);
      |                          ^
Language: C

#include <stdio.h>
int main(void){
    int x=1, i;
    
    for(i=1; x>0; i++){
        scanf(%d, &x);
        printf(Case %d:%d\n, i,x);
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d, &x);
      |               ^
main.c:7:16: error: 'Case' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                ^~~~
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                      ^
main.c:7:23: error: expected ')' before ':' token
    7 |         printf(Case %d:%d\n, i,x);
      |               ~       ^
      |                       )
main.c:7:26: error: stray '\' in program
    7 |         printf(Case %d:%d\n, i,x);
      |                          ^
Language: C

#include <stdio.h>
int main(void){
    int x=1, i;
    
    for(i=1; x>0; i++){
        scanf(%d\n, &x);
        printf(Case %d:%d\n, i,x);
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d\n, &x);
      |               ^
main.c:6:17: error: stray '\' in program
    6 |         scanf(%d\n, &x);
      |                 ^
main.c:7:16: error: 'Case' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                ^~~~
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |         printf(Case %d:%d\n, i,x);
      |                      ^
main.c:7:23: error: expected ')' before ':' token
    7 |         printf(Case %d:%d\n, i,x);
      |               ~       ^
      |                       )
main.c:7:26: error: stray '\' in program
    7 |         printf(Case %d:%d\n, i,x);
      |                          ^
Language: C

#include <stdio.h>
int main(void){
    int i,n;
    for(i=1;i++){
        scanf("%d",&n);
        if(n==0)break;
        printf("Case %d: %d",i,n);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
    4 |     for(i=1;i++){
      |                ^
      |                ;
Language: C

#include <stdio.h>
int main(void){
    int i,n;
    for(i=1;i++){
        scanf("%d",&n);
        if(n==0)break;
        printf("Case %d: %d",i,n);
    }
    printf("\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
    4 |     for(i=1;i++){
      |                ^
      |                ;
Language: C

#include <stdio.h>
int main(void){
    int i,n;
    for(i=1;i++){
        scanf("%d",&n);
        if(n==0)break;
        else
        printf("Case %d: %d",i,n);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
    4 |     for(i=1;i++){
      |                ^
      |                ;
Language: C

#include <stdio.h>
int main(void){
    int i,x;
    for(i=1;i++){
        scanf("%d",&x);
        if(x==0)break;
        else
        printf("Case %d: %d",i,x);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
    4 |     for(i=1;i++){
      |                ^
      |                ;
Language: C

#include <stdio.h>
int main(void){
    int i,x;
    for(i=1;i++){
        scanf("%d",&x);
        if(x==0)break;
        printf("Case %d: %d\n",i,x);
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
    4 |     for(i=1;i++){
      |                ^
      |                ;
Language: C

#include<stdio.h>
int main(){
    int i=0,x
    while(1){
        i++;
        scanf("%d",&x);
        if(x=0)break;
        printf("Case %d: %d\n",i,x);
    }return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    4 |     while(1){
      |     ^~~~~
Language: C

#include<stdio.h>
int main(){
    int i=0,x
    while(1){
        i++;
        scanf("%d",&x);
        if(x==0)break;
        printf("Case %d: %d\n",i,x);
    }return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    4 |     while(1){
      |     ^~~~~
Language: C

#include<stdio.h>

int main(void){
        int num,i;
	
	i=1;
	while(1){
		scanf("%d",&num);
		if(x[i]==0){
			break;
		}
                printf("case %d; %d\n",i,num);
        i++;
	}
	
	return (0);
}


Compiler output:
main.c: In function 'main':
main.c:9:20: error: 'x' undeclared (first use in this function)
    9 |                 if(x[i]==0){
      |                    ^
main.c:9:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(int argc, const char * argv[]) {
    int i,x=0;
    for(i=1;;i++){
        scanf("%d",&x);
        if(x==0){
            break;
        }
        printf("Case %d: %d"\n,i,x);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d",&x);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]) {
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d",&x);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |         printf("Case %d: %d"\n,i,x);
      |         ^~~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:29: error: stray '\' in program
    8 |         printf("Case %d: %d"\n,i,x);
      |                             ^
main.c:8:29: error: expected ')' before 'n'
    8 |         printf("Case %d: %d"\n,i,x);
      |               ~             ^~
      |                             )
Language: C

#include <stdio.h>
int main(void){
    
    int i, x;
    
     for(i=0; i<10000; i++){
         scanf("%d", &x);
         if(n ==0)
            break;
     }
     printf("case i: x\n");
     
     return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'n' undeclared (first use in this function)
    8 |          if(n ==0)
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main (){
  int i,x;
  for( i = 0; i < 10000; i++);{
    scanf("%d", &x);
    if ( x == 0 ) break;
    printf("Case %d: %d\n", &i, &x);
  }
  return o;
}



Compiler output:
main.c: In function 'main':
main.c:6:19: error: break statement not within loop or switch
    6 |     if ( x == 0 ) break;
      |                   ^~~~~
main.c:9:10: error: 'o' undeclared (first use in this function)
    9 |   return o;
      |          ^
main.c:9:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main (){
  int i,x;
  for( i = 0; i < 10000; i++);{
    scanf("%d", &x);
    if ( x == 0 ) break;
    printf("Case %d: %d\n", &i, &x);
  }
  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:19: error: break statement not within loop or switch
    6 |     if ( x == 0 ) break;
      |                   ^~~~~
Language: C

#include <stdio.h>

int main() {
        int i = 1;

        while (1) {
                scanf("%d", &x);
                if (x == 0) break;
                printf("Case %d: %d\n", i, x);
                i++;
        }
}


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

include <stdio.h>
int main(void)
{
    
    int i=1,n;
    while(1){
        scanf("%d",&n);
        if(n==0){
            break;
        }else{
        printf("Case %d:%d\n",i,n);
            i=i+1;
        }
    }
  
    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 i,x;
if(i=1; ;i++){
scanf("%d",&x);
if(x==0) break;
printf("Case %d: %d",i,x); 
 }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected ')' before ';' token
    5 | if(i=1; ;i++){
      |   ~   ^
      |       )
main.c:7:10: error: break statement not within loop or switch
    7 | if(x==0) break;
      |          ^~~~~
Language: C

#include <stdio.h>

int main(void) {
int i,x;
if(i=1; ;i++){
scanf("%d",&x);
if(x==0) break;
printf("Case %d: %d\n",i,x); 
 }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected ')' before ';' token
    5 | if(i=1; ;i++){
      |   ~   ^
      |       )
main.c:7:10: error: break statement not within loop or switch
    7 | if(x==0) break;
      |          ^~~~~
Language: C

#include<stdio.h>

int(){
  int i=0, x;

while(1){
   scanf("%d", &x);
   if ( x == 0 ) break;
   i++;
   printf("Case i: x"){
   }
}


Compiler output:
main.c:3:5: error: expected identifier or '(' before ')' token
    3 | int(){
      |     ^
Language: C

#include<stdio.h>

int main(){
  int i=0, x;

while(1){
   scanf("%d", &x);
   if ( x == 0 ) break;
   i++;
   printf("Case i: x"){
   }
}



Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ';' before '{' token
   10 |    printf("Case i: x"){
      |                       ^
      |                       ;
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}



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

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

int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;

}



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

#include<stdio.h>
int main(void){
	while(1){
		scanf("%d",&x);
		/*if(x == 0) break;*/
		if(x!=0){ 
			printf("Case %d: %d\n",i,x);
			i+=1; 
		}
		else{ break; } 
	} 
	return 0;
	
	}


Compiler output:
main.c: In function 'main':
main.c:4:29: error: 'x' undeclared (first use in this function)
    4 |                 scanf("%d",&x);
      |                             ^
main.c:4:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:48: error: 'i' undeclared (first use in this function)
    7 |                         printf("Case %d: %d\n",i,x);
      |                                                ^
Language: C

#include<stdio.h>
int main(void){
	while(1){
		scanf("%d",&x);
		/*if(x == 0) break;*/
		if(x!=0){ 
			printf("Case %d: %d\n",i,x);
			i++1; 
		}
		else{ break; } 
	} 
	return 0;
	
	}


Compiler output:
main.c: In function 'main':
main.c:4:29: error: 'x' undeclared (first use in this function)
    4 |                 scanf("%d",&x);
      |                             ^
main.c:4:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:48: error: 'i' undeclared (first use in this function)
    7 |                         printf("Case %d: %d\n",i,x);
      |                                                ^
main.c:8:28: error: expected ';' before numeric constant
    8 |                         i++1;
      |                            ^
      |                            ;
Language: C

#include <stdio.h>
int main(void){
    int a,i=1;
    while(1){
        scanf("%d",&a);
        if (a == 0){ break
            }
        else{
            printf("Case %d: %d\n",i,a); i++;
                }
        }
        return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before '}' token
    6 |         if (a == 0){ break
      |                           ^
      |                           ;
    7 |             }
      |             ~
Language: C

#include <stdio.h>
int main(void){
    int a, i=1;
    while(1){
        scanf("%d",&a);
        if (a == 0){ break
            }
        else{
            printf("Case %d: %d\n",i,a); i++;
                }
        }
        return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before '}' token
    6 |         if (a == 0){ break
      |                           ^
      |                           ;
    7 |             }
      |             ~
Language: C

#include <stdio.h>
int main(void){
    int a, i=1;
    while(1){
        scanf("%d",&a);
        if (a == 0){ break
        }
        else{
            printf("Case %d: %d\n",i,a); i++;
                }
        }
        return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before '}' token
    6 |         if (a == 0){ break
      |                           ^
      |                           ;
    7 |         }
      |         ~
Language: C

#include <stdio.h>
int main(void){
    int a, i=1;
    while(1){
        scanf("%d",&a);
        if (a == 0){ break
        }
        else{
            printf("Case %d: %d\n",i,a); i++;
        }
    }
        return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before '}' token
    6 |         if (a == 0){ break
      |                           ^
      |                           ;
    7 |         }
      |         ~
Language: C

#include <stdio.h>
int main(void){
    int a,i=1;
    while(1){
        scanf("%d",&a);
        if (a == 0){ break
        }
        else{
            printf("Case %d: %d\n",i,a); i++;
        }
    }
        return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before '}' token
    6 |         if (a == 0){ break
      |                           ^
      |                           ;
    7 |         }
      |         ~
Language: C

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

int main()
{
	int i, x;
	char buf[100];

	for (i = 1; ; i++) {
		gets(buf);
		x = atoi(buf);
		if (x == 0) break;
		printf("Case %d: %d\n", i, x);
	}
	return 0;
}



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

#include <stdio.h>

int main()
{
	int i, x;
	char buf[100];

	for (i = 1; ; i++) {
		gets(buf);
		x = atoi(buf);
		if (x == 0) break;
		printf("Case %d: %d\n", i, x);
	}
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |                 gets(buf);
      |                 ^~~~
      |                 fgets
main.c:10:21: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
   10 |                 x = atoi(buf);
      |                     ^~~~
Language: C



#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}
 




 



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



#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}
 




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

#include <stdio.h>
int main (void){
  int x[10000];
  for(int 1 = 0 ; i<10000 ; i++){
    scanf("%d\n",&x);
    if(x[i] == 0){
      return 0;
    }else{
      printf("Case %d: %d",i,x);
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected identifier or '(' before numeric constant
    4 |   for(int 1 = 0 ; i<10000 ; i++){
      |           ^
main.c:4:19: error: 'i' undeclared (first use in this function)
    4 |   for(int 1 = 0 ; i<10000 ; i++){
      |                   ^
main.c:4:19: 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, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}

Compile Error Logs:

ステータス
Judge: 1/1	C	CPU: 00:00 sec	Memory: 524 KB	Length: 203 B	2017-07-27 12:48
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1	: Accepted	00:00	524	48537	157429	judge_data

< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )



Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |         gets(buf);
      |         ^~~~
      |         fgets
main.c: At top level:
main.c:18:1: error: unknown type name 'Compile'
   18 | Compile Error Logs:
      | ^~~~~~~
main.c:18:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   18 | Compile Error Logs:
      |               ^~~~
main.c:23:6: error: stray '#' in program
   23 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
main.c:24:6: error: stray '#' in program
   24 | Case #1 : Accepted      00:00   524     48537   157429  judge_data
      |      ^
main.c:28:13: error: stray '#' in program
   28 | Judge Input #  ( | )            Judge Output #  ( | )
      |             ^
main.c:28:46: error: stray '#' in program
   28 | Judge Input #  ( | )            Judge Output #  ( | )
      |                                              ^
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}




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

#include <stdio.h>
int main(void){
    
    
   
   int i,x;
   
   for(i=1;;i++){
   scanf("%d",&x);
   if(x==0)
   break;
   
   printf("Case %d:%d\n",i,x);
   
   
   
   
    }
   


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

#include<stdio.h>
main(){
 int i,n;
 for(i=1;;i++){　
　scanf("%d",&n);
 　if(n==0)break;
　 printf("Case %d: %d\n",i,n);
 }
 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:16: error: stray '\343' in program
    4 |  for(i=1;;i++){<U+3000>
      |                ^~~~~~~~
main.c:5:1: error: stray '\343' in program
    5 | <U+3000>scanf("%d",&n);
      | ^~~~~~~~
main.c:6:2: error: stray '\343' in program
    6 |  <U+3000>if(n==0)break;
      |  ^~~~~~~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000> printf("Case %d: %d\n",i,n);
      | ^~~~~~~~
Language: C

#include<stdio.h>

int main(){
    int input,i = 1;
    while(1){
        scanf("%d", &input);
        if(input == 0) break;
        pinrtf("Case %d: %d\n", i, input);

        i++;
    }


    return 0;
}


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

#include<stdio.h>

int main(void)
{
  int i, x;

  while(scanf("%d", &x) = EOF)
  {
    i++;
    printf("Case %d: %d\n", i, x);
  }

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:25: error: lvalue required as left operand of assignment
    7 |   while(scanf("%d", &x) = EOF)
      |                         ^
Language: C

#include<stdio.h>

int main(void)
{
  int i, x;

  while(scanf("%d", &x) = EOF)
  {
    if(x != 0)
    {
      i++;
      printf("Case %d: %d\n", i, x);
    }
    else
    {
      break;
    }
  }

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:25: error: lvalue required as left operand of assignment
    7 |   while(scanf("%d", &x) = EOF)
      |                         ^
Language: C

include <stdio.h>
int main(){
  int x, y = 1, z;
  while(1){
    scanf("%d", &x);
    if ( x == 0 ) break;
    printf("Case%d:%d\n", y, x);
    y++;
  }
  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 n[10000];
int i=0;
count++;

while(1){
scanf("%d",&n[i]);
if(n[i] == 0) break;
i++;
count++;
}

for(i=0;i<count;i++){
printf("Case %d: %d\n",i,n[i]);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: 'count' undeclared (first use in this function)
    5 | count++;
      | ^~~~~
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int n[10000];
int i=0;
count=0;

while(1){
scanf("%d",&n[i]);
if(n[i] == 0) break;
i++;
count++;
}

for(i=0;i<count;i++){
printf("Case %d: %d\n",i,n[i]);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: 'count' undeclared (first use in this function)
    5 | count=0;
      | ^~~~~
main.c:5:1: 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;
int n=100;
for(;n>0;){
i=i+1;
scanf("%d",&n);
//if(n=!0){
printf("Case %d: %d\n",i,n);}
}
}


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

#include <stdio.h>

int main () {
    int x, i = 1;
    
    while(1){
        scanf("%d",&x);
        
        printf("Case %d: %d\n",i ,x);
        
        if(x==0) break;
        
        i++
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:12: error: expected ';' before '}' token
   13 |         i++
      |            ^
      |            ;
   14 |     }
      |     ~
Language: C

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

		scanf("%d", &i);

		if (i = 0) {
			break;
		}

		printf("%d", i);


    return 0;
}


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

#include <stdio.h>
#include <stdlib.h>
 
int main(){
    int i, x;
    char buf[100];
    for(i=1; ;i++){
        gets(buf);
        x=atoi(buf);
        if(x==0)break;
        printf("Case %d: %d\n",i,x);
    }
return 0;
}


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

#include<stdio.h>

int main(){

 int i,x;
 
 scanf("%d",&x);

 for(i=0,i<6,i++)
 if(x=0)continue;

 printf("Case %d: %d",i,x);

 return 0}
 
 


Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected ';' before ')' token
    9 |  for(i=0,i<6,i++)
      |                 ^
      |                 ;
main.c:9:17: error: expected expression before ')' token
main.c:14:10: error: expected ';' before '}' token
   14 |  return 0}
      |          ^
      |          ;
Language: C

#include<stdio.h>

int main(){

 int i,x;
 
 scanf("%d",&x);

 for(i=0;;i++)
 if(x=0)continue;

 printf("Case %d: %d",i,x);

 return 0}
 
 


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

#include<stdio.h>

int main(){

 int i,x;
 
 scanf("%d",&x);

 for(i=1;;i++){
 if(x=0)continue;

 printf("Case %d: %d",i,x);
}

 return 0}
 
 


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

#include<stdio.h>

int main(){

 int i,x;
 
 scanf("%d",&x);

 for(i=1;;i++){
 if(x==0)break;

 printf("Case %d: %d",i,x);
}

 return 0}
 
 


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

using System;
using System.Collections.Generic;

class Program {
  static void Main(string[] args) {
    int kase = 1;
    while(true) {
      int x = int.Parse(Console.ReadLine());
      if (x == 0) break;
      Console.WriteLine("Case {0}: {1}", kase, x);
      kase++;
    }
  }
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:2:1: error: unknown type name 'using'
    2 | using System.Collections.Generic;
      | ^~~~~
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | using System.Collections.Generic;
      |             ^
main.c:4:1: error: unknown type name 'class'
    4 | class Program {
      | ^~~~~
main.c:4:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | class Program {
      |               ^
Language: C

#include <stdio.h>

int main(){

     int x;
     int i=1; 
   while(1){
     
     scanf("%d" ,&x)
    if ( x == 0 ) break;
     printf("Case %d: %d", i,x);
    i++;
      
    }
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before 'if'
    9 |      scanf("%d" ,&x)
      |                     ^
      |                     ;
   10 |     if ( x == 0 ) break;
      |     ~~
Language: C

#include <stdio.h>

int main(){

     int x;
     int i=1; 
   while(100){
     
     scanf("%d" ,&x)
    if ( x == 0 ) break;
     printf("Case %d: %d", i,x);
    i++;
      
    }
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before 'if'
    9 |      scanf("%d" ,&x)
      |                     ^
      |                     ;
   10 |     if ( x == 0 ) break;
      |     ~~
Language: C

#include <stdio.h>

int main(){

     int x;
     int i=1; 
   while(100){
     
     scanf("%d" ,&x)
    if ( x == 0 ) break;
     else
     printf("Case %d: %d", i,x);
    i++;
      
    }
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before 'if'
    9 |      scanf("%d" ,&x)
      |                     ^
      |                     ;
   10 |     if ( x == 0 ) break;
      |     ~~               
main.c:11:6: error: 'else' without a previous 'if'
   11 |      else
      |      ^~~~
Language: C

#include <stdio.h>
int main(void){
int a[256];
int b,c;
c = 0;
while(1){
scanf("%d",&b);
if(b == 0){
break;
}
else{
a[c] = b;
c++
}
}
b = c
for(c=0;c < b;c){
printf("Case %d: %d\n",c+1,a[c]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: expected ';' before '}' token
   13 | c++
      |    ^
      |    ;
   14 | }
      | ~   
main.c:16:6: error: expected ';' before 'for'
   16 | b = c
      |      ^
      |      ;
   17 | for(c=0;c < b;c){
      | ~~~
Language: C

#include <stdio.h>

int main(void){
       
       for(i=1; ;i++){
       scanf("%d",a);
          if (a == 0){
            break;
          }else{
         printf("Case %d: %d\n"i,a);
          }
          }
         return 0;
          }
        

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'i' undeclared (first use in this function)
    5 |        for(i=1; ;i++){
      |            ^
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |        scanf("%d",a);
      |                   ^
main.c:10:32: error: expected ')' before 'i'
   10 |          printf("Case %d: %d\n"i,a);
      |                ~               ^
      |                                )
Language: C

#include <stdio.h>

int main(void){
       int a,i=1;
       while(1){
       scanf("%d",a);
          if (a == 0){
            break;
          }else{
         printf("Case %d: %d\n" ,i,a);
          i++;
          }
         return 0;
          }
        

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

#include <stdio.h>

int main(void){
       int a,i=1;
       while(1){
       scanf("%d",&a);
          if (a == 0){
            break;
          }else{
         printf("Case %d: %d\n" ,i,a);
          i++;
          }
         return 0;
          }
        

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

include <stdio.h>

main() {
  int i, x;
  for (i = 1; ;i++) {
    scanf("%d", &x); 
    if ( x == 0 ) break;
    printf("Case %d: %d\n", i, x);
  }

  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=1,x;
  while(1){
    scanf("%d",&x);
    if(x==0) break;
    printf("Case %d: %d\n",a,x);
    a++;
  }
  return 0;
}

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