criyle/codenet-compile-errors huggingface dataset:
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:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:19: error: 'num' undeclared (first use in this function)
    8 |      scanf("%d", &num);
      |                   ^~~
main.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: expected ';' before ':' token
    6 |   for(i=1:!(x=0):i++){
      |          ^
      |          ;
main.c:6:21: error: expected expression before ')' token
    6 |   for(i=1:!(x=0):i++){
      |                     ^
Language: C

#include <stdio.h>

int main (void){

 int x=99999, i=1;

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

 return 0;

}

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

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

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

#include <stdio.h>

int main(void) {

    int a;
    int i;

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

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

#include<stdio.h>
#define  _CRT_SECURE_NO_WARNINGS

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ')' before ';' token
    7 |         if(i=1;1;i++) {
      |           ~   ^
      |               )
Language: C

#include<stdio.h>
#define  _CRT_SECURE_NO_WARNINGS

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ')' before ';' token
    7 |         if(i=1;1;i++) {
      |           ~   ^
      |               )
Language: C

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

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

#include<stdio.h>

int main(void){

	int x = 1;

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

	return 0;
}

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

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

while(1){
if(i>=10000)break;
scanf("%d",&date[i]);
if(date[i]==0)break;
i++;
}
i=0;
while(1){
if(date[i]==0)break;
if(date[i]!=0){

printf("Case %d:%d\n",c,date[i]);
c++;
i++;


}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
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:10:20: error: invalid operands to binary & (have 'char *' and 'int')
   10 |         scanf("%d" &x);
      |               ~~~~ ^
      |               |
      |               char *
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected ')' before '!' token
    7 |     while (a! = 0){
      |           ~ ^
      |             )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected ';' before 'return'
    6 | printf("Case%d: %d",i,x)
      |                         ^
      |                         ;
    7 | return 0;
      | ~~~~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ';' before 'printf'
    7 | scanf("%d",&x)
      |               ^
      |               ;
    8 | printf("Case %d: %d",i,x);
      | ~~~~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:20: error: expected identifier or '(' before 'case'
    4 |         int i=1,x, case[10000];
      |                    ^~~~
Language: C

#include<stdio.h>

int main()
{
inf x,i=1;

while(i<=10000)
{

scanf("%d",&x);

if(1<=x&&x<=10000)
{
printf("Case %d: %d\n",i,x);
i++;
}

}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'inf'; did you mean 'int'?
    5 | inf x,i=1;
      | ^~~
      | int
Language: C

#include<stdio,h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
    char tmp[10001];
    int num[10001];
    int cnt=0;
    while(strcmp(tmp,'0')){
    //0?????\?????????????????§??\???????¶???????    
        fgets(tmp,sizeof(tmp),stdin);
        num[cnt]=atoi(tmp);
        cnt++;
    }
    for (int i=0;i<cnt-1;i++)printf("Case %d: %d\n",i+1,num[i]);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |     while(strcmp(tmp,'0')){
      |                      ^~~
      |                      |
      |                      int
In file included from main.c:2:
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
    int num;
    int cnt=0;
    while(1){
    //0?????\?????????????????§??\???????¶???????    
        scanf("%d",&num);
        if (num==0)break;
        printf("Case %d: %d",i+1,num[i]);
        cnt++;
    }
return 0;
}

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'i'
    5 | scanf("%d",&x)
      |               ^
      |               ;
    6 | i==1;
      | ~              
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'i'
    5 | scanf("%d",&x)
      |               ^
      |               ;
    6 | i=1;
      | ~              
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

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

  for(int i=1; i<10000; i++) {
    scanf("%d",&x[i]);
    if(x[i]==0){ 
break;
    }
    count++;
  }

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

  return 0;
}

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

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

  for(i=1; i<10000; i++) {
    scanf("%d",&x[i]);
    if(x[i]==0){ break;
    }
    count++;
  }

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

  return 0;
}

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

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

  for(I=1; i<=10000; i++) {
    scanf("%d",&x[i]);
    if(x[i]==0){ break;
    }
    count++;
  }

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

  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:16: error: expected identifier or '(' before ';' token
    3 |     int a,op,b,;
      |                ^
Language: C

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

int x;
int i=1;

scanf("%d",&x);

while(1<=x<=10000){
        while(1<=i){
            printf("Case %d: %d",i,x)
               i++;
                }}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         print("Case %d: %d\n",c,num);
      |         ^~~~~
      |         printf
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: 'true' undeclared (first use in this function)
    4 |  while(true){
      |        ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | int main(void){
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
    4 |  while(true){
      |        ^~~~
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d",&x);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d",&x);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("Case %d: %d",i,x);
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:2: error: 'returen' undeclared (first use in this function)
   11 |  returen 0;
      |  ^~~~~~~
main.c:11:9: error: expected ';' before numeric constant
   11 |  returen 0;
      |         ^~
      |         ;
Language: C

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

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

#include <stdio.h>
int main()
{
int i;
i = 0;
while (i <= 10000)
{
printf("%d\n",i);
break; i = 0
}
return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected ';' before '}' token
    9 | break; i = 0
      |             ^
      |             ;
   10 | }
      | ~
Language: C

#include <stdio.h>
int main()
{
int x;
x = 0;
while (x <= 10000)
{
printf("%d\n",x);
break; x = 0
}
return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected ';' before '}' token
    9 | break; x = 0
      |             ^
      |             ;
   10 | }
      | ~
Language: C

#include <stdio.h>
int main()
{
int x;
x = 0;
while (x <= 10000)
{
printf("%d\n",x){
if (x = 0)
break; 
}
return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before '{' token
    8 | printf("%d\n",x){
      |                 ^
      |                 ;
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

include <stdio.h>
int main()
{
int x;
scanf("%d",&x);
x = 0;
while (x <= 10000)
{
printf("%5d\n", x){
if (x = 0)
break;
}
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 x;
scanf("%5d",&x);
x = 0;
while (x <= 10000)
{
printf("%5d\n", x){
if (x = 0)
break;
}
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 x;
scanf("%5d",&x);
x = 1;
while (x <= 10000)
{
printf("%5d\n", x){
if (x = 0)
break;
}
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 x;
scanf("%5d",&x);
x = 1;
while (x <= 10000)
{
printf("%5d\n",x);
if (x = 0)
break;
}
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 x;
scanf("%5d",&x);
x = 1;
while (x <= 10000)
{
printf("%5d\n",x){
if (x = 0)
break;}
}
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 x;
scanf("%5d",&x);
x = 1;
while (x <= 10000)
{
printf("%5d\n",x)
{
if (x = 0)
break}
}
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 x;
scanf("%5",&x);
x = 1;
while (x <= 10000)
{
printf("%d\n",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 x;
scanf("%5",&x);
x = 1;
while (x <= 10000)
{
printf("%d\n",x);

if (x = 0)
break;
}
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 x;
x = 1;
scanf("%d",&x);

while (x <= 10000);
{
printf("%d\n",x);{
if (x = 0)
break}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:1: error: break statement not within loop or switch
   12 | break}
      | ^~~~~
main.c:12:6: error: expected ';' before '}' token
   12 | break}
      |      ^
      |      ;
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include <stdio.h>
int main()
{
int x;
x = 1;
scanf("%d",&x);

while (x <= 10000);
{
printf("%d\n",x);
if (x = 0)
break;

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:1: error: break statement not within loop or switch
   12 | break;
      | ^~~~~
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include <stdio.h>
int main()
{
int x;
x = 1;
scanf("%d",&x);

while (x <= 10000);
{
printf("%d\n",x)}
if (x = 0)
break;

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ';' before '}' token
   10 | printf("%d\n",x)}
      |                 ^
      |                 ;
main.c:12:1: error: break statement not within loop or switch
   12 | break;
      | ^~~~~
Language: C

#include <stdio.h>
int main()
{
int x;
x = 1;
scanf("%d",&x);

while (1 <= x <= 10000);
{
printf("%d\n",x);
if (x = 0)
break;

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:1: error: break statement not within loop or switch
   12 | break;
      | ^~~~~
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'for'
    5 | scanf("%d",&x)
      |               ^
      |               ;
    6 | for(x = 1; x <= 10000; x++){
      | ~~~
Language: C


#include<stdio.h>

int main(void)
{
	int i,x;
	i=0;
   ?????? scanf("%d",&x);
	((x>1)&&(x<10000));
	while(!(x==0)&&(i<10000))
	{
		i++;
		printf("Case %d:\n",i);
		scanf("%d",&x);
	}

	return 0;
}

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


#include<stdio.h>

int main(void)
{
	int i,x;
	i=0;
    ??????scanf("%d",&x);
	((x>1)&&(x<10000));
	while(!(x==0)&&(i<1000))
	{
		i++;
		printf("Case %d:\n",i);
		scanf("%d",&x);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected expression before '?' token
    8 |     ??????scanf("%d",&x);
      |     ^
Language: C

int main(){
	register int i,x;
	i=0;
	scanf("%d",&x);
	i++;
	while(x!=0){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(){
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:4:9: error: address of register variable 'x' requested
main.c:6:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |         while(x!=0){printf("Case %d: %d\n",i,x);}
      |                     ^~~~~~
main.c:6:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:21: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(void)
{

    int x;
    int y = 1;

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: expected ')' before '!' token
   11 |     if (x! = 0) {
      |        ~ ^
      |          )
main.c:15:15: error: expected ')' before '!' token
   15 |     } while (x! = 0);
      |             ~ ^
      |               )
Language: C

#include <stdio.h>

int main(void)
{

    int x;
    int y = 1;

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: lvalue required as left operand of assignment
   11 |     if (!x = 0) {
      |            ^
main.c:15:17: error: lvalue required as left operand of assignment
   15 |     } while (!x = 0);
      |                 ^
Language: C

#include <stdio.h>
int main(){
    int x,i =0;
    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:5:12: error: expected ';' before 'scanf'
    5 |         i++
      |            ^
      |            ;
    6 |         scanf("%d",&x);
      |         ~~~~~
Language: C

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

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> main( )
      |                   ^~~~
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {   int num;
      | ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,d,e,f,g
scanf(" %d\n",&a);
scanf(" %d\n",%b);
scanf(" %d\n",&c);
scanf("%d\n",&d);
scanf("%d\n",&e);
scanf("%d\n",&f);
scanf("%d\n",&g);

printf("Case 1: %d\n",a);
printf("Case 2: %d\n",b);
printf("Case 3: %d\n",c);
printf("Case 4: %d\n",d);
printf("Case 5: %d\n",e);
printf("Case 6: %d\n",f);
printf("Case 7: %d\n",g);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 | scanf(" %d\n",&a);
      | ^~~~~
main.c:5:15: error: expected expression before '%' token
    5 | scanf(" %d\n",%b);
      |               ^
main.c:10:15: error: 'g' undeclared (first use in this function)
   10 | scanf("%d\n",&g);
      |               ^
main.c:10:15: 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 && x != 0; i++){
    scanf("%d\n", &x);
    printf("%d\n" x);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ')' before 'x'
    8 |     printf("%d\n" x);
      |           ~      ^~
      |                  )
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected ';' before 'for'
    5 |     i = 1
      |          ^
      |          ;
    6 |     for(scanf("%d",&x);x != 0;i++)
      |     ~~~   
main.c: At top level:
main.c:9:5: error: expected identifier or '(' before 'return'
    9 |     return 0;
      |     ^~~~~~
main.c:10:1: error: expected identifier or '(' before '}' token
   10 | }
      | ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected ';' before ')' token
   10 |   for(i=0,i<count;i++){
      |                      ^
      |                      ;
Language: C

#include <stdio.h>
int main (){
int i,x[10001],y[10001]={0};

for (i=1;i<10001;i++){

scanf ("%d",&x[i]);

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

y[i]=y[i-1]+1;

	}
}

for (i=1;i<10001;i++){

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

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

}

return 0;
}

Compiler output:
main.c:16:1: error: expected identifier or '(' before 'for'
   16 | for (i=1;i<10001;i++){
      | ^~~
main.c:16:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   16 | for (i=1;i<10001;i++){
      |           ^
main.c:16:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   16 | for (i=1;i<10001;i++){
      |                   ^~
main.c:24:1: error: expected identifier or '(' before 'return'
   24 | return 0;
      | ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])
{
    int x[10000],i=0;
for(int c=0;c<1000;c++)[
x[c]=0;
}
    while(1){
       scanf("%d",x[i]);
       if(x[i]=0){
         break;
      }
      i++;
   }
   i=0;
   while(1){
      if(x[i]=0){
         break;
      }
      printf("Case %d: %d\n",i+1,x[i]);
      i++;
   }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:24: error: expected expression before '[' token
    6 | for(int c=0;c<1000;c++)[
      |                        ^
main.c:7:8: error: expected ';' before '}' token
    7 | x[c]=0;
      |        ^
      |        ;
    8 | }
      | ~       
main.c: At top level:
main.c:9:5: error: expected identifier or '(' before 'while'
    9 |     while(1){
      |     ^~~~~
main.c:16:4: warning: data definition has no type or storage class
   16 |    i=0;
      |    ^
main.c:16:4: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:17:4: error: expected identifier or '(' before 'while'
   17 |    while(1){
      |    ^~~~~
main.c:24:5: error: expected identifier or '(' before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])
{
    int x[10000],i=0;
for(int c=0;c<=1000;c++)[
x[c]=0;
}
    while(1){
       scanf("%d",x[i]);
       if(x[i]=0){
         break;
      }
      i++;
   }
   i=0;
   while(1){
      if(x[i]=0){
         break;
      }
      printf("Case %d: %d\n",i+1,x[i]);
      i++;
   }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected expression before '[' token
    6 | for(int c=0;c<=1000;c++)[
      |                         ^
main.c:7:8: error: expected ';' before '}' token
    7 | x[c]=0;
      |        ^
      |        ;
    8 | }
      | ~       
main.c: At top level:
main.c:9:5: error: expected identifier or '(' before 'while'
    9 |     while(1){
      |     ^~~~~
main.c:16:4: warning: data definition has no type or storage class
   16 |    i=0;
      |    ^
main.c:16:4: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:17:4: error: expected identifier or '(' before 'while'
   17 |    while(1){
      |    ^~~~~
main.c:24:5: error: expected identifier or '(' before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

int main()
{
	/* ??\??? */
	int x;
	
	/* ???????????° */
	int count;
	
	/* ????????? */
	x = 0;
	i = 1;
	
	/* ??\??????????????????????????? */
	/* ???????????????????????????	*/
	if(( x != 0 )
	&& ( i <= 10000 )){
		scanf( "%d", &x );
		printf("Case %d: %d\n", i, x );
		i++;
	}
	else{
		/* ????????????*/
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |         i = 1;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   17 |                 scanf( "%d", &x );
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:17:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   17 |                 scanf( "%d", &x );
      |                 ^~~~~
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:18:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |                 printf("Case %d: %d\n", i, x );
      |                 ^~~~~~
main.c:18:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:18:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
	/* ??\??? */
	int x;
	
	/* ???????????° */
	int count;
	
	/* ????????? */
	x = 0;
	i = 1;
	
	/* ??\??????????????????????????? */
	/* ???????????????????????????	*/
	if(( x != 0 )
	&& ( i <= 10000 )){
		scanf( "%d", &x );
		printf("Case 1: 3\n");
		i++;
	}
	else{
		/* ????????????*/
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |         i = 1;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   17 |                 scanf( "%d", &x );
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:17:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   17 |                 scanf( "%d", &x );
      |                 ^~~~~
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:18:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |                 printf("Case 1: 3\n");
      |                 ^~~~~~
main.c:18:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:18:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
	/* ??\??? */
	int x;
	
	/* ???????????° */
	int count;
	
	/* ????????? */
	x = 0;
	i = 1;
	
	/* ??\??????????????????????????? */
	/* ???????????????????????????	*/
	if(( x != 0 )
	&& ( i <= 10000 )){
		x=1;
		printf("Case 1: 3\n");
		i++;
	}
	else{
		/* ????????????*/
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |         i = 1;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |                 printf("Case 1: 3\n");
      |                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:18:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |                 printf("Case 1: 3\n");
      |                 ^~~~~~
main.c:18:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

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

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

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclulde; did you mean #include?
    1 | #inclulde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |                 scanf("%d",&x);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclulde<stdio.h>
main.c:6:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |                 scanf("%d",&x);
      |                 ^~~~~
main.c:6:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("Case %d: %d\n",i,x);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main()
{
int i,a;
i=1;
a=0;
while(1){
   scanf("%d",&a);
   if(a==0){
      break;
}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:4: error: expected ';' before 'for'
    3 | i=0
      |    ^
      |    ;
    4 | for( ; ;){
      | ~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%d", &x);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%d", &x);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("Case %d: %d\n", i, x);
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: error: expected ';' before '}' token
    9 | return 0
      |         ^
      |         ;
   10 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:21: error: expected ';' before ')' token
    3 | for(i=1,i<10000, i++){
      |                     ^
      |                     ;
main.c:3:21: error: expected expression before ')' token
main.c:4:1: 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(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d", x);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf("Case %d: %d\n", i, d);
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:28: error: 'd' undeclared (first use in this function)
    5 | printf("Case %d: %d\n", i, d);
      |                            ^
main.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:21: error: expected ';' before ')' token
    3 | for(i=1,i<10000, i++){
      |                     ^
      |                     ;
main.c:3:21: error: expected expression before ')' token
main.c:4:1: 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(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d", x);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf("Case %d: %d\n", i, x);
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d", &i);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d", &i);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:13: error: expected ';' before ')' token
    4 | for (v=1;v++){
      |             ^
      |             ;
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf("Case %d: %d\n", v, i);
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before '}' token
    8 | else{printf("break")}
      |                     ^
      |                     ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:6: error: break statement not within loop or switch
    8 | else{break;}
      |      ^~~~~