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

#include <stdio.h>

main(){
	int x=999,y=1;
	while(x!=0){
		scanf("%d",&x);
		if(x!=){
			printf("Case %d: %d",y,x);
		}
	}
	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:7:23: error: expected expression before ')' token
    7 |                 if(x!=){
      |                       ^
Language: C

#include <stdio.h>

main(){
	int x=999,y=1;
	while(x!=0){
		scanf("%d",&x);
		if(x!=){
			printf("Case %d: %d",y,x);
		}
		y++;
	}
	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:7:23: error: expected expression before ')' token
    7 |                 if(x!=){
      |                       ^
Language: C

#include <iostream>

int main(){

	int a;
	int i = 0;

	while(1){
		std::cin >> a;
		if(a == 0){
			break;
		}
		i++;
		std::cout << "Case " << i << ": " << a << std::endl;	
	
	}
}

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

#include<iostream>
#include<algorithm>
using namespace std;

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

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

int main(){
    int x,y;
    while(1){
        scanf("%d %d\n", &x,&y);
        if(x==0)break;
        else(y==0)break;
        printf(" %d %d\n",x,y);
    }
    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 %d\n", &x,&y);
      |         ^~~~~
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 %d\n", &x,&y);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:19: error: expected ';' before 'break'
    6 |         else(y==0)break;
      |                   ^~~~~
      |                   ;
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf(" %d %d\n",x,y);
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
    int x,y;
    while(1){
        scanf("%d %d\n", &x,&y);
        if(x==0)break;
        else(y==0)break;
        printf("%d %d\n",x,y);
    }
    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 %d\n", &x,&y);
      |         ^~~~~
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 %d\n", &x,&y);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:19: error: expected ';' before 'break'
    6 |         else(y==0)break;
      |                   ^~~~~
      |                   ;
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("%d %d\n",x,y);
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
    int x,y;
    while(1){
        scanf("%d %d\n", &x,&y);
        if(x==0 && y==0)break;
        else if(x<y){
        tmp=x;
        x=y;
        y=tmp;
}
        printf("%d %d\n",x,y);
    }
    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 %d\n", &x,&y);
      |         ^~~~~
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 %d\n", &x,&y);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:9: error: 'tmp' undeclared (first use in this function)
    7 |         tmp=x;
      |         ^~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |         printf("%d %d\n",x,y);
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'if'
    5 |     y=0
      |        ^
      |        ;
    6 |     if(;;){
      |     ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'if'
    5 |     y=0
      |        ^
      |        ;
    6 |     if(;;){
      |     ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'if'
    5 |     y=0
      |        ^
      |        ;
    6 |     if(;;){
      |     ~~  
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
    static final int INF = 1000000000;     
    
    public static void main(String[] args) throws Exception {                
        Scanner input = new Scanner(System.in);
        int t = 0;        
        while (input.hasNextInt()) {
            int x = input.nextInt();
            if (x == 0) break;
            else System.out.println("Case " + ++t + ": " + x);
        }
    }         
}

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

#include<stdio.h>
int main(void)
{
 int a,b,c;
 b=1;
 while(1){
 scanf("%d",&a);
 swich(a){
  case 0 : break;
  default :printf("Case %d: %d\n",b,a);
 }
 return(0);
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    8 |  swich(a){
      |  ^~~~~
main.c:8:10: error: expected ';' before '{' token
    8 |  swich(a){
      |          ^
      |          ;
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

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

 while(1){
  scanf("%d",&a);
  switch(a){
   case 0: break;
   default :printf("%d",a);
}
 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(void){
 int a,b;

 while(1){
  scanf("%d",&a);
  switch(a){
   case 0: break;
   default :printf("Case %d: %d",b,a);
}
 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(void){
 int a,b;

 while(1){
  scanf("%d",&a);
  switch(a){
   case 0: break;
   default :printf("Case %d: %d\n",b,a);
}
 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

#inlcude<stdio.h>
int main(void)
{
 int a,b;
 b=1;
 while(1){
  scanf("%d",&a);

 switch(a){
  case 0: break;
  default :{
            printf("Case %d: %d\n",b,a);
            a++;}
}
}
return(0);
}

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

#include<stdio.h>

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

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

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

typedef struct _data{
	int data;
	_data* next;
} data;

int main(){
	data* first=(data*)(malloc(sizeof(data)));
	data* head=first;
	int A;
	first->next=0;
	first->data=-1;
	do{
		head->next=(data*)(malloc(sizeof(data)));
		head=head.next;
		head->next=0;
		scanf("%d",&(head->data));
	}while(head->data!=0);
	head=first;
	A=1;
	while(head->data!=0){
		printf("case %d: %d",A,head->data);
		A++;
		head=head->next;
		free(first);
		first=head;
	}
	return 0;
}

Compiler output:
main.c:6:9: error: unknown type name '_data'
    6 |         _data* next;
      |         ^~~~~
main.c: In function 'main':
main.c:16:27: error: assignment to 'int *' from incompatible pointer type 'data *' {aka 'struct _data *'} [-Wincompatible-pointer-types]
   16 |                 head->next=(data*)(malloc(sizeof(data)));
      |                           ^
main.c:17:26: error: 'head' is a pointer; did you mean to use '->'?
   17 |                 head=head.next;
      |                          ^
      |                          ->
main.c:26:21: error: assignment to 'data *' {aka 'struct _data *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
   26 |                 head=head->next;
      |                     ^
Language: C

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

typedef struct _data{
	int data;
	struct _data* next;
} data;

int main(){
	data* first=(data*)(malloc(sizeof(data)));
	data* head=first;
	int A;
	first->next=0;
	first->data=-1;
	do{
		head->next=(data*)(malloc(sizeof(data)));
		head=head.next;
		head->next=0;
		scanf("%d",&(head->data));
	}while(head->data!=0);
	head=first;
	A=1;
	while(head->data!=0){
		printf("case %d: %d",A,head->data);
		A++;
		head=head->next;
		free(first);
		first=head;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:26: error: 'head' is a pointer; did you mean to use '->'?
   17 |                 head=head.next;
      |                          ^
      |                          ->
Language: C

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

typedef struct _data{
	int elm;
	struct _data* next;
} data;

int main(){
	data* first=(data*)(malloc(sizeof(data)));
	data* head=first;
	int A;
	first->next=0;
	first->elm=-1;
	do{
		head->next=(data*)(malloc(sizeof(data)));
		head=head.next;
		head->next=0;
		scanf("%d",&(head->elm));
	}while(head->elm!=0);
	head=first;
	A=1;
	while(head->elm!=0){
		printf("case %d: %d",A,head->elm);
		A++;
		head=head->next;
		free(first);
		first=head;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:26: error: 'head' is a pointer; did you mean to use '->'?
   17 |                 head=head.next;
      |                          ^
      |                          ->
Language: C

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

typedef struct _data{
	int elm;
	void* next;
} data;

int main(){
	data* first=(data*)(malloc(sizeof(data)));
	data* head=first;
	int A;
	first->next=0;
	first->elm=-1;
	do{
		head->next=(data*)(malloc(sizeof(data)));
		head=head.next;
		head->next=0;
		scanf("%d",&(head->elm));
	}while(head->elm!=0);
	head=first;
	A=1;
	while(head->elm!=0){
		printf("case %d: %d",A,head->elm);
		A++;
		head=head->next;
		free(first);
		first=head;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:26: error: 'head' is a pointer; did you mean to use '->'?
   17 |                 head=head.next;
      |                          ^
      |                          ->
Language: C

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

typedef struct _data{
	int elm;
	void* next;
} data;

int main(){
	data* first=(data*)(malloc(sizeof(data)));
	data* head=first;
	int A;
	first->next=0;
	first->elm=-1;
	do{
		head->next=(data*)(malloc(sizeof(data)));
		head=(data*)(head.next);
		head->next=0;
		scanf("%d",&(head->elm));
	}while(head->elm!=0);
	head=first;
	A=1;
	while(head->elm!=0){
		printf("case %d: %d",A,head->elm);
		A++;
		head=(data*)(head->next);
		free(first);
		first=head;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:34: error: 'head' is a pointer; did you mean to use '->'?
   17 |                 head=(data*)(head.next);
      |                                  ^
      |                                  ->
Language: C

include<iostream>
using namespace std;

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

    }
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<iostream>
      |        ^
main.c: In function 'main':
main.c:7:5: error: 'cin' undeclared (first use in this function)
    7 |     cin >> x;
      |     ^~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: 'cout' undeclared (first use in this function)
    9 |       cout << endl;
      |       ^~~~
main.c:9:15: error: 'endl' undeclared (first use in this function)
    9 |       cout << endl;
      |               ^~~~
Language: C

include<iostream>
using namespace std;

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

    }
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<iostream>
      |        ^
main.c: In function 'main':
main.c:7:5: error: 'cin' undeclared (first use in this function)
    7 |     cin >> x;
      |     ^~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: 'cout' undeclared (first use in this function)
    9 |       cout << endl;
      |       ^~~~
main.c:9:15: error: 'endl' undeclared (first use in this function)
    9 |       cout << endl;
      |               ^~~~
Language: C


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

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

#include<stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'cin' undeclared (first use in this function)
    7 |     cin >> x
      |     ^~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:13: error: expected ';' before 'if'
    7 |     cin >> x
      |             ^
      |             ;
    8 |     if ( x == 0 ) break;
      |     ~~       
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main(void){
	int x=, count;

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected expression before ',' token
    5 |         int x=, count;
      |               ^
Language: C

#include<stdio.h>

int main(){
int i;
int k=1;

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

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

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

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





	getch();

}

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

include<stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ';' before ')' token
    7 |         for (i=0;i++);
      |                     ^
      |                     ;
Language: C

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

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

#include <iostream>
using namespace std;

int x;
int i = 1;
int main() {
cin >> x;
while(x != 0) {
cout << "Case " << i << ": " << x;
++i;
cin >> x;
}
}

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

#include <iostream>
#include <string>

using namespace std;

int main()
{
	int array[10001];
	int i = 0;
	while (cin>>array[++i])
	{
		
	}
        i = 0;
　　　　while (array[++i])
        {
                cout << "Case " << i << ": " << array[i] << endl;
        }
	return 0;
}



Compiler output:
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　　　while (array[++i])
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:15:1: error: '\U00003000\U00003000\U00003000\U00003000while' was not declared in this scope
   15 | 　　　　while (array[++i])
      | ^~~~~~~~~~~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'n' was not declared in this scope
    7 |                 if(n==0)break;
      |                    ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: '\U00003042' was not declared in this scope
    7 |                 if(あ==0)break;
      |                    ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before '<<' token
    7 |         cout << "Case" << << " " << i << ":" << " " << x << endl ;
      |                           ^~
Language: C++

use std::io;
use std::str::FromStr;

fn read() -> i32 {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    let x: i32 = s.trim().parse().unwrap();
    x
}

fn main() {

    let mut x = read();
    let mut i = 1;
    while x != 0{
        println!("Case {}: {}",i,x);
        x = read();
        i = i + 1;
    }
    

}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn read() -> i32 {
      | ^~
a.cc:11:1: error: 'fn' does not name a type
   11 | fn main() {
      | ^~
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'cin'
    9 |         i++
      |            ^
      |            ;
   10 |         cin >> x;
      |         ~~~ 
a.cc:11:17: error: expected ';' before 'break'
   11 |         (x == 0) break : cout << "Case " << i << ": " << x;
      |                 ^~~~~~
      |                 ;
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'cin'
    9 |         i++
      |            ^
      |            ;
   10 |         cin >> x;
      |         ~~~ 
a.cc:11:20: error: expected primary-expression before 'break'
   11 |         (x == 0) ? break : cout << "Case " << i << ": " << x;
      |                    ^~~~~
a.cc:11:19: error: expected ':' before 'break'
   11 |         (x == 0) ? break : cout << "Case " << i << ": " << x;
      |                   ^~~~~~
      |                   :
a.cc:11:20: error: expected primary-expression before 'break'
   11 |         (x == 0) ? break : cout << "Case " << i << ": " << x;
      |                    ^~~~~
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected primary-expression before 'break'
   11 |         (x == 0) ? break : cout << "Case " << i << ": " << x;
      |                    ^~~~~
a.cc:11:19: error: expected ':' before 'break'
   11 |         (x == 0) ? break : cout << "Case " << i << ": " << x;
      |                   ^~~~~~
      |                   :
a.cc:11:20: error: expected primary-expression before 'break'
   11 |         (x == 0) ? break : cout << "Case " << i << ": " << x;
      |                    ^~~~~
Language: C++

#include<cstdio>
using namespace std;
int main() {
	int x;
	while (true) {
		cin >> x;
		if (x==0)break;
		printf("%d\n", x);
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'cin' was not declared in this scope
    6 |                 cin >> x;
      |                 ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int i, x;
    for(i = 0;i < 10000;i++){
        cin >> x
        if(x == 0){
            break;
        }
        cout << x << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 'if'
    6 |         cin >> x
      |                 ^
      |                 ;
    7 |         if(x == 0){
      |         ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int i, x;
    for(i = ;i < 10000;i++){
        cin >> x;
        if(x == 0){
            break;
        }
        cout << x << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected primary-expression before ';' token
    5 |     for(i = ;i < 10000;i++){
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'Case' was not declared in this scope
   11 |      cout << Case << " " << cnt << ": " << x << endl;
      |              ^~~~
Language: C++

#include<iostream>

using namespace std;

int main() {

	int i,x;

	while (i) {

		cin x;

			if (x == 0)break;


	}


	

	return 0;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'x'
   11 |                 cin x;
      |                    ^~
      |                    ;
Language: C++

#include<iostream>

using namespace std;

int main() {

	int x;

	while (1) {

		cin x;

			if (x == 0)break;


	}


	

	return 0;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'x'
   11 |                 cin x;
      |                    ^~
      |                    ;
Language: C++

#include<iostream>

using namespace std;

int main() {

	int i,x;

	for (i) {

		cin >>x;

			if (x == 0) break;
			cout << "Case i ; x" << endl;

	}


	

	return 0;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before ')' token
    9 |         for (i) {
      |               ^
      |               ;
a.cc:21:9: error: expected primary-expression before 'return'
   21 |         return 0;
      |         ^~~~~~
a.cc:16:10: error: expected ';' before 'return'
   16 |         }
      |          ^
      |          ;
......
   21 |         return 0;
      |         ~~~~~~
a.cc:21:9: error: expected primary-expression before 'return'
   21 |         return 0;
      |         ^~~~~~
a.cc:16:10: error: expected ')' before 'return'
   16 |         }
      |          ^
      |          )
......
   21 |         return 0;
      |         ~~~~~~
a.cc:9:13: note: to match this '('
    9 |         for (i) {
      |             ^
Language: C++

#include<cstdio>
using namespace std;

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |                 scanf_s("%d", &input);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include<iostream>
using namespace std;

int main(){



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

	int a ;
	cin >> a ;

		if( a = 0 )
		{
		i=10001
		}else{
		cout<< "Case "i":" "a<< endl;
		}


	}


	return 0;


Compiler output:
a.cc:18:36: warning: missing terminating " character
   18 |                 cout<< "Case "i":" "a<< endl;
      |                                    ^
a.cc:18:36: error: missing terminating " character
   18 |                 cout<< "Case "i":" "a<< endl;
      |                                    ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:24: error: expected ';' before '}' token
   16 |                 i=10001
      |                        ^
      |                        ;
   17 |                 }else{
      |                 ~       
a.cc:18:32: error: unable to find string literal operator 'operator""i' with 'const char [7]', 'long unsigned int' arguments
   18 |                 cout<< "Case "i":" "a<< endl;
      |                                ^~~
a.cc:25:18: error: expected '}' at end of input
   25 |         return 0;
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){



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

	int x ;
	cin >> x ;

		if( a = 0 )
		{
		i=10001
		}else{
		cout<< "Case "i":" "x << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc:18:36: warning: missing terminating " character
   18 |                 cout<< "Case "i":" "x << endl;
      |                                    ^
a.cc:18:36: error: missing terminating " character
   18 |                 cout<< "Case "i":" "x << endl;
      |                                    ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:21: error: 'a' was not declared in this scope
   14 |                 if( a = 0 )
      |                     ^
a.cc:16:24: error: expected ';' before '}' token
   16 |                 i=10001
      |                        ^
      |                        ;
   17 |                 }else{
      |                 ~       
a.cc:18:32: error: unable to find string literal operator 'operator""i' with 'const char [7]', 'long unsigned int' arguments
   18 |                 cout<< "Case "i":" "x << endl;
      |                                ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){

	int x ;

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

	cin >> x ;

		if( a = 0 )
		{
		i=10001
		}else{
		cout<< "Case "i":" "x << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc:17:36: warning: missing terminating " character
   17 |                 cout<< "Case "i":" "x << endl;
      |                                    ^
a.cc:17:36: error: missing terminating " character
   17 |                 cout<< "Case "i":" "x << endl;
      |                                    ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:13:21: error: 'a' was not declared in this scope
   13 |                 if( a = 0 )
      |                     ^
a.cc:15:24: error: expected ';' before '}' token
   15 |                 i=10001
      |                        ^
      |                        ;
   16 |                 }else{
      |                 ~       
a.cc:17:32: error: unable to find string literal operator 'operator""i' with 'const char [7]', 'long unsigned int' arguments
   17 |                 cout<< "Case "i":" "x << endl;
      |                                ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){

	int x ;

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

	cin >> x ;

		if( a = 0 )
		{
		i=10001
		}else{
		cout<< "Case " i ": "x << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'a' was not declared in this scope
   13 |                 if( a = 0 )
      |                     ^
a.cc:15:24: error: expected ';' before '}' token
   15 |                 i=10001
      |                        ^
      |                        ;
   16 |                 }else{
      |                 ~       
a.cc:17:31: error: expected ';' before 'i'
   17 |                 cout<< "Case " i ": "x << endl;
      |                               ^~
      |                               ;
Language: C++

#include<iostream>
using namespace std;

int main(){

	int x[10000] ;

 	for (int i=0; i<10001; i=i+1 )
	{
	cin >> x[i] ;
	}


        for (int i=0; i<10001; i=i+1 )
	{
		if( x[i] = 0 )
		{
		i=10001;
		break;
		}else{
		cout<< "Case " i ": "x[i] << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected ';' before 'i'
   21 |                 cout<< "Case " i ": "x[i] << endl;
      |                               ^~
      |                               ;
Language: C++

#include<iostream>
using namespace std;

int main(){

	int x[10000] ;

 	for (int i=0; i<10001; i=i+1 )
	{
	cin >> x[i] ;
	}


        for (int i=0; i<10001; i=i+1 )
	{
		if( x[i] = 0 )
		{
		i=10001;
		}else{
		cout<< "Case " i ": "x[i] << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:31: error: expected ';' before 'i'
   20 |                 cout<< "Case " i ": "x[i] << endl;
      |                               ^~
      |                               ;
Language: C++

#include<iostream>
using namespace std;

int main(){

	int x[10000] ;

 	for (int i=0; i<10001; i=i+1 )
	{
	cin >> x[i] ;
	}


        for (int i=0; i<10001; i=i+1 )
	{
		if( x[i] = 0 )
		{
		i = 10001;
		break;
		}else{
		cout<< "Case " i ": "x[i] << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected ';' before 'i'
   21 |                 cout<< "Case " i ": "x[i] << endl;
      |                               ^~
      |                               ;
Language: C++

#include<iostream>
using namespace std;

int main(){

	int x[10000] ;

 	for (int i=0; i<10001; i=i+1 )
	{
	cin >> x[i] ;
	}


        for (int i=0; i<10001; i=i+1 )
	{
		if( x[i] == 0 )
		{
		i = 10001;
		break;
		}else{
		cout<< "Case " i ": "x[i] << endl;
		}


	}

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected ';' before 'i'
   21 |                 cout<< "Case " i ": "x[i] << endl;
      |                               ^~
      |                               ;
Language: C++

 int main(){

 	for (int i=1; i<=10000; i=i+1 )
 	{
 	cin >> x[i] ;

		if( x[i] == 0 )
 		{
 		break;
 		}else{
		cout<< "Case "<< i << ": "<< x[i] << endl;
 		}

 	}

 return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x[i] ;
      |         ^~~
a.cc:5:16: error: 'x' was not declared in this scope
    5 |         cin >> x[i] ;
      |                ^
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout<< "Case "<< i << ": "<< x[i] << endl;
      |                 ^~~~
a.cc:11:54: error: 'endl' was not declared in this scope
   11 |                 cout<< "Case "<< i << ": "<< x[i] << endl;
      |                                                      ^~~~
Language: C++

#include<iostream>
 using namespace std;

 int main(){

 	for (int i=1; i<=10000; i=i+1 )
 	{
 	cin >> x[i] ;

		if( x[i] == 0 )
 		{
 		break;
 		}else{
		cout<< "Case "<< i << ": "<< x[i] << endl;
 		}

 	}

 return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'x' was not declared in this scope
    8 |         cin >> x[i] ;
      |                ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before '{' token
    7 |                 if(x==0)break{
      |                              ^
      |                              ;
a.cc:8:35: error: 'xi' was not declared in this scope; did you mean 'i'?
    8 |                         for(i=1;i<xi++){
      |                                   ^~
      |                                   i
a.cc:8:39: error: expected ';' before ')' token
    8 |                         for(i=1;i<xi++){
      |                                       ^
      |                                       ;
Language: C++

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

int main()
{
    int x[10000] = 0;
    int i = 0;
    
    while(1)
    {
        if(EOF == fscanf("%d",x+i)) break;
        i++;
    }
    int length = i;
    for(i = 0;i < length; i++)
    {
        printf("Case %d: %d",i,x[i]);
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: array must be initialized with a brace-enclosed initializer
    6 |     int x[10000] = 0;
      |                    ^
a.cc:11:26: error: cannot convert 'const char*' to 'FILE*'
   11 |         if(EOF == fscanf("%d",x+i)) break;
      |                          ^~~~
      |                          |
      |                          const char*
In file included from a.cc:1:
/usr/include/stdio.h:422:37: note:   initializing argument 1 of 'int fscanf(FILE*, const char*, ...)'
  422 | extern int fscanf (FILE *__restrict __stream,
      |                    ~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main()
{
    int x[10000] = 0;
    int i = 0;
    
    while(1)
    {
        if(EOF == scanf("%d",x+i)) break;
        i++;
    }
    int length = i;
    for(i = 0;i < length; i++)
    {
        printf("Case %d: %d",i,x[i]);
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: array must be initialized with a brace-enclosed initializer
    6 |     int x[10000] = 0;
      |                    ^
Language: C++

<?php
　$stdin = trim(fgets(STDIN));
　for(i = 1;string(i) != 0;i++){
   printf("ケース %d: %d",i,string(i));
  }
?>


Compiler output:
a.cc:2:1: error: extended character 　 is not valid in an identifier
    2 | 　$stdin = trim(fgets(STDIN));
      | ^
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　for(i = 1;string(i) != 0;i++){
      | ^
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | 　for(i = 1;string(i) != 0;i++){
      |      ^
a.cc:3:19: error: expected constructor, destructor, or type conversion before '(' token
    3 | 　for(i = 1;string(i) != 0;i++){
      |                   ^
a.cc:3:28: error: 'i' does not name a type
    3 | 　for(i = 1;string(i) != 0;i++){
      |                            ^
a.cc:6:1: error: expected unqualified-id before '?' token
    6 | ?>
      | ^
Language: C++

#include<stdio.h>

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



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

#include<stdio.h>
using namespace std;

int x;
int main()
{
	while (1) {
	    scanf("%d",&x);
		printf("Case 1: %d", x);
		printf("Case 2: %d", x);
		printf("Case 3: %d", x);
		printf("Case 4: %d", x);
		printf("Case 5: %d", x);
		printf("Case 6: %d", x);
		 if ( x == 0 ){
		      break
		 }
	}
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before '}' token
   16 |                       break
      |                            ^
      |                            ;
   17 |                  }
      |                  ~
Language: C++

#include<stdio.h>
using namespace std;

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



Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | double main()
      | ^~~~~~
Language: C++

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

 for(j=0;j<i;j++)
 {
  printf("%d",num[j]);
 }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected initializer before '.' token
    4 |  int i.j;
      |       ^
a.cc:6:6: error: 'i' was not declared in this scope
    6 |  for(i=0;num[i]==0;i++)
      |      ^
a.cc:11:6: error: 'j' was not declared in this scope
   11 |  for(j=0;j<i;j++)
      |      ^
a.cc:11:12: error: 'i' was not declared in this scope
   11 |  for(j=0;j<i;j++)
      |            ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  
int a ;
int i ;
            for(i=0;i<1000;i++)
	{
	cin >> a ;
	if(a != 0) cout <<"Case "<< i <<": "<< a <<endl;
	else
	break;
             }

    return 0;
}


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |   
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |             for(i=0;i<1000;i++)
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:14:1: error: extended character   is not valid in an identifier
   14 |              }
      | ^
a.cc:14:1: error: extended character   is not valid in an identifier
a.cc:14:1: error: extended character   is not valid in an identifier
a.cc:14:1: error: extended character   is not valid in an identifier
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |     return 0;
      | ^
a.cc:16:1: error: extended character   is not valid in an identifier
a.cc:16:1: error: extended character   is not valid in an identifier
a.cc:16:1: error: extended character   is not valid in an identifier
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){

int a ;
int i ;
        for(i=0;i<10000;i++)
	{
	cin >> a ;
	if(a != 0) cout <<"Case "<< i <<": "<< a <<endl;
	else
	break;
             }

    return 0;
}


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |         for(i=0;i<10000;i++)
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:14:1: error: extended character   is not valid in an identifier
   14 |              }
      | ^
a.cc:14:1: error: extended character   is not valid in an identifier
a.cc:14:1: error: extended character   is not valid in an identifier
a.cc:14:1: error: extended character   is not valid in an identifier
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |     return 0;
      | ^
a.cc:16:1: error: extended character   is not valid in an identifier
a.cc:16:1: error: extended character   is not valid in an identifier
a.cc:16:1: error: extended character   is not valid in an identifier
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){

int a ;
int i ;
for(i=1;i<10000;i++)
{
cin >> a ;
if(a!=0)
cout<<"Case "<< i <<": "<< a <<endl;
else
break;
}

return 0;
}


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include <iostream>

int main() {
    //for( int i = 1 ; i <= 10000 ; i++ ) {
    while( true ) {
        int x ;
        std::cin >> x ;
        
        if( x == 0 ) {
            break ;
        }
        
        std::cout << "Case " << i << ": " << x << std::endl ;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'i' was not declared in this scope
   13 |         std::cout << "Case " << i << ": " << x << std::endl ;
      |                                 ^
Language: C++

#include <iostream>
int main() {
	int i, x;
	for (i = x; i > x; ++i) {
		std::cout << "Case i: x" << std::endl;

while(true){
    x = sc.nextInt();
    if ( x == 0 ) break;
}
　　　　return 0;
}


Compiler output:
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　　　　return 0;
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:9: error: 'sc' was not declared in this scope
    8 |     x = sc.nextInt();
      |         ^~
a.cc:11:1: error: '\U00003000\U00003000\U00003000\U00003000return' was not declared in this scope
   11 | 　　　　return 0;
      | ^~~~~~~~~~~~~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:2:12: note: to match this '{'
    2 | int main() {
      |            ^
Language: C++

#include <iostream>
int main() {
	int i, x;
	for (i = x; i > x; ++i) {
		std::cout << "Case i: x" << std::endl;



Compiler output:
a.cc: In function 'int main()':
a.cc:5:55: error: expected '}' at end of input
    5 |                 std::cout << "Case i: x" << std::endl;
      |                                                       ^
a.cc:4:33: note: to match this '{'
    4 |         for (i = x; i > x; ++i) {
      |                                 ^
a.cc:5:55: error: expected '}' at end of input
    5 |                 std::cout << "Case i: x" << std::endl;
      |                                                       ^
a.cc:2:12: note: to match this '{'
    2 | int main() {
      |            ^
Language: C++

package main

import "fmt"

func main() {
	var a int
	i := 1
	for {
		fmt.Scan(&a)
		if a == 0 {
			break
		}
		fmt.Printf("Case %d:%d\n", i, a)
		i++
	}
}



Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~