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

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
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 | #inclide<stdio.h>
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:5:14: error: expected expression before '%' token
    5 |   scanf("%d",%x);
      |              ^
main.c:7:6: error: lvalue required as increment operand
    7 |     1++;
      |      ^~
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("Case %d: %d\n",i,x);
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:16: error: expected expression before '%' token
    9 |     scanf("%d",%x);
      |                ^
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
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 | #inclide<stdio.h>
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:7:6: error: lvalue required as increment operand
    7 |     1++;
      |      ^~
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("Case %d: %d\n",i,x);
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
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 | #inclide<stdio.h>
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:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("Case %d: %d\n",i,x);
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:7: error: expected declaration or statement at end of input
   11 |       return(0);
      |       ^~~~~~
Language: C

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

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


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

int main(){
	double *Cases;
	int i=1,j,k;
	int a=0;
	
	while(i!=0){
		scanf("%d",&i);
		if(i!=0){
			Cases[a]=i;
			a++;
		}
	}
	for(j=0;j<a;j++){
		printf("Case %d: %d\n"a+1,Cases[a]);
	}	

	
	free(Cases);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:39: error: expected ')' before 'a'
   18 |                 printf("Case %d: %d\n"a+1,Cases[a]);
      |                       ~               ^
      |                                       )
Language: C


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

int main(){
	double *Cases;
	int i=1,j;
	int a=0;
	
	while(i!=0){
		scanf("%d",&i);
		if(i!=0){
			Cases[a]=i;
			a++;
		}
	}
	for(j=0;j<a;j++){
		printf("Case %d: %d\n"a+1,Cases[j]);
	}	

	
	free(Cases);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:39: error: expected ')' before 'a'
   18 |                 printf("Case %d: %d\n"a+1,Cases[j]);
      |                       ~               ^
      |                                       )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    3 |  int x[256],count++,i;
      |                  ^~
main.c:4:3: error: assignment to expression with array type
    4 |  x=1;
      |   ^
main.c:5:28: error: 'count' undeclared (first use in this function)
    5 |  while((x == scanf("%d",&x[count])) != 0){
      |                            ^~~~~
main.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:6: error: 'i' undeclared (first use in this function)
    8 |  for(i=0;i<=count;i++{)
      |      ^
main.c:8:22: error: expected ')' before '{' token
    8 |  for(i=0;i<=count;i++{)
      |     ~                ^
      |                      )
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
main.c: At top level:
main.c:11:2: error: expected identifier or '(' before 'return'
   11 |  return 0;
      |  ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
Language: C

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

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 i,x=1;
 while(1){
    scanf("%d",&x);
    if(x==0){
       break;
}else{
  printf("case %d: %d",i,x);
  i++
}
}

Compiler output:
main.c: In function 'main':
main.c:10:6: error: expected ';' before '}' token
   10 |   i++
      |      ^
      |      ;
   11 | }
      | ~     
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:11:33: error: expected ')' before 'n'
   11 |     printf("Case %d: %d\n",count n);
      |           ~                     ^~
      |                                 )
Language: C

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

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

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

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

include<stdio.h>

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

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

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

#include <stdio.h>

int main(void)[
	int x[1024];
	int i;
	int temp;
	int cnt=0;
	do{
		scanf("%d",&temp);
		if (temp!=0){
			x[cnt++]=temp;
		}
	}while(temp!=0);
	for (i=0;i<cnt;i++){
		printf("Case %d: %d\n",i+1,x[i]);
	}
	return 0;
}

Compiler output:
main.c:4:9: error: expected expression before 'int'
    4 |         int x[1024];
      |         ^~~
Language: C

#include <stdio.h>

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

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

