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

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

Compiler output:
main.c: In function 'main':
main.c:10:12: error: 'x' undeclared (first use in this function)
   10 |     }while(x!=0);
      |            ^
main.c:10:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:12: error: 'x' undeclared (first use in this function)
   10 |     }while(x!=0);
      |            ^
main.c:10:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected expression before '!=' token
   10 |     }while(!=0);
      |            ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'true' undeclared (first use in this function)
   11 |         }while(true)
      |                ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(void){
main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
   11 |         }while(true)
      |                ^~~~
main.c:11:21: error: expected ';' before '}' token
   11 |         }while(true)
      |                     ^
      |                     ;
   12 | }
      | ~                    
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected ';' before 'return'
   11 |         }while(1)
      |                  ^
      |                  ;
   12 | return 0;
      | ~~~~~~
Language: C

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

  int i;

  for ( i = 0; i < 1000; i++){
    printf("Hello World\n");
  }
  
  return 0;

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

  int i,in;

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

  return 0;

}

Compiler output:
main.c:14:5: error: redefinition of 'main'
   14 | int main(){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main(){
      |     ^~~~
Language: C

#include<stdio.h>


int main(void){

	int a,i=0,x[10001];
	
	while(1){
		i++;
		scanf("%d",&x[i]);
		if(x[i]==0){
			for(a=1;a<=i;a++){
				if(x[a]==0){
					return 0;
				}
				printf("%d\n",x[a]);
			}
		}
	}

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

#include<stdio.h>


int main(void){

	int a,i=0,x[1000000];
	
	while(1){
		i++;
		scanf("%d",&x[i]);
		if(x[i]==0){
			for(a=1;a<=i;a++){
				if(x[a]==0){
					return 0;
				}
				printf("%d\n",x[a]);
			}
		}
	}

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

#include<stdio.h>


int main(void){

	int a,i=0,x[10002];
	
	while(1){
		i++;
		scanf("%d",&x[i]);
		if(x[i]==0){
			for(a=1;a<=i;a++){
				if(x[a]==0){
					return 0;
				}
				printf("%d\n",x[a]);
			}
		}
	}

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ';' before 'scanf'
    6 |     i += 1
      |           ^
      |           ;
    7 |     scanf("%d", &x);
      |     ~~~~~
Language: C

#include<stdio.h>


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

Compiler output:
main.c: In function 'main':
main.c:9:53: error: expected ';' before '}' token
    9 |                 if(i == 10000){printf("Too Large\n")}
      |                                                     ^
      |                                                     ;
Language: C


#include<stdio.h>

int main() {
        int num;
        int i = 0;
 
        scanf("%d", &num);

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

        return 0;

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

#include <stdio.h>

void out(int x[],int i);

int main(void){
    int i=0;
    int num=0;
    int x[10000];

    
    while(i<10000){
        scanf("%d",&num);
        if(num<1 || num>10000){
            out(x,i);
            exit(1);
        }else{
            x[i]=num;
            i++;
        }
    }
    
    return 0;
}

void out(int x[],int i){
    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:15:13: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   15 |             exit(1);
      |             ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:15:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   15 |             exit(1);
      |             ^~~~
main.c:15:13: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

void out(int x[],int i);

int main(void){
    int i=0;
    int num=0;
    int x[10000];

    
    while(i<10000){
        scanf("%d",&num);
        if(num<1 || num>10000){
            out(x,i);
            exit(1);
        }else{
            x[i]=num;
            i++;
        }
    }
    
    return 0;
}

void out(int x[],int i){
    for (int j=0; j<i; j++) {
        printf("Case %d: %d\n",j+1,x[j]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:13: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   15 |             exit(1);
      |             ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:15:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   15 |             exit(1);
      |             ^~~~
main.c:15:13: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c: In function 'out':
main.c:29:12: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   29 |     return 0;
      |            ^
main.c:25:6: note: declared here
   25 | void out(int x[],int i){
      |      ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: 'true' undeclared (first use in this function)
    5 |         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:5:16: note: each undeclared identifier is reported only once for each function it appears in
    5 |         while (true) {
      |                ^~~~
Language: C

#include <stdio.h>

int main(void){

int z i=1;

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i=1;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
Language: C

#include<stdio.h>

int main(void){

int z i=1;

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i=1;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
main.c:9:9: error: expected ')' before 'break'
    9 | if(z ==0 break;
      |   ~     ^~~~~~
      |         )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int z i=1;

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i=1;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
main.c:9:9: error: expected ')' before 'break'
    9 | if(z ==0 break;
      |   ~     ^~~~~~
      |         )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int z i;

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
main.c:9:9: error: expected ')' before 'break'
    9 | if(z ==0 break;
      |   ~     ^~~~~~
      |         )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int z i;

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

}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
main.c:9:9: error: expected ')' before 'break'
    9 | if(z ==0 break;
      |   ~     ^~~~~~
      |         )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int z i;

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

}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
main.c:9:9: error: expected ')' before 'break'
    9 | if(z ==0 break;
      |   ~     ^~~~~~
      |         )
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int z i;

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

}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    5 | int z i;
      |       ^
main.c:5:7: error: 'i' undeclared (first use in this function)
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'z' undeclared (first use in this function)
    8 | scanf("%d", &z);
      |              ^
Language: C

#include<stdio.h>

int main() {
   
   int x=1,i=0;
  
   for (i=0: i<10000: i++) {

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

      if (x==0) {
         break;
      }

      printf("case%d:%d\n",i,x);
   }
  
   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before ':' token
    7 |    for (i=0: i<10000: i++) {
      |            ^
      |            ;
main.c:7:26: error: expected expression before ')' token
    7 |    for (i=0: i<10000: i++) {
      |                          ^
Language: C

#include<stdio.h>

int main() {
   
   int x=1,i=0;
  
   for (i=0: i<10000: i++) {

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

      if (x==0) {
         break
      }

      printf("case%d:%d\n",i,x);
   }
  
   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before ':' token
    7 |    for (i=0: i<10000: i++) {
      |            ^
      |            ;
main.c:7:26: error: expected expression before ')' token
    7 |    for (i=0: i<10000: i++) {
      |                          ^
main.c:12:15: error: expected ';' before '}' token
   12 |          break
      |               ^
      |               ;
   13 |       }
      |       ~
Language: C

#include<stdio.h>

int main() {
   
   int x,i;
  
   for (i=1: i<10000: i++) {

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

      if (x==0) {
         break;
      }

      printf("case%d:%d\n",i,x);
   }
  
   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before ':' token
    7 |    for (i=1: i<10000: i++) {
      |            ^
      |            ;
main.c:7:26: error: expected expression before ')' token
    7 |    for (i=1: i<10000: i++) {
      |                          ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:41: error: 'd' undeclared (first use in this function)
    9 |                 printf("Case %d : %d",i,d);
      |                                         ^
main.c:9:41: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:21: error: subscripted value is neither array nor pointer nor vector
    8 |                 if(x[i]==0) break;
      |                     ^
Language: C

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

Compiler output:
main.c:2:2: error: invalid preprocessing directive #deine; did you mean #define?
    2 | #deine I 10000
      |  ^~~~~
      |  define
main.c: In function 'main':
main.c:5:17: error: 'I' undeclared (first use in this function)
    5 |     int i, j, x[I];
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C



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

 

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected '(' before '{' token
    9 |     while {
      |           ^
      |           (
Language: C

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:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main() {
      | ^~~~
main.c: In function 'main':
main.c:3:11: error: 'I' undeclared (first use in this function)
    3 | for (i=1;;I++) {
      |           ^
main.c:3:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:2: 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 | main() {
main.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  scanf("%d",&x);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |  printf (Case %d: %d\n",i,x);
      |  ^~~~~~
main.c:6:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:10: error: 'Case' undeclared (first use in this function)
    6 |  printf (Case %d: %d\n",i,x);
      |          ^~~~
main.c:6:16: error: 'd' undeclared (first use in this function)
    6 |  printf (Case %d: %d\n",i,x);
      |                ^
main.c:6:17: error: expected ')' before ':' token
    6 |  printf (Case %d: %d\n",i,x);
      |         ~       ^
      |                 )
main.c:6:21: error: stray '\' in program
    6 |  printf (Case %d: %d\n",i,x);
      |                     ^
main.c:6:23: warning: missing terminating " character
    6 |  printf (Case %d: %d\n",i,x);
      |                       ^
main.c:6:23: error: missing terminating " character
    6 |  printf (Case %d: %d\n",i,x);
      |                       ^~~~~~~
main.c:6:23: error: expected ';' before '}' token
    6 |  printf (Case %d: %d\n",i,x);
      |                       ^
      |                       ;
    7 | }
      | ~
Language: C

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:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main() {
      | ^~~~
main.c: In function 'main':
main.c:4:2: 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 | main() {
main.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  scanf("%d",&x);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |  printf (Case %d: %d\n",i,x);
      |  ^~~~~~
main.c:6:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:10: error: 'Case' undeclared (first use in this function)
    6 |  printf (Case %d: %d\n",i,x);
      |          ^~~~
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 'd' undeclared (first use in this function)
    6 |  printf (Case %d: %d\n",i,x);
      |                ^
main.c:6:17: error: expected ')' before ':' token
    6 |  printf (Case %d: %d\n",i,x);
      |         ~       ^
      |                 )
main.c:6:21: error: stray '\' in program
    6 |  printf (Case %d: %d\n",i,x);
      |                     ^
main.c:6:23: warning: missing terminating " character
    6 |  printf (Case %d: %d\n",i,x);
      |                       ^
main.c:6:23: error: missing terminating " character
    6 |  printf (Case %d: %d\n",i,x);
      |                       ^~~~~~~
main.c:6:23: error: expected ';' before '}' token
    6 |  printf (Case %d: %d\n",i,x);
      |                       ^
      |                       ;
    7 | }
      | ~
Language: C

#include <stdio.h>

int main()
{
  int x;
  int i;

  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:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main(){
int i,j;
int x[10000]
for(i=0; i<10000; i++){
  scanf("%d", &x[i]);

if(x[i]==0)
  break;
}

for(j=0; j<i; j++){
 printf("case%d %d\n", j+1, x[j]);
}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    5 | for(i=0; i<10000; i++){
      | ^~~
main.c:6:16: error: 'x' undeclared (first use in this function)
    6 |   scanf("%d", &x[i]);
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d",&n)
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: expected ';' before 'printf'
    7 |         scanf("%d",&n)
      |                       ^
      |                       ;
    8 |         printf("Case %d: %d\n",i,n);
      |         ~~~~~~         
main.c:10:15: error: break statement not within loop or switch
   10 |     if (n==0) break;
      |               ^~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d",&n);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:15: error: break statement not within loop or switch
   10 |     if (n==0) break;
      |               ^~~~~
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

int main(void)
{

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

 while(x != 0){
  print("Case : %d\n", x);
  scanf("%d", &x);
 }
   return 0;
}  

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:6: error: assignment to expression with array type
    5 | for(i=0;i <= 10000;i++)
      |      ^
main.c:5:11: warning: comparison between pointer and integer
    5 | for(i=0;i <= 10000;i++)
      |           ^~
main.c:5:21: error: lvalue required as increment operand
    5 | for(i=0;i <= 10000;i++)
      |                     ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: assignment to expression with array type
    5 | for (i=0;i <= 10000;i++){
      |       ^
main.c:5:12: warning: comparison between pointer and integer
    5 | for (i=0;i <= 10000;i++){
      |            ^~
main.c:5:22: error: lvalue required as increment operand
    5 | for (i=0;i <= 10000;i++){
      |                      ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: assignment to expression with array type
    5 | for (i=0;i <= 9999;i++){
      |       ^
main.c:5:12: warning: comparison between pointer and integer
    5 | for (i=0;i <= 9999;i++){
      |            ^~
main.c:5:21: error: lvalue required as increment operand
    5 | for (i=0;i <= 9999;i++){
      |                     ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected expression before '%' token
    6 | scanf(%d,x[i]);
      |       ^
Language: C

#include<stdio.h>
int main (void){
  int x,i=1;
   
  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:7:10: error: expected expression before '%' token
    7 |    scanf(%d,&x);
      |          ^
main.c:11:7: error: expected ';' before '}' token
   11 |    i++
      |       ^
      |       ;
   12 |    }
      |    ~   
main.c:14:9: error: expected ';' before ':' token
   14 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>
main (){
  int x,i=1;
   
  while(1)
  {
   scanf(%d,&x);
   if(x=0)
     break;
   printf("Case %d: %d\n",i,x);
   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:7:10: error: expected expression before '%' token
    7 |    scanf(%d,&x);
      |          ^
main.c:11:7: error: expected ';' before '}' token
   11 |    i++
      |       ^
      |       ;
   12 |    }
      |    ~   
main.c:14:9: error: expected ';' before ':' token
   14 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>
main (){
  int x,i=1;
   
  while(1)
  {
   scanf(%d,&x);
   if(x=0)
     break;
   printf("Case %d: %d\n",i,x);
   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:7:10: error: expected expression before '%' token
    7 |    scanf(%d,&x);
      |          ^
main.c:14:9: error: expected ';' before ':' token
   14 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>
main (){
  int x,i=1;
   
  while(1)
  {
   scanf(%d,&x);
   if(x==0)
     break;
   printf("Case %d: %d\n",i,x);
   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:7:10: error: expected expression before '%' token
    7 |    scanf(%d,&x);
      |          ^
Language: C

#include<stdio.h>
main (){
  int x,i=1;
   
  while(1)
  {
   scanf(%d",&x);
   if(x==0)
     break;
   printf("Case %d: %d\n",i,x);
   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:7:10: error: expected expression before '%' token
    7 |    scanf(%d",&x);
      |          ^
main.c:7:12: warning: missing terminating " character
    7 |    scanf(%d",&x);
      |            ^
main.c:7:12: error: missing terminating " character
    7 |    scanf(%d",&x);
      |            ^~~~~~
main.c:11:8: error: expected ';' before '}' token
   11 |    i++;
      |        ^
      |        ;
   12 |    }
      |    ~
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: 'i' undeclared (first use in this function)
    7 |   for (i = 0; i <10000; i++) {
      |        ^
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   10 |       exit(1);
      |       ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:10:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   10 |       exit(1);
      |       ^~~~
main.c:10:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: 'i' undeclared (first use in this function)
    7 |   for (i = 1; i <= 10000; i++) {
      |        ^
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   10 |       exit(1);
      |       ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:10:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   10 |       exit(1);
      |       ^~~~
main.c:10:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

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

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

main
{
 int i = 0;
 int x = 1;

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

Compiler output:
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | {
      | ^
Language: C

main
{
 int i = 0;
 int x ;

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

Compiler output:
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | {
      | ^
Language: C

#include <stdio.h>

int main(){
    int x;
    int i=0;
    while(1){
        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:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C

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

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

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

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

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

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

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:5: 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 | main(){
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d",&x);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |     printf("Case %d: %d",i,x);
      |     ^~~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: error: expected declaration or statement at end of input
    6 | }
      | ^
Language: C

#include<stdio.h>

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

report 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:23: error: expected ')' before 'i'
    9 | printf("Case %d: %d\n"i,x);
      |       ~               ^
      |                       )
main.c:13:1: error: 'report' undeclared (first use in this function)
   13 | report 0;
      | ^~~~~~
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:7: error: expected ';' before numeric constant
   13 | report 0;
      |       ^~
      |       ;
Language: C

#include<stdio.h>

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

report 0;
}

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

#include<stdio.h>
int main()
{
  int x,i=1;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'berak' undeclared (first use in this function)
    8 |     if(x=0) berak;
      |             ^~~~~
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 x,i=1;

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

  return 0;
}

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

#include <stdio.h>

int main(void){
    
    int x;
    int a[10000];
    
    for(int i=0;i<10000;i++){
        scanf("%d",&x);
        if(x<1 || 10000<x) return -1;
        if(x==0){
            break;
        }
        a[i] = x;
    }

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

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

#include<stdio.h>

int main(void){

	int n[10000]=0;
	int i,j;
	while(n[i-1]!=0){
		scanf("%d",&n[i-1]);
	}
	for(j=1;j<=i;j++){
		printf("Case %d: %d\n",j,n[j]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: invalid initializer
    5 |         int n[10000]=0;
      |                      ^
Language: C

#include<stdio.h>

int main(void){

	int n[10000];
	n[0]=1
	int i,j;
	while(n[i-1]!=0){
		scanf("%d",&n[i-1]);
	}
	for(j=1;j<=i;j++){
		printf("Case %d: %d\n",j,n[j]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before 'int'
    6 |         n[0]=1
      |               ^
      |               ;
    7 |         int i,j;
      |         ~~~    
main.c:8:17: error: 'i' undeclared (first use in this function)
    8 |         while(n[i-1]!=0){
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:13: error: 'j' undeclared (first use in this function)
   11 |         for(j=1;j<=i;j++){
      |             ^
Language: C

#include<stdio.h>

int main(void){

	int n[10000];
	n[0]=1
	int i=1,j;
	while(n[i-1]!=0){
		scanf("%d",&n[i-1]);
	}
	for(j=1;j<=i;j++){
		printf("Case %d: %d\n",j,n[j]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before 'int'
    6 |         n[0]=1
      |               ^
      |               ;
    7 |         int i=1,j;
      |         ~~~    
main.c:8:17: error: 'i' undeclared (first use in this function)
    8 |         while(n[i-1]!=0){
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:13: error: 'j' undeclared (first use in this function)
   11 |         for(j=1;j<=i;j++){
      |             ^
Language: C

#include<stdio.h>

int main(void){

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before 'int'
    6 |         n[0]=1
      |               ^
      |               ;
    7 |         int i=1,j;
      |         ~~~    
main.c:8:17: error: 'i' undeclared (first use in this function)
    8 |         while(n[i-1]!=0){
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: 'j' undeclared (first use in this function)
   14 |         for(j=1;j<=i;j++){
      |             ^
Language: C

#include<stdio.h>

int main(void){

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before 'int'
    6 |         n[0]=1
      |               ^
      |               ;
    7 |         int i=1,j;
      |         ~~~    
main.c:8:17: error: 'i' undeclared (first use in this function)
    8 |         while(n[i-1]!=0){
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: 'j' undeclared (first use in this function)
   14 |         for(j=1;j<=i;j++){
      |             ^
Language: C

#include <stdio.h>
int main()
{
  int i,x:
  
  for(i = 1; i > 0; 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:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |   int i,x:
      |          ^
main.c:6:24: error: expected ';' before ')' token
    6 |   for(i = 1; i > 0; i++)
      |                        ^
      |                        ;
main.c:6:24: error: expected statement before ')' token
main.c:8:17: error: 'x' undeclared (first use in this function)
    8 |     scanf("%d",&x);
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: break statement not within loop or switch
   10 |       break;
      |       ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected expression before 'return'
    8 |                 return 0;
      |                 ^~~~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
Language: C

#include <stdio.h>
main(){
??????
????int x;
  int i = 1;
??????
????while(1)
  {
	i++;
	scanf("%d",&x);
	if(x == 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:3:1: error: expected expression before '?' token
    3 | ??????
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ??????
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include <stdio.h>
main(){
??????
????int x;
  int i = 1;
??????
????while(1)
  {
	i++;
	scanf("%d",&x);
	if( x == 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:3:1: error: expected expression before '?' token
    3 | ??????
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ??????
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: 'true' undeclared (first use in this function)
    6 |   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 | main()
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
    6 |   while(true){
      |         ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: 'true' undeclared (first use in this function)
    6 |   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 | main()
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
    6 |   while(true){
      |         ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: 'true' undeclared (first use in this function)
    6 |   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 | main()
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
    6 |   while(true)
      |         ^~~~