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

#include<iostream>
#include<vector>
int main(){
int a=0;
std::vector<int> v(0);
while(true){
++a;
v.resize(a);
std::cin>>v[a-1]
if (v[a-1] == 0) { break; }
}
for(int i=0;i<a;++i){
std::cout<<"Case "<<i+1<<": "<<v[a-1]<<std::endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'if'
    9 | std::cin>>v[a-1]
      |                 ^
      |                 ;
   10 | if (v[a-1] == 0) { break; }
      | ~~
Language: C++

#include<iostream>
#include<vector>
int main(){
int a=0;
std::vector<int> v(0);
while(true){
++a;
v.resize(a);
std::cin>>v[a-1]
if (v[a-1] == 0) { break; }
}
for (int i = 0; i<a-1; ++i) {
	std::cout << "Case " << i + 1 << ": " << v[i] << std::endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'if'
    9 | std::cin>>v[a-1]
      |                 ^
      |                 ;
   10 | if (v[a-1] == 0) { break; }
      | ~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int x;
cin>>x;
while(!(x==0)){
int i=0;
++i;
cout<<"case "<<i<<": "<<x
cin<<x;
}
if(x==0){
break;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'cin'
    9 | cout<<"case "<<i<<": "<<x
      |                          ^
      |                          ;
   10 | cin<<x;
      | ~~~                       
a.cc:13:1: error: break statement not within loop or switch
   13 | break;
      | ^~~~~
Language: C++

#include<iostram>
using namespace std;

int main(){
    int x, i = 0;
    while(1){
        cin >> x;

        if(x == 0)break;

        i++;
        cout << "Case " << i << ": " <<  x <<endl;
    }
    return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
    int x; 
   int main () {
   while(1) {cout<<"Case i: x<<endl;" }
  





    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected ';' before '}' token
    5 |    while(1) {cout<<"Case i: x<<endl;" }
      |                                      ^~
      |                                      ;
Language: C++

#include<iostream>
using namespace std;

int i,x;

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

		}

}



return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '=' token
    9 |         while(=0){
      |               ^
Language: C++

#include<iostream>
using namespace std;

int i,x;
x=0;

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

		}

}



return 0;

}

Compiler output:
a.cc:5:1: error: 'x' does not name a type
    5 | x=0;
      | ^
Language: C++

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





    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before ':' token
    8 |         else{cout<<x:}
      |                     ^
      |                     ;
Language: C++

int main(){
  int x;
  
  while(1){

    cin >> x;
    
    if(x = 0) break;
      
    cout << "Case " << i << ": " << x << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> x;
      |     ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Case " << i << ": " << x << endl;
      |     ^~~~
a.cc:10:24: error: 'i' was not declared in this scope
   10 |     cout << "Case " << i << ": " << x << endl;
      |                        ^
a.cc:10:42: error: 'endl' was not declared in this scope
   10 |     cout << "Case " << i << ": " << x << endl;
      |                                          ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     while(x[i]!="\0")
      |           ~~~~^~~~~~
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     while(x[i]!="\0")
      |           ~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: storage size of 'x' isn't known
    4 |     int x[];
      |         ^
a.cc:11:13: error: 's' was not declared in this scope
   11 |     while(x[s]!="\0")
      |             ^
Language: C++

#include <stdio.h>
using namespace std;

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

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

}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:27: error: 'ch' was not declared in this scope
   13 |   {printf("Case %d: %s",i,ch); i++;}
      |                           ^~
Language: C++

#include <stdio.h>
using namespace std;

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

for(int j=0;j<10;j++)
{
 num = gets(); 
 printf("Case %d: %s",i,num);
 i++;
}

}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:8: error: 'gets' was not declared in this scope; did you mean 'getw'?
   11 |  num = gets();
      |        ^~~~
      |        getw
Language: C++

#include <stdio.h>
using namespace std;

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

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

}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:2: error: 'cin' was not declared in this scope
   11 |  cin >> num;
      |  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:13:2: error: 'cout' was not declared in this scope
   13 |  cout << "Case " << i << ':' << num << endl;
      |  ^~~~
a.cc:13:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:40: error: 'endl' was not declared in this scope
   13 |  cout << "Case " << i << ':' << num << endl;
      |                                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include <stdio.h>
using namespace std;

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

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

}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:2: error: 'cin' was not declared in this scope
   11 |  cin >> num;
      |  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:13:2: error: 'cout' was not declared in this scope
   13 |  cout << "Case " << i << ": " << num << endl;
      |  ^~~~
a.cc:13:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:41: error: 'endl' was not declared in this scope
   13 |  cout << "Case " << i << ": " << num << endl;
      |                                         ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int main(){
int a[100000]
for(int i=1;i<100000;i++){
cin>>a[i];
b++;
if(a[i]==0){
break;
}
}
for(int i=1;i<b;i++){
cout<<"case "<<i<<": "<<a[i]<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'for'
    6 | for(int i=1;i<100000;i++){
      | ^~~
a.cc:6:13: error: 'i' was not declared in this scope
    6 | for(int i=1;i<100000;i++){
      |             ^
a.cc:13:15: error: 'b' was not declared in this scope
   13 | for(int i=1;i<b;i++){
      |               ^
a.cc:14:25: error: 'a' was not declared in this scope
   14 | cout<<"case "<<i<<": "<<a[i]<<endl;
      |                         ^
Language: C++

#include <iostream>
using namespace std;

int main(){
int a[100000];
for(int i=1;i<100000;i++){
cin>>a[i];
b++;
if(a[i]==0){
break;
}
}
for(int i=1;i<b;i++){
cout<<"case "<<i<<": "<<a[i]<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'b' was not declared in this scope
    8 | b++;
      | ^
a.cc:13:15: error: 'b' was not declared in this scope
   13 | for(int i=1;i<b;i++){
      |               ^
Language: C++

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

    int input,No;
    No=1;
	while(){
		cin>>input;
		if(input==0){
			break;
		}else{
			cout<<"Case"<<" "<<No<<": "<<input<<endl;
			input=0;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before ')' token
    7 |         while(){
      |               ^
Language: C++

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

    int input,No;
    No=1;
	while(){
		cin>>input;
		if(input==0){
			break;
		}else{
			cout<<"Case"<<" "<<No<<": "<<input<<endl;
			No+=1;
			input=0;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before ')' token
    7 |         while(){
      |               ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdio.h>

//#include <map>

using namespace std;

int main()
{
	vector<int> vInt;
	int t;

	while (cin >> t)
	{
		if (t == 0)break;
		vInt.push_back(t);
	}

	for (int i = 0; i < vInt.size(); i++)
	{
		char ch[20];
		sprintf_s(ch, "Case %d: %d", i + 1, vInt.at(i));
		cout << ch << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
   26 |                 sprintf_s(ch, "Case %d: %d", i + 1, vInt.at(i));
      |                 ^~~~~~~~~
      |                 sprintf
Language: C++

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected ';' before '}' token
    7 | i++
      |    ^
      |    ;
    8 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'ture' was not declared in this scope
    7 |   while(ture){
      |         ^~~~
a.cc:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

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

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

include <iostream>
using namespace std;

int main()
{
    int tmp , i;
    cin >> tmp;
    for(i = 1; tmp != 0; i++){
        cout << "Case " << i << ": " << tmp << '\n';
        cin >> tmp;
    }

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> tmp;
      |     ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Case " << i << ": " << tmp << '\n';
      |         ^~~~
Language: C++

m = map(int,raw_input().split())
for i in range(len(m)+1):
 if(m[i-1]==0):
  break
 print"Case %s* %s",%(i,m[i-1])

Compiler output:
a.cc:1:1: error: 'm' does not name a type
    1 | m = map(int,raw_input().split())
      | ^
Language: C++

m = map(int,raw_input().split())
for i in range(1):
 if(m[i-1]==0):
  break
 print"Case %s* %s",%(i,m[i-1])

Compiler output:
a.cc:1:1: error: 'm' does not name a type
    1 | m = map(int,raw_input().split())
      | ^
Language: C++


i=0
 while 1:
  x = int(raw_input())
  if x == 0:
    break
  i+=1
  print 'Case %d: %d' % (i,x)
 

Compiler output:
a.cc:8:9: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    8 |   print 'Case %d: %d' % (i,x)
      |         ^~~~~~~~~~~~~
a.cc:2:1: error: 'i' does not name a type
    2 | i=0
      | ^
Language: C++

import Control.Monad

main = do
  a <- readLn
  when (not(a == 0)) $ putStrLn (show a) >>= \_ -> main

Compiler output:
a.cc:5:46: error: stray '\' in program
    5 |   when (not(a == 0)) $ putStrLn (show a) >>= \_ -> main
      |                                              ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Monad
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected ',' or ';' before 'while'
    8 | while(1){
      | ^~~~~
Language: C++

i = 0
while 1:
    i+=1
    v = raw_input()
    if v == '0':
       break
    print ('Case {}: {}'.format(i,v))

Compiler output:
a.cc:7:12: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    7 |     print ('Case {}: {}'.format(i,v))
      |            ^~~~~~~~~~~~~
a.cc:1:1: error: 'i' does not name a type
    1 | i = 0
      | ^
Language: C++

#include<iostream>
using namespace std;

main(){
	int a,b=1;
	for(
		cin >> a;
		if(a==0){
			break;
		}
		else{
			cout << "Case" << " "<< b <<": "<< a<<"\n";
		}
	)
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before 'if'
    8 |                 if(a==0){
      |                 ^~
a.cc:7:26: error: expected ';' before 'if'
    7 |                 cin >> a;
      |                          ^
      |                          ;
    8 |                 if(a==0){
      |                 ~~        
a.cc:8:17: error: expected primary-expression before 'if'
    8 |                 if(a==0){
      |                 ^~
a.cc:7:26: error: expected ')' before 'if'
    7 |                 cin >> a;
      |                          ^
      |                          )
    8 |                 if(a==0){
      |                 ~~        
a.cc:6:12: note: to match this '('
    6 |         for(
      |            ^
a.cc:14:9: error: expected primary-expression before ')' token
   14 |         )
      |         ^
Language: C++

#include<iostream>
using namespace std;

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

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

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

int main(void)
{
	int x[1000], i = 0;
	do {
		scanf_s("%d", &x[i]);
		i++;
	} while (x[i - 1] != 0);

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

	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", &x[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

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

int main(void)
{
	int x[1000], i = 0;
        while(1){
          cin >> x[i];
          if(x[i] == 0) break;
          x++;
        }

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: lvalue required as increment operand
   11 |           x++;
      |           ^
Language: C++

#include <iostream>

using namespace std;

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

  while(1){
    cin >> x;
    if(x!=0){
      cout << Case << ' ' << i << ":" << ' ' << x << endl;
      i++;
    } else break;
  }
}

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

#include <iostream>

using namespace std;

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

  while(1){
    cin >> x;
    if(x!=0){
      cout << Case << ' ' << i << ':' << ' ' << x << endl;
      i++;
    } else break;
  }
}

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

#include<iostream>

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

Compiler output:
a.cc:11:37: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
a.cc: In function 'int main()':
a.cc:11:37: error: expected primary-expression before '?' token
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
      |                                     ^
a.cc:11:38: error: expected primary-expression before '?' token
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
      |                                      ^
a.cc:11:39: error: expected primary-expression before '<<' token
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
      |                                       ^~
a.cc:11:68: error: expected ':' before ';' token
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
      |                                                                    ^
      |                                                                    :
a.cc:11:68: error: expected primary-expression before ';' token
a.cc:11:68: error: expected ':' before ';' token
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
      |                                                                    ^
      |                                                                    :
a.cc:11:68: error: expected primary-expression before ';' token
a.cc:11:68: error: expected ':' before ';' token
   11 |                 std::cout << "Case"???<< i << ':' << x << std::endl;
      |                                                                    ^
      |                                                                    :
a.cc:11:68: error: expected primary-expression before ';' token
Language: C++


object Main {
	def main(args: Array[String]): Unit = {
			val in = new java.util.Scanner(System.in)
			var result = ""
			var i = 0 
			import scala.util.control.Breaks
			val b = new Breaks
			b.breakable{
				while(true){
					i+=1
							val a = in.nextInt()
							if(a == 0) b.break
							result+="Case "+ i +": "+a+"\n"
				}
			}
			printf(result)
	}
}

Compiler output:
a.cc:2:1: error: 'object' does not name a type
    2 | object Main {
      | ^~~~~~
Language: C++

#include <string>
#include <algorithm>
#include <vector>
using namespace std;


int main()
{
 int x;
 int n=1;
 

 while ( cin >> x && x!=0 )
 {
 	cout << "Case " << n << ": " << x << endl;
 	n++;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'cin' was not declared in this scope
   13 |  while ( cin >> x && x!=0 )
      |          ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <vector>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Case " << n << ": " << x << endl;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:46: error: 'endl' was not declared in this scope
   15 |         cout << "Case " << n << ": " << x << endl;
      |                                              ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <vector>
  +++ |+#include <ostream>
    4 | using namespace std;
Language: C++

import java.util.*;
class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a, c = 0;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |               ^~~~~~~
      |               :
a.cc:3:34: error: 'String' has not been declared
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                  ^~~~~~
a.cc:3:43: error: expected ',' or '...' before 'args'
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                           ^~~~
a.cc:3:47: error: expected ';' at end of member declaration
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                               ^
      |                                                ;
a.cc:3:49: error: 'throws' does not name a type
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                                 ^~~~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
Language: C++


class Main{
	public static void main(String[] args){
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in)); //?¨??????\???
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")){   //???????????°
				System.out.println("Case" + count + ":" + str);  //"Case ????????\?????°???"?????¢?????§??????
				count++;    
				str = br.readLine();
		}
	}
}
		

Compiler output:
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main(String[] args){
      |               ^~~~~~~
      |               :
a.cc:3:33: error: 'String' has not been declared
    3 |         public static void main(String[] args){
      |                                 ^~~~~~
a.cc:3:42: error: expected ',' or '...' before 'args'
    3 |         public static void main(String[] args){
      |                                          ^~~~
a.cc:14:2: error: expected ';' after class definition
   14 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:17: error: 'BufferedReader' was not declared in this scope
    4 |                 BufferedReader br =
      |                 ^~~~~~~~~~~~~~
a.cc:6:17: error: 'String' was not declared in this scope
    6 |                 String str = br.readLine();
      |                 ^~~~~~
a.cc:8:24: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |                 while(!str.equals("0")){   //???????????°
      |                        ^~~
      |                        std
a.cc:9:33: error: 'System' was not declared in this scope
    9 |                                 System.out.println("Case" + count + ":" + str);  //"Case ????????\?????°???"?????¢?????§??????
      |                                 ^~~~~~
a.cc:9:67: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    9 |                                 System.out.println("Case" + count + ":" + str);  //"Case ????????\?????°???"?????¢?????§??????
      |                                                    ~~~~~~~~~~~~~~ ^ ~~~
      |                                                           |         |
      |                                                           |         const char [2]
      |                                                           const char*
a.cc:11:39: error: 'br' was not declared in this scope
   11 |                                 str = br.readLine();
      |                                       ^~
Language: C++

/*
 * ???????????§??????????´? EightQueen.java
 *
 * Copyright(C) 2016 Nagasaki Team All Rights Reserved.
 */
/**
 * ??°?????????????????????(ITP1_9-B)
 *
 * @author Shirahama
 * @version 1.00
 */

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
	/**
	 *??°?????????????????????
	 */
	public static void main(String[] args) throws IOException { //try????????\????????????
		BufferedReader br = 
		new BufferedReader(new InputStreamReader(System.in));
		
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")){					//???????????°
			System.out.println("Case " + count + ":"  + str);	//"Case 1:??\?????°???"?????¢?????§??????
			count++;				//?????°????????????????????????
			str = br.readLine();	//??????????????????
		}
	}
}

Compiler output:
a.cc:13:1: error: 'import' does not name a type
   13 | import java.io.IOException;
      | ^~~~~~
a.cc:13:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:14:1: error: 'import' does not name a type
   14 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:14:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:15:1: error: 'import' does not name a type
   15 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:15:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:21:15: error: expected ':' before 'static'
   21 |         public static void main(String[] args) throws IOException { //try????????\????????????
      |               ^~~~~~~
      |               :
a.cc:21:33: error: 'String' has not been declared
   21 |         public static void main(String[] args) throws IOException { //try????????\????????????
      |                                 ^~~~~~
a.cc:21:42: error: expected ',' or '...' before 'args'
   21 |         public static void main(String[] args) throws IOException { //try????????\????????????
      |                                          ^~~~
a.cc:21:46: error: expected ';' at end of member declaration
   21 |         public static void main(String[] args) throws IOException { //try????????\????????????
      |                                              ^
      |                                               ;
a.cc:21:48: error: 'throws' does not name a type
   21 |         public static void main(String[] args) throws IOException { //try????????\????????????
      |                                                ^~~~~~
a.cc:33:2: error: expected ';' after class definition
   33 | }
      |  ^
      |  ;
Language: C++

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  while(9){
   int x = nextInt();
   if(x == 0){
     break;
    }
    System.out.println("Case i: %d", x);
  }
 }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x[];
    x[1] =1;
    for(int i = 1; x[i-1] != 0;i++)[
        cin >> x[i];
        cout << "Case " << i <<": " << x[i] << endl;
    ]
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: storage size of 'x' isn't known
    5 |     int x[];
      |         ^
a.cc:8:9: warning: capture of variable 'std::cin' with non-automatic storage duration
    8 |         cin >> x[i];
      |         ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::istream std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:12: error: expected ',' before '>>' token
    8 |         cin >> x[i];
      |            ^~~
      |            ,
a.cc:8:13: error: expected identifier before '>>' token
    8 |         cin >> x[i];
      |             ^~
a.cc:8:20: error: expected ']' before ';' token
    8 |         cin >> x[i];
      |                    ^
      |                    ]
a.cc: In lambda function:
a.cc:8:20: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:9:28: error: 'i' was not declared in this scope
    9 |         cout << "Case " << i <<": " << x[i] << endl;
      |                            ^
a.cc:10:5: error: expected primary-expression before ']' token
   10 |     ]
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x[10];
    x[1] =1;
    for(int i = 1; x[i-1] != 0;i++)[
        cin >> x[i];
        cout << "Case " << i <<": " << x[i] << endl;
    ]
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: warning: capture of variable 'std::cin' with non-automatic storage duration
    8 |         cin >> x[i];
      |         ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::istream std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:12: error: expected ',' before '>>' token
    8 |         cin >> x[i];
      |            ^~~
      |            ,
a.cc:8:13: error: expected identifier before '>>' token
    8 |         cin >> x[i];
      |             ^~
a.cc:8:20: error: expected ']' before ';' token
    8 |         cin >> x[i];
      |                    ^
      |                    ]
a.cc: In lambda function:
a.cc:8:20: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:9:28: error: 'i' was not declared in this scope
    9 |         cout << "Case " << i <<": " << x[i] << endl;
      |                            ^
a.cc:10:5: error: expected primary-expression before ']' token
   10 |     ]
      |     ^
Language: C++

#include <stdio.h>

int main()
{
    int a;
    int b = 0;
    while()
    {
        b++;
        scanf("%d",a);
        printf("Case %d: %d\n",b,a);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before ')' token
    7 |     while()
      |           ^
Language: C++

#include <iostream>
int main(){
while(true){
int t;
int i = 0;
++i;
std::cin >> t;
if( !i ){
break;
}
std::cout << ""Case " << i << ": " << t << std::endl;
}
}

Compiler output:
a.cc:11:34: warning: missing terminating " character
   11 | std::cout << ""Case " << i << ": " << t << std::endl;
      |                                  ^
a.cc:11:34: error: missing terminating " character
   11 | std::cout << ""Case " << i << ": " << t << std::endl;
      |                                  ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:21: error: unable to find string literal operator 'operator""Case' with 'const char [10]', 'long unsigned int' arguments
   11 | std::cout << ""Case " << i << ": " << t << std::endl;
      |                     ^~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    while(1)
    int x;
    cin>>x;
    if ( x == 0 ) break;
    cout<<x<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'x' was not declared in this scope
    6 |     cin>>x;
      |          ^
a.cc:7:19: error: break statement not within loop or switch
    7 |     if ( x == 0 ) break;
      |                   ^~~~~
a.cc: At global scope:
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <stdio.h>

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: array must be initialized with a brace-enclosed initializer
    5 |   int i = 0,x[255] = 0,sum =0;
      |                      ^
Language: C++

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

Compiler output:
a.cc:1:2: error: stray '\' in program
    1 | v\ #include <iostream>
      |  ^
a.cc:1:4: error: stray '#' in program
    1 | v\ #include <iostream>
      |    ^
a.cc:1:1: error: 'v' does not name a type
    1 | v\ #include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:7:25: error: 'cin' was not declared in this scope
    7 |                         cin >> x;
      |                         ^~~
a.cc:10:25: error: 'cout' was not declared in this scope
   10 |                         cout << "Case" << " " << y << ":" << x << endl;
      |                         ^~~~
a.cc:10:67: error: 'endl' was not declared in this scope
   10 |                         cout << "Case" << " " << y << ":" << x << endl;
      |                                                                   ^~~~
Language: C++

#include <iostream>


int main() {
  int intput; 
  while (std::cin >> input) {
    if (input == 0) std::cout << "Case: " << input << std::endl;
    else break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'input' was not declared in this scope; did you mean 'intput'?
    6 |   while (std::cin >> input) {
      |                      ^~~~~
      |                      intput
Language: C++

#include <iostream>


int main() {
  int intput, count=0;
   
  while (std::cin >> input) {
    if (input == 0) std::cout << "Case " << ++count << ": " << input << std::endl;
    else break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'input' was not declared in this scope; did you mean 'intput'?
    7 |   while (std::cin >> input) {
      |                      ^~~~~
      |                      intput
Language: C++

#include <iostream>


int main() {
  int intput, count=0;
   
  while (std::cin >> input) {
    if (input != 0) std::cout << "Case " << ++count << ": " << input << std::endl;
    else break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'input' was not declared in this scope; did you mean 'intput'?
    7 |   while (std::cin >> input) {
      |                      ^~~~~
      |                      intput
Language: C++

import java.io.*;

class Main {
	public static void main (String[] args) throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		StringBuilder sb = new StringBuilder();  //??????????????????
		int i = 1;

		while(true){
		int a = Integer.parseInt(br.readLine());
		if( a == 0 ){
		break;
			}

		sb.append("case").append(Integer.toString(i++)).append(":").append(Integer.toString(a)).append("/n");
	 	}
	System.out.println(sb);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main (String[] args) throws IOException{
      |               ^~~~~~~
      |               :
a.cc:4:34: error: 'String' has not been declared
    4 |         public static void main (String[] args) throws IOException{
      |                                  ^~~~~~
a.cc:4:43: error: expected ',' or '...' before 'args'
    4 |         public static void main (String[] args) throws IOException{
      |                                           ^~~~
a.cc:4:47: error: expected ';' at end of member declaration
    4 |         public static void main (String[] args) throws IOException{
      |                                               ^
      |                                                ;
a.cc:4:49: error: 'throws' does not name a type
    4 |         public static void main (String[] args) throws IOException{
      |                                                 ^~~~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
Language: C++

#include<iostream>
    
using namespace std;
    
int main()
{
    int i, n;
    i = 1;

    do{
    cin >> n;
    if(n != 0){
        cout << "Case " << i << ": " << n << endl;
        i++;
    }

    }while(n != 0)
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before 'return'
   17 |     }while(n != 0)
      |                   ^
      |                   ;
   18 | 
   19 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
using namespace std; 

int main(void){

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

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

#include <stdio.h>

int main(void){
int a[9999]
int i = 0;
while(1){

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'int'
    5 | int i = 0;
      | ^~~
a.cc:8:13: error: 'a' was not declared in this scope
    8 | scanf("%d",&a[i]);
      |             ^
a.cc:8:15: error: 'i' was not declared in this scope
    8 | scanf("%d",&a[i]);
      |               ^
a.cc:15:17: error: 'i' was not declared in this scope
   15 | for (j = 0; j < i; j ++){
      |                 ^
a.cc:16:24: error: 'a' was not declared in this scope
   16 | printf("case %d: %d",j,a[j])
      |                        ^
Language: C++

#include <stdio.h>

int main(void){
int a[9999]
int i = 0;
while(1){

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'int'
    5 | int i = 0;
      | ^~~
a.cc:8:13: error: 'a' was not declared in this scope
    8 | scanf("%d",&a[i]);
      |             ^
a.cc:8:15: error: 'i' was not declared in this scope
    8 | scanf("%d",&a[i]);
      |               ^
a.cc:15:17: error: 'i' was not declared in this scope
   15 | for (j = 0; j < i; j ++){
      |                 ^
a.cc:16:24: error: 'a' was not declared in this scope
   16 | printf("case %d: %d",j,a[j]);
      |                        ^
Language: C++

#include <stdio.h>

int main(void){
int a[9999];
int i = 0;
while(1){

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: expected ';' before '}' token
   12 | i++
      |    ^
      |    ;
   13 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d", &a[i]);
      |         ^~~~~
a.cc:14:9: error: 'printf' was not declared in this scope
   14 |         printf("Case %d: %d\n", j + 1, a[j]);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d", &x[i]);
      |         ^~~~~
a.cc:14:9: error: 'printf' was not declared in this scope
   14 |         printf("Case %d: %d\n", j, x[j - 1]);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: storage size of 'a' isn't known
    4 |     int a[];
      |         ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: invalid types 'int[int]' for array subscript
    9 |         scanf("%d",&a[i]);
      |                      ^
a.cc:10:14: error: invalid types 'int[int]' for array subscript
   10 |         if (a[i] == 0){
      |              ^
a.cc:17:39: error: invalid types 'int[int]' for array subscript
   17 |         printf("case %d: %d\n",j + 1,a[j]);
      |                                       ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp8
{
    class Program
    {
        static void Main(string[] args)
        {
            int b = 1;
            while (true)
            {
                int a = int.Parse(Console.ReadLine()); ;
                if (a == 0) break;
                else        Console.WriteLine("case{0}: {1}",b,a);


                b++;
            }

        }

       
        
            
        }
    }

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:28:10: error: expected ';' after class definition
   28 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ConsoleApp8::Program::Main(int*)':
a.cc:15:25: error: expected primary-expression before 'int'
   15 |                 int a = int.Parse(Console.ReadLine()); ;
      |                         ^~~
a.cc:17:29: error: 'Console' was not declared in this scope
   17 |                 else        Console.WriteLine("case{0}: {1}",b,a);
      |                             ^~~~~~~
Language: C++

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

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

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

	}
	return 0;
}

Compiler output:
a.cc:3:9: error: expected unqualified-id before 'while'
    3 |         while (i<= 10000){
      |         ^~~~~
a.cc:16:9: error: expected unqualified-id before 'return'
   16 |         return 0;
      |         ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

	}
	return 0;
}

Compiler output:
a.cc:3:9: error: expected unqualified-id before 'while'
    3 |         while (x<= 10000){
      |         ^~~~~
a.cc:16:9: error: expected unqualified-id before 'return'
   16 |         return 0;
      |         ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++


#include<iostream>

using namespace std;

int main(void){

	int input[10000];
	
	for (int unsigned i = 0; i < input.size(); i++){
		cin >> input[i];
		
		if (input[i] == 0){
			break;
		}
		
		cout << "Case " << i + 1 << ": " << input[i] << endl;
	}


		
		
		


	
	//system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:44: error: request for member 'size' in 'input', which is of non-class type 'int [10000]'
   10 |         for (int unsigned i = 0; i < input.size(); i++){
      |                                            ^~~~
Language: C++

#include <iostream>

using namespace std;

int x;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'x' was not declared in this scope
    5 |     cin >> x;
      |            ^