include<stdio.h>
int main(){
  int a;
  scanf("%d",&a);
  while(a<0||a>0){
    scanf("%d",&a);
  }
  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 a, x=1;

  while (1)
    {
       

scanf("%d", &a);

      if (a==0) break;
      printf("Case %d: %d\n", x, a);
      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 argc, const char * argv[])
{
    int i, x;
    for ( i = 1; i < 10; i ++) {
         scanf("%d", &x);
         if(x == 0){
            break;
         printf("cace %d: %d\n", i, 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 argc, const char * argv[])
{
    int i, x;
    for (i = 1; 1; i++) {
        scanf("%d", &x);
        if (x == 0) {
            break;
        printf("Cace %d: %d\n", i, x);
    }
    return 0;
}

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

#include <stdio.h>

int main() {
  int x, i;
  for (i=1; true; 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:13: error: 'true' undeclared (first use in this function)
    5 |   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:5:13: note: each undeclared identifier is reported only once for each function it appears in
    5 |   for (i=1; true; i++) {
      |             ^~~~
Language: C

#include

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

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

#include<stdio.h>

int main(void){
    int x[1024], i = 0;

    do{
        scanf("%d", x[i]);
        i++;
    }while(x[i] == 0)

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected ';' before 'for'
    9 |     }while(x[i] == 0)
      |                      ^
      |                      ;
   10 | 
   11 |     for(i = 0; x[i] == 0; i++){
      |     ~~~               
main.c:11:30: error: expected ';' before ')' token
   11 |     for(i = 0; x[i] == 0; i++){
      |                              ^
      |                              ;
main.c:11:30: error: expected statement before ')' token
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:7: warning: integer constant is too large for its type
    3 | int x[100000000000000000000000000],j;
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3:5: error: size of array 'x' is too large
    3 | int x[100000000000000000000000000],j;
      |     ^
Language: C

import java.io.*;
public class Main {
	public static void main(String args[])throws Exception{
		boolean bl=true;
		int Case=1;
		while(bl==true){
			BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
			int n=Integer.parseInt(br.readLine());
			if(n==0)bl=false;
			if(n!=0)System.out.println("Case "+n+": "+Case);
			Case++;
		}
	}
}
//by TTTMongolia 10/05/2012

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main {
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    2 | public class Main {
      |              ^~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    4 | while(1){
      | ^~~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'n' undeclared (first use in this function)
    4 |         n,i;
      |         ^
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:11: error: 'i' undeclared (first use in this function)
    4 |         n,i;
      |           ^
main.c:7:31: error: expected ';' before 'if'
    7 |                 scanf("%d",&i)
      |                               ^
      |                               ;
    8 |                 if(i==0)
      |                 ~~
Language: C

//AOJ10004
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10004

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

	int x;
	int a;
	
	a=1
	
	while(1){
	
	
	scanf ("%d",&x);	

	if (x==0) break;

	printf("Case %d: %d\n",a,x);
	
	a++;

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected ';' before 'while'
   10 |         a=1
      |            ^
      |            ;
   11 | 
   12 |         while(1){
      |         ~~~~~
Language: C

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

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

#include <stdio.h>

int main(void){
	int i = 1;
	int x = 0;

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'buffer' undeclared (first use in this function); did you mean 'setbuffer'?
    8 |         scanf(buffer, "%d", &x);
      |               ^~~~~~
      |               setbuffer
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'buffer' undeclared (first use in this function); did you mean 'setbuffer'?
    6 |         scanf(buffer, "%d", &x);
      |               ^~~~~~
      |               setbuffer
main.c:6: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=0;
    while(cin>>x){
        printf("Case %d: %d\n",++i, x);
    }

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: 'cin' undeclared (first use in this function)
    5 |     while(cin>>x){
      |           ^~~
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: 'x' undeclared (first use in this function)
    5 |     while(cin>>x){
      |                ^
Language: C

#include <stdio.h>

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'cin' undeclared (first use in this function)
    7 |         cin >> x;
      |         ^~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void) {
    int n,i=0;
    
    while(cin>>n){
        printf("Case %d: %d", ++i, n)
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'cin' undeclared (first use in this function)
    6 |     while(cin>>n){
      |           ^~~
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:38: error: expected ';' before '}' token
    7 |         printf("Case %d: %d", ++i, n)
      |                                      ^
      |                                      ;
    8 |     }
      |     ~
Language: C

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

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

#include<stdio.h>

int main(){

int a,i=1;

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

return 0;
}

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

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

do{
scanf("%d", x[i]);
i++;
}while(x[i - 1] != 0);

n = 0;
while(n != i ){
printf("%d", x[i]);
n++;
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: subscripted value is neither array nor pointer nor vector
    8 | scanf("%d", x[i]);
      |              ^
main.c:10:9: error: subscripted value is neither array nor pointer nor vector
   10 | }while(x[i - 1] != 0);
      |         ^
main.c:12:1: error: 'n' undeclared (first use in this function)
   12 | n = 0;
      | ^
main.c:12:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 | printf("%d", x[i]);
      |               ^
Language: C

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

Compiler output:
main.c:6:1: error: expected ';', identifier or '(' before 'int'
    6 | int main(){
      | ^~~
main.c: In function 'main':
main.c:15:16: error: incompatible types when initializing type 'int' using type 'struct id'
   15 | struct id c = {c,d};
      |                ^
main.c:20:25: error: request for member 'a' in something not a structure or union
   20 | printf("Case %d: %d\n",c.a,c.b);
      |                         ^
main.c:20:29: error: request for member 'b' in something not a structure or union
   20 | printf("Case %d: %d\n",c.a,c.b);
      |                             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:16: error: incompatible types when initializing type 'int' using type 'struct id'
   15 | struct id c = {c,d};
      |                ^
main.c:20:25: error: request for member 'a' in something not a structure or union
   20 | printf("Case %d: %d\n",c.a,c.b);
      |                         ^
main.c:20:29: error: request for member 'b' in something not a structure or union
   20 | printf("Case %d: %d\n",c.a,c.b);
      |                             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:12: error: implicit declaration of function 'wihie' [-Wimplicit-function-declaration]
    6 |            wihie(1){
      |            ^~~~~
main.c:6:20: error: expected ';' before '{' token
    6 |            wihie(1){
      |                    ^
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:12: error: implicit declaration of function 'wihie' [-Wimplicit-function-declaration]
    6 |            wihie(1){
      |            ^~~~~
main.c:6:20: error: expected ';' before '{' token
    6 |            wihie(1){
      |                    ^
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:12: error: implicit declaration of function 'wihie' [-Wimplicit-function-declaration]
    6 |            wihie (1) {
      |            ^~~~~
main.c:6:21: error: expected ';' before '{' token
    6 |            wihie (1) {
      |                     ^~
      |                     ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:12: error: implicit declaration of function 'wihie' [-Wimplicit-function-declaration]
    5 |            wihie (1) {
      |            ^~~~~
main.c:5:21: error: expected ';' before '{' token
    5 |            wihie (1) {
      |                     ^~
      |                     ;
Language: C

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

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

#include<stdio.h>

int main(){
  int i;
  do{
    scanf("%d",&i);
    if(i!=0){
      printf("%d\n",i);
    }
  }while(i!=0)
  return 0;
}

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

#include "stdio.h"

int main(){
	int *first=null;
	int *data;
	int i;
	int a;
	first=data;
	do{
		scanf("%d",&a);
		*data=a;
		data++;
		i++;
	}while(a==0);
	data=first;
	i=0;
	while(a==0){
		i++;
		printf("Case %d: %d",i,*data);
		data++;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: 'null' undeclared (first use in this function)
    4 |         int *first=null;
      |                    ^~~~
main.c:4:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include "stdio.h"

int main(){
	int *first=NULLl;
	int *data;
	int i;
	int a;
	first=data;
	do{
		scanf("%d",&a);
		*data=a;
		data++;
		i++;
	}while(a==0);
	data=first;
	i=0;
	while(a==0){
		i++;
		printf("Case %d: %d",i,*data);
		data++;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: 'NULLl' undeclared (first use in this function); did you mean 'NULL'?
    4 |         int *first=NULLl;
      |                    ^~~~~
      |                    NULL
main.c:4:20: 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 i;
   //while(1) {
      for(i=1; i<100000; i++) {
         scanf("%d", &x);
         if (! x) break;
         printf("Case %d: %d\n", i, x);
      }
   
   return (0);

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

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected expression before ')' token
    7 |                 if(a != ){
      |                         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:13: error: array size missing in 'a'
    3 |         int a[];
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'a' undeclared (first use in this function)
    5 |         while(a != 0){
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

 

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

#include<stdio.h>

int main(void)
{
	int x;
	int i;
	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:7:16: error: expected expression before '%' token
    7 |         scanf( %d , &x );
      |                ^
Language: C

#include<stdio.h>

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

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:7: error: expected expression before '%' token
    7 | scanf(%d,&c);
      |       ^
Language: C

#include<stdio.h>

main(){
int i=0;
char c;
scanf("%c",&c);
while(c!='0'){
printf("Case %d: %c\n",++i,c);
scanf("%c",&c);
retun 0;
}
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:1: error: 'retun' undeclared (first use in this function)
   10 | retun 0;
      | ^~~~~
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:6: error: expected ';' before numeric constant
   10 | retun 0;
      |      ^~
      |      ;
Language: C

#include<stdio.h>

main(){
int i=0;
char c;
scanf("%c",&c);
while(c!='0'){
printf("Case %d: %c\n",++i,c);
scanf("%c",&c);
retrun 0;
}
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:1: error: 'retrun' undeclared (first use in this function)
   10 | retrun 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 | retrun 0;
      |       ^~
      |       ;
Language: C

#include <stdio.h>

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

while(true){
scanf("%d",x);
if(x)printf("Case %d: %d\n",++i,x);
else break;
}
return 0;
}

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

#include <stdio.h>

int main(void)
{
	int i=1;
	int x;

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

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

#include <stdio.h>

int main(void)
{
	int i=1;
	int x;

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

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

#include<iostream>
using namespace std;
 
int main(){
    int a,x=0;
    while(cin>>a ,a!=0){
        cout<<"Case"<<" "<<x+1<<":"<<" "<<a<<endl;
        x++;
    }
}

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

#include<stdio.h>

main(){
int x,i=0;

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


}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int i=1;
	int x;

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


	return 0;
}

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

#include <stdio.h>

main()
{
	int i,x;

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

	return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before 'case'
    5 |     int case[] = 0;
      |         ^~~~
main.c:7:21: error: expected expression before 'case'
    7 |         scanf("%d",&case[i]);
      |                     ^~~~
main.c:13:33: error: expected expression before 'case'
   13 |         printf("Case %d: %d", j,case[j])
      |                                 ^~~~
main.c:13:41: error: expected ';' before '}' token
   13 |         printf("Case %d: %d", j,case[j])
      |                                         ^
      |                                         ;
   14 |     }
      |     ~
Language: C

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

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

#include <stdio.h>

int main(void) {
    int i,a[1000];
    for(i=0;i<1000;i++){
        scanf("%d",&a[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:11:5: error: expected declaration or statement at end of input
   11 |     return(0);
      |     ^~~~~~
Language: C

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

#include<stduo.h>
main(){
int a,x;
for(a=0;a<0;a++){
scanf("%d",&x);
printf("%d\n",x);
cin>>x
if(x==0)break;
}
return 0;
}

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


#include<bits/stdc++.h>

using namespace std;

int main(){
	int co=0;
	while(cin>>n,n){
		cout<<"case "<<++co<<": "<<n<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |         while(cin>>n,n){
      |                    ^
      |                    yn
Language: C++

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

	int x[100],i;

	for (i = 0; x[i-1];i++)
	scanf("%d", &x[i]);

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<math.h>
#include<stack>
#include<queue>
#include<vector>

using namespace std;

int main(int argc, char **argv){
	int n;
	int count = 1;
	while (cin >> n && n != 0) {
		cout << "Case " << count << ": " << n << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:16: error: 'cin' was not declared in this scope
   11 |         while (cin >> n && n != 0) {
      |                ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<queue>
  +++ |+#include <iostream>
    4 | #include<vector>
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "Case " << count << ": " << n << endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:58: error: 'endl' was not declared in this scope
   12 |                 cout << "Case " << count << ": " << n << endl;
      |                                                          ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include<queue>
  +++ |+#include <ostream>
    4 | #include<vector>
Language: C++

#include<stdio.h>

int main(void)
{
	int cnt;
	int j=0;
	int i=1;
	int a[100];


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

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

		return(0);

Compiler output:
a.cc: In function 'int main()':
a.cc:24:27: error: expected '}' at end of input
   24 |                 return(0);
      |                           ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<stdio.h>

int main(void)
{
	int cnt;
	int j=0;
	int i=1;
	int a[100];
	int x=1;


	do{
		scanf("%d",&a[i]);
		j=i;
		x=a[j];
		if(x==0)
			break;
		i++;
	}while(1);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected '}' at end of input
   24 |                 }
      |                  ^
a.cc:21:31: note: to match this '{'
   21 |         for(cnt=1;cnt<i;cnt++){
      |                               ^
a.cc:24:18: error: expected '}' at end of input
   24 |                 }
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

import sys

input_list = []
i = 0

while True:
	rawinput = raw_input()
	print rawinput
	if rawinput != "0":
		i = i + 1
		rawinput = "Case i:"+ rawinput
		rawinput = rawinput.replace("i",str(i))
		input_list.append(rawinput)
	else:
		sys.exit()

for prn in input_list:
	print prn

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
using namespace std;
int main(void){
  for(int i = 1,num;num != 0 ; i ++){
    cin>>num
    cout<<"Case "<<i<<": "<<num<<endl; 
  }
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected ';' before 'cout'
    5 |     cin>>num
      |             ^
      |             ;
    6 |     cout<<"Case "<<i<<": "<<num<<endl;
      |     ~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	int i = 0;
	while (true){
		int a = 0;
		cin >> a;
		if (a == 0)
			break;
		i++;
		cout << "Case " << i << ": "<<a<<" "<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
  int i;
  for (i = 0; i<1000; i++){
    
  cout << "Hello World"<< endl;
  }
  
  return 0;
}
#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
  int i=1, x;
  while(1) {
    
    cin >> x;
    if (x == 0) {
      break;
    }
    cout << "Case " << i << ": " << x << endl;
    i++;
  }
  
  return 0;
}

Compiler output:
a.cc:18:5: error: redefinition of 'int main()'
   18 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using nameapase std;

int main()
{
    int i, x = 1;
    
    for (i = 1; x; i++){
      cin >> x;
      cout << "case" << i << ": " << x;
    }
    
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameapase'
    2 | using nameapase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |       cin >> x;
      |       ^~~
      |       std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << "case" << i << ": " << x;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespasce std;

int main()
{
    int i = 1, x;
    
    while(1){
      cin >> x;
      if (!x)break;
      cout << "case " << i << ": " << x;
      i++;
    }
    
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespasce'
    2 | using namespasce std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |       cin >> x;
      |       ^~~
      |       std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout << "case " << i << ": " << x;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
	int r=0;
	int n=0;
	while(1)
	{
		scanf("%d",&n);
		if(n==0)
			break;
		printf("Case %d %d\n", ++r ,n);

	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include "stdafx.h"


int _tmain(void)
{
	int r=0;
	int n=0;
	while(1)
	{
		scanf("%d",&n);
		if(n==0)
			break;
		printf("Case %d %d\n", ++r ,n);

	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.