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

using System;

public class Test
{
	public static void Main()
	{
            int case_num = 1; //case?????°
            int x = 1;//??\??????
            while (x!=0)//???????????????
            {
                x = int.Parse(Console.ReadLine());
                if (x==0) {???//0??\????????????
                    
                }
                else
                {
                    Console.WriteLine("Case {0}: {1}",case_num,x);
                    case_num += 1;
                }
            }
	}
}

Compiler output:
a.cc:12:29: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   12 |                 if (x==0) {???//0??\????????????
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Test
      | ^~~~~~
Language: C++

using System;

public class Test
{
	public static void Main()
	{
            int case_num = 1; 
            int x = 1;
            while (true)
            {
                x = int.Parse(Console.ReadLine());
                if (x==0) {???
                    break;
                }
                else
                {
                    Console.WriteLine("Case {0}: {1}",case_num,x);
                    case_num += 1;
                }
            }
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Test
      | ^~~~~~
Language: C++

main(){
int i,x,y;
for ( i=0 ; y=0 ; i++ ){
scanf("%d",&y);
printf("case %d %d\n",i,y);

}
   
  return 0;
}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf' was not declared in this scope
    4 | scanf("%d",&y);
      | ^~~~~
a.cc:5:1: error: 'printf' was not declared in this scope
    5 | printf("case %d %d\n",i,y);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){
Language: C++

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

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

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

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

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

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

count = 0
while True:
    x=raw_input()
    count += 1
    if x == '0':
      break
    print('Case' + count + ': ' + x)  

    
    
    

Compiler output:
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('Case' + count + ': ' + x)
      |           ^~~~~~
a.cc:7:28: warning: multi-character character constant [-Wmultichar]
    7 |     print('Case' + count + ': ' + x)
      |                            ^~~~
a.cc:1:1: error: 'count' does not name a type
    1 | count = 0
      | ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int i=1;
	int n=0;
	while(i<=10000){
		scanf(%d,&n);
		cout<<"Case "<<i<<"; "<<n<<endl;
	i++}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected primary-expression before '%' token
   10 |                 scanf(%d,&n);
      |                       ^
a.cc:10:24: error: 'd' was not declared in this scope
   10 |                 scanf(%d,&n);
      |                        ^
a.cc:12:12: error: expected ';' before '}' token
   12 |         i++}
      |            ^
      |            ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int i=1;
	int n=0;
	while(i<=10000){
		scanf(%d,&n);
		cout<<"Case "<<i<<"; "<<n<<endl;
	i++???}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected primary-expression before '%' token
   10 |                 scanf(%d,&n);
      |                       ^
a.cc:10:24: error: 'd' was not declared in this scope
   10 |                 scanf(%d,&n);
      |                        ^
a.cc:12:13: error: expected primary-expression before '?' token
   12 |         i++???}
      |             ^
a.cc:12:14: error: expected primary-expression before '?' token
   12 |         i++???}
      |              ^
a.cc:12:15: error: expected primary-expression before '}' token
   12 |         i++???}
      |               ^
a.cc:12:15: error: expected ':' before '}' token
   12 |         i++???}
      |               ^
      |               :
a.cc:12:15: error: expected primary-expression before '}' token
a.cc:12:15: error: expected ':' before '}' token
   12 |         i++???}
      |               ^
      |               :
a.cc:12:15: error: expected primary-expression before '}' token
a.cc:12:15: error: expected ':' before '}' token
   12 |         i++???}
      |               ^
      |               :
a.cc:12:15: error: expected primary-expression before '}' token
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int i=1;
	int n=0;
	if(n>0){
	while(i){
		scanf(%d,&n);
		switch(n){
	case i:n;
	break;
	i++;}}
		
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected primary-expression before '%' token
   11 |                 scanf(%d,&n);
      |                       ^
a.cc:11:24: error: 'd' was not declared in this scope
   11 |                 scanf(%d,&n);
      |                        ^
a.cc:13:14: error: the value of 'i' is not usable in a constant expression
   13 |         case i:n;
      |              ^
a.cc:7:13: note: 'int i' is not const
    7 |         int i=1;
      |             ^
a.cc:13:14: error: the value of 'i' is not usable in a constant expression
   13 |         case i:n;
      |              ^
a.cc:7:13: note: 'int i' is not const
    7 |         int i=1;
      |             ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

import java.io.*; 
class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
br.close();
}
}

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:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args) throws IOException{
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args) throws IOException{
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args) throws IOException{
      |                                  ^~~~
a.cc:3:38: error: expected ';' at end of member declaration
    3 | public static void main(String[] args) throws IOException{
      |                                      ^
      |                                       ;
a.cc:3:40: error: 'throws' does not name a type
    3 | public static void main(String[] args) throws IOException{
      |                                        ^~~~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
Language: C++

#include <iostream>

using namespace std;

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


		
}

Compiler output:
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int x;

    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:28: error: 'i' was not declared in this scope
   13 |         cout << "Case " << i << ": " << x << endl;
      |                            ^
Language: C++

#include <iostream>

using namespace std;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected unqualified-id before 'case'
    8 |     int case = 0;
      |         ^~~~
a.cc:10:11: error: expected primary-expression before 'case'
   10 |         ++case;
      |           ^~~~
a.cc:11:28: error: expected primary-expression before 'case'
   11 |         cout << "Case " << case << ": " << n << endl;
      |                            ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int i=0;
  int y = 0;
  int num[10000];
  for(int i=0; i<10000; i++){
    cin >> x;
    y += 1;
    if (num[i] == 0)break;
    num[i] = x;
  }

  for(int h=0; h<y-1; h++){
  cout << "Case " << h+1 << ": " << num[h] << endl;
  }
  return 0;
}

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

#include <iostream>
using namespace std;
int main() {
  int i=0;
  int y = 0;
  int num[10000];
  for(int i=0; i<10000; i++){
    cin >> x;
  y += 1;
    if (num[i] == 0)break;
    num[i] = x;
  }

  for(int h=0; h<y; h++){
  cout << "Case " << h+1 << ": " << num[h] << endl;
  }
  return 0;
}

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

#include <iostream>
using namespace std;
int main() {
  int i=0;
  int y = 0;
  int num[10000];
  for(int i=0; i<10000; i++){
    cin >> x;
    if (x == 0)break;
    num[i] = x;
  }

  for(int h=0; h<i; h++){
  cout << "Case " << h+1 << ": " << num[h] << endl;
  }
  return 0;
}

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

#include <iostream>
 
using namespace std;



int main(void){

  int c=0;

  while(c != 0){
     cin >> c;
     cout << "Case " << i << ": " << c << endl;
  }

return 0;
}

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

#include <iostream>
 
using namespace std;



int main(void){

  int x=0;

  for(int i=0; x != 0; i++){
     cin >> x;
     cout << "Case " << i << ": " << c << endl;
  }

return 0;
}

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

#include <iostream>
 
using namespace std;



int main(void){

  int x=10001;

  for(int i=0; x != 0; i++){
     cin >> x;
     cout << "Case " << i << ": " << c << endl;
  }

return 0;
}

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

#include <iostream>
#incldue <string.h> 

using namespace std;



int main(void){

  int x=10001;

  for(int i=0; x != 0; i++){
     memset(x,0,sizeof(int));
     cin >> x;
     cout << "Case " << i << ": " << x << endl;
  }

return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue <string.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:13:6: error: 'memset' was not declared in this scope
   13 |      memset(x,0,sizeof(int));
      |      ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #incldue <string.h>
Language: C++

#include <iostream>
#include <string.h> 

using namespace std;



int main(void){

  int x=10001;

  for(int i=0; x != 0; i++){
     memset(x,0,sizeof(int));
     cin >> x;
     cout << "Case " << i << ": " << x << endl;
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: invalid conversion from 'int' to 'void*' [-fpermissive]
   13 |      memset(x,0,sizeof(int));
      |             ^
      |             |
      |             int
In file included from a.cc:2:
/usr/include/string.h:61:28: note:   initializing argument 1 of 'void* memset(void*, int, size_t)'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C++

#include <iostream>
#include <string.h> 

using namespace std;



int main(void){

  int x=10001;

  for(int i=0; x != 0; i++){
     memset(x,0,sizeof(x));
     cin >> x;
     cout << "Case " << i << ": " << x << endl;
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: invalid conversion from 'int' to 'void*' [-fpermissive]
   13 |      memset(x,0,sizeof(x));
      |             ^
      |             |
      |             int
In file included from a.cc:2:
/usr/include/string.h:61:28: note:   initializing argument 1 of 'void* memset(void*, int, size_t)'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C++

#include <iostream>
#include <string.h> 

using namespace std;



int main(void){

  int x;

  for(int i=0; x != 0; i++){
     memset(x,0,sizeof(x));
     cin >> x;
     cout << "Case " << i << ": " << x << endl;
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: invalid conversion from 'int' to 'void*' [-fpermissive]
   13 |      memset(x,0,sizeof(x));
      |             ^
      |             |
      |             int
In file included from a.cc:2:
/usr/include/string.h:61:28: note:   initializing argument 1 of 'void* memset(void*, int, size_t)'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C++

#include<cstdio> // printf??¨???????????¨???
int main(){
	int x,i=0;
	while(true){ // ????????????
	i++;	//i ?????????????¢??????????
	scanf("%d",&a);	//%d ?????´??°???a?????????&????????????
	if(a) printf("Case %d: %d\n",i,a);???// \n????????????
	else break;

	}
return 0;
}

Compiler output:
a.cc:7:44: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
a.cc: In function 'int main()':
a.cc:6:21: error: 'a' was not declared in this scope
    6 |         scanf("%d",&a); //%d ?????´??°???a?????????&????????????
      |                     ^
a.cc:7:43: error: expected primary-expression before '?' token
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
      |                                           ^
a.cc:7:44: error: expected primary-expression before '?' token
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
      |                                            ^
a.cc:7:45: error: expected primary-expression before '?' token
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
      |                                             ^
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else break;
      |         ^~~~
a.cc:7:46: error: expected ':' before 'else'
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
      |                                              ^
      |                                              :
    8 |         else break;
      |         ~~~~                                  
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else break;
      |         ^~~~
a.cc:7:46: error: expected ':' before 'else'
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
      |                                              ^
      |                                              :
    8 |         else break;
      |         ~~~~                                  
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else break;
      |         ^~~~
a.cc:7:46: error: expected ':' before 'else'
    7 |         if(a) printf("Case %d: %d\n",i,a);???// \n????????????
      |                                              ^
      |                                              :
    8 |         else break;
      |         ~~~~                                  
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else break;
      |         ^~~~
Language: C++

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

	}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'a' was not declared in this scope
    6 |         scanf("%d",&a);
      |                     ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'x' was not declared in this scope
    6 |     scanf("%d", x);
      |                 ^
a.cc:9:11: error: 'True' was not declared in this scope
    9 |   } while(True);
      |           ^~~~
Language: C++

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner stdn = new Scanner(System.in);
		
		int x = 0;
		int i = 0;
		int t = 1;
		
		while(i <= 1000){
			x = stdn.nextInt();
			if(x != 0){
				System.out.println("Case " + t + ": " + x);
			}else if(x == 0){
				break;
			}
			t++;
			i++;
		}
	}
}

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'do'
    6 | i=0
      |    ^
      |    ;
    7 | do{
      | ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'return'
   10 | } while (!(x == 0))
      |                    ^
      |                    ;
   11 | return 0;
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'do'
    6 | i=0
      |    ^
      |    ;
    7 | do{
      | ~~
Language: C++

using namespace std;
int main(void) {
  int x, i;
  i = 0; 
  do {
    cin >> x;
    if (x == 0) break;
    i++;
    cout << "Case " << i << ": " << x << endl;
  } while (x != 0); 
} 

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:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Case " << i << ": " << x << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:42: error: 'endl' was not declared in this scope
    9 |     cout << "Case " << i << ": " << x << endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include "cstdio"

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

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

#include "cstdio"

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

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

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: conflicting declaration 'int x []'
    5 |   int x[];
      |       ^
a.cc:4:7: note: previous declaration as 'int x'
    4 |   int x;
      |       ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |     scanf("%d",&x[i]);
      |                  ^
a.cc:10:33: error: invalid types 'int[int]' for array subscript
   10 |     printf("Case %d: %d\n",i+1,x[i])
      |                                 ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: conflicting declaration 'int x []'
    5 |   int x[];
      |       ^
a.cc:4:7: note: previous declaration as 'int x'
    4 |   int x;
      |       ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |     scanf("%d",&x[i]);
      |                  ^
a.cc:10:33: error: invalid types 'int[int]' for array subscript
   10 |     printf("Case %d: %d\n",i+1,x[i]);
      |                                 ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected ';' before 'if'
    6 |     scanf("%d", &x)
      |                    ^
      |                    ;
    7 |     if(x==0) break;
      |     ~~              
a.cc:8:33: error: expected ';' before '}' token
    8 |     printf("Case %d: %d \n",i,x)
      |                                 ^
      |                                 ;
    9 |   }
      |   ~
Language: C++

import sys

def main():
    a = []
    N = 0
    i = 0
    for line in sys.stdin:
        a.append(int(line))
        N += 1
    for i in range(N):
        print("case "+str(i)+":", a[i],'\n')

if __name__ == "__main__":
    main()

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

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

int main(int argc, char *argv[])
{
    vector<int> v;
    int buff;
    do
    {
        cin >> buff;
        v.push_back(buff);
    } while (buff != 0);

    int count = 1;
    for_each(v.begin(), v.end(), [&count](int x) { cout << "Case " << count << ": " << x << endl; count++; });

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:16:5: error: 'for_each' was not declared in this scope
   16 |     for_each(v.begin(), v.end(), [&count](int x) { cout << "Case " << count << ": " << x << endl; count++; });
      |     ^~~~~~~~
Language: C++

#include <iostream>

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

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

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

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

		i++;
	}
	return 0;
}

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

#include<iostream>
#include<algorithm>
using namespace std;
int main() { 
    int n, x;
    while(cin>>n) {
        int maxv = INT_MIN;
        int minv = INT_MAX;
        while (n--) {
            cin>>x;
            maxv = max(maxv, x - minv);
            minv = min(minv, x);
        }
        cout<<maxv<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'INT_MIN' was not declared in this scope
    7 |         int maxv = INT_MIN;
      |                    ^~~~~~~
a.cc:3:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include<algorithm>
  +++ |+#include <climits>
    3 | using namespace std;
a.cc:8:20: error: 'INT_MAX' was not declared in this scope
    8 |         int minv = INT_MAX;
      |                    ^~~~~~~
a.cc:8:20: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:23: error: 'd' was not declared in this scope
    7 |        printf("Case "%d": "%d"\n", i, x);
      |                       ^
Language: C++

#include <iostream>

using namespace std;

int main ()
{
int a[100];
for (int i = 0; i < 100; i++)
{
cin >> a[i];
cout << "Case" << " " << i + 1 << ':' << " " << a[i] << endl;
}

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

#include <iostream>

using namespace std;

int main ()
{
int a[100];
for (int i = 0; i < 100; i++)
{
cin >> a[i];
cout << "Case" << " " << i + 1 << ':' << " " << a[i] << endl;
if (a[i] == 0)
{
break;
}
}

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

#include <iostream>

using namespace std;

int main ()
{
int a[100];
for (int i = 0; i < 100; i++)
{
cin >> a[i];
if (a[i] == 0)
{
break;
}
cout << "Case" << " " << i + 1 << ':' << " " << a[i] << endl;

}

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

#include <iostream>

using namespace std;

int main ()
{
long a[100];
for (int i = 0; i < 100; i++)
{
if (i > 10000)
{
break;
}
cin >> a[i];
if (a[i] == 0)
{
break;
}
cout << "Case" << " " << i + 1 << ':' << " " << a[i] << endl;

}

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

include <iostream>

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

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

#include <stdio.h>

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'x' was not declared in this scope
    5 | for (i = x; i < 10000; i++){
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	long (int) a[10000];
	int i;
	cin >> a[0];
	while (a[i] != 0){
		cout << "Case " << i << ": " << a[i] << endl;
		i++;
		cin >> a[i];
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected primary-expression before 'long'
    5 |         long (int) a[10000];
      |         ^~~~
a.cc:7:16: error: 'a' was not declared in this scope
    7 |         cin >> a[0];
      |                ^
Language: C++

i=1
while True:
 n=input()
 if int(n)==0:break
 print(f'Case {i}: {n}')

Compiler output:
a.cc:5:9: warning: multi-character literal with 13 characters exceeds 'int' size of 4 bytes
    5 |  print(f'Case {i}: {n}')
      |         ^~~~~~~~~~~~~~~
a.cc:1:1: error: 'i' does not name a type
    1 | i=1
      | ^
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
namespace Domain
{
	class Result
	{
		int value;
	public:
		Result(int value=0):value(value){}
		int disp() {	return  value ;}
		bool isEnd(){return !value;}
	};


}
using namespace Domain;
namespace InterfaceAdapter
{
	class ResultDisp
	{
	public:
		int disp(Result result) {	return result.disp() ;}
	};
	class RectInput
	{
	public :
		void inp(Result& result)
		{
			int w;
			cin >> w;
			Result res(w);
			result=res;
		}
	};

}
using namespace Domain;
using namespace InterfaceAdapter;

namespace UseCase
{
	class Input
	{
	public :
		template <typename X>
		 static void inp(X shapeIn,Result& result)
		{
		   shapeIn.inp(result);
		}
	};
	class Display
	{
		static int count;

	public:
		template <typename U,typename V>
		static void disp(U& result,V& dispType) { 
			cout <<"Case "<<count<<":"<< dispType.disp(result) << endl;
			cout<<endl;
			count++;
		}
	};
	int Display::count=1;
	class CaseOver
	{
	public:
		static void check()
		{
			int cnt=1;
			for(;;){
				Result result;
				RectInput rectInput;
				Input::inp(rectInput,result);
				if(result.isEnd())break;
				
				ResultDisp resultDisp;
				Display::disp(result,resultDisp);
			}
		}
	};
}
using namespace UseCase;
int main()
{
	CaseOver::check();
	return 0;

}

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

#include<iostream>
using namespace std;

int main()
{
	int x, y;
	int n = 1;
	int dx[10000];
	int dy[10000];
	cin >> x >> y;
	if (x != 0)
	{
		dx[n] = x;
		dy[n] = y;
		n++;
		cin >> x >> y;
	}
	if (x == 0 && y == 0)
	{
		for (int i = 1; i < n; i++)
		{
			if (dx[i] <= dy[i])
			{
				cout << dx[i] << " " << dy[i] << "\n";
			}
			if (dy[i] < dx[i])
			{
				cout << dy[i] << " " << dx[i] << "\n";
			}
		}
		return 0;
	}

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

#include <iostream>

int main(){
int num;
int count = 1;
do{
std::cin >> num;
std::cout << "Case " << count << ' '<< num << endl
count += 1;
}while(num != 0)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | std::cout << "Case " << count << ' '<< num << endl
      |                                               ^~~~
      |                                               std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:17: error: expected ';' before '}' token
   10 | }while(num != 0)
      |                 ^
      |                 ;
   11 | }
      | ~
Language: C++

#include <iostream>

int main(){
int num;
int count = 1;
do{
std::cin >> num;
std::cout << "Case " << count << ' '<< num << std::endl
count += 1;
}while(num != 0)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:56: error: expected ';' before 'count'
    8 | std::cout << "Case " << count << ' '<< num << std::endl
      |                                                        ^
      |                                                        ;
    9 | count += 1;
      | ~~~~~                                                   
a.cc:10:17: error: expected ';' before '}' token
   10 | }while(num != 0)
      |                 ^
      |                 ;
   11 | }
      | ~
Language: C++

#include <iostream>

int main(){
int num;
int count = 1;
do{
std::cin >> num;
std::cout << "Case " << count << ' '<< num << std::endl;
count += 1;
}while(num != 0)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before '}' token
   10 | }while(num != 0)
      |                 ^
      |                 ;
   11 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         for(i = 0; i++)
      |             ^
a.cc:7:23: error: expected ';' before ')' token
    7 |         for(i = 0; i++)
      |                       ^
      |                       ;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         for(i = 0; i++)
      |             ^
a.cc:7:23: error: expected ';' before ')' token
    7 |         for(i = 0; i++)
      |                       ^
      |                       ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int i = 0;
	while(1)
	{ 
		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:20: error: expected ';' before 'cin'
    9 |                 i++
      |                    ^
      |                    ;
   10 |                 cin >> x;
      |                 ~~~ 
a.cc:11:20: error: 'x' was not declared in this scope
   11 |                 if(x == 0)break;
      |                    ^
a.cc:12:48: error: 'x' was not declared in this scope
   12 |                 cout << "case " << i << ":" << x << endl;
      |                                                ^
Language: C++

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

int main(){
    int a[], i=0;
    while(cin >> a[i] && a[i])
        i++;
    for(int j=0; j<=i; j++)
        printf("Case %d: %d\n", j, a[j]);
}

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

#include <iostream>
using namespace std;

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


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

#include <stdio.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>x
      |         ^~~
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;
Language: C++

#include <iostream>
using namespace std;

int main(){
    int x;
    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:7:15: error: expected ';' before 'if'
    7 |         cin>>x
      |               ^
      |               ;
    8 |         if(x == 0) break;
      |         ~~
Language: C++

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

int main(void) {
  vector<int> vec;
  while() {
    int num;
    cin >> num;
    if(num != 0) {
      vec.appedn(num);
    } else {
      break;
    }
  }

  for(int i = 0; i < vec.length; i++) {
    cout << "Case " << i+1 << ": " << vec[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ')' token
    7 |   while() {
      |         ^
a.cc:11:11: error: 'class std::vector<int>' has no member named 'appedn'
   11 |       vec.appedn(num);
      |           ^~~~~~
a.cc:17:26: error: 'class std::vector<int>' has no member named 'length'
   17 |   for(int i = 0; i < vec.length; i++) {
      |                          ^~~~~~
Language: C++

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

int main(void) {
  vector<int> vec;
  while() {
    int num;
    cin >> num;
    if(num != 0) {
      vec.appedn(num);
    } else {
      break;
    }
  }

  for(int i = 0; i < vec.length(); i++) {
    cout << "Case " << i+1 << ": " << vec[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ')' token
    7 |   while() {
      |         ^
a.cc:11:11: error: 'class std::vector<int>' has no member named 'appedn'
   11 |       vec.appedn(num);
      |           ^~~~~~
a.cc:17:26: error: 'class std::vector<int>' has no member named 'length'
   17 |   for(int i = 0; i < vec.length(); i++) {
      |                          ^~~~~~
Language: C++

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

int main(void) {
  vector<int> vec;
  while() {
    int num;
    cin >> num;
    if(num != 0) {
      vec.append(num);
    } else {
      break;
    }
  }

  for(int i = 0; i < vec.length(); i++) {
    cout << "Case " << i+1 << ": " << vec[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ')' token
    7 |   while() {
      |         ^
a.cc:11:11: error: 'class std::vector<int>' has no member named 'append'
   11 |       vec.append(num);
      |           ^~~~~~
a.cc:17:26: error: 'class std::vector<int>' has no member named 'length'
   17 |   for(int i = 0; i < vec.length(); i++) {
      |                          ^~~~~~
Language: C++

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

int main(void) {
  vector<int> vec;
  while() {
    int num;
    cin >> num;
    if(num != 0) {
      vec.append(num);
    } else {
      break;
    }
  }

  for(int i = 0; i < vec.size(); i++) {
    cout << "Case " << i+1 << ": " << vec[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ')' token
    7 |   while() {
      |         ^
a.cc:11:11: error: 'class std::vector<int>' has no member named 'append'
   11 |       vec.append(num);
      |           ^~~~~~
Language: C++

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

int main(void) {
  vector<int> vec;
  while() {
    int num;
    cin >> num;
    if(num != 0) {
      vec.push_back(num);
    } else {
      break;
    }
  }

  for(int i = 0; i < vec.size(); i++) {
    cout << "Case " << i+1 << ": " << vec[i] << endl;
  }
  return 0;
}


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

#include<stdio.h>

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

  }
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: lvalue required as unary '&' operand
    9 |     printf("Case %d: %d\n",&i++,&a);
      |                             ~^~
Language: C++

#include <iostream>
using namespace std;

int main() {
int count = 1;
int p;
while (while (cin.get() != '\n') {
cin >> p;
cout << "Case " << count  << ": " << p << endl;
count++;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before 'while'
    7 | while (while (cin.get() != '\n') {
      |        ^~~~~
a.cc:7:8: error: expected ')' before 'while'
    7 | while (while (cin.get() != '\n') {
      |       ~^~~~~
      |        )
Language: C++

#include <iostream>
using namespace std;

int main() {
int count = 1;
int p;
while(1) {
cin >> p;
if (p.empty) {
break;
} cout<< "Case " << count << ": " << p << endl;
count++;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: request for member 'empty' in 'p', which is of non-class type 'int'
    9 | if (p.empty) {
      |       ^~~~~
Language: C++

#include <cstdio>
int main() {
  int n;
  int case  = 1;
  while (scanf("%d", &n) != EOF) {
    if (n==0) break;
    printf("Case %d: %d\n", case++, n);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected unqualified-id before 'case'
    4 |   int case  = 1;
      |       ^~~~
a.cc:7:29: error: expected primary-expression before 'case'
    7 |     printf("Case %d: %d\n", case++, n);
      |                             ^~~~
Language: C++

#include<iostream>
using namespace std;

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


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

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

int main(){
  int a,b,area,perimeter;
  int a[10000];
  for (int i=0; i<100000; i++){
cin>>area;
cout<<"Case "<<i+1<<": "<<area<<endl;
if (area==0)
break;
  }


}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: conflicting declaration 'int a [10000]'
    7 |   int a[10000];
      |       ^
a.cc:6:7: note: previous declaration as 'int a'
    6 |   int a,b,area,perimeter;
      |       ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected primary-expression before ')' token
   13 |                 )
      |                 ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: unable to find string literal operator 'operator""x' with 'const char [3]', 'long unsigned int' arguments
    9 |         cout << "Case "<<i<<": "x<<endl;
      |                             ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main() {
int x;
  for(int i=1;i<=100;i++) {
    cine >> x;
     cout<< "Case "+i << x <<  <<endl;
    } 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cine' was not declared in this scope
    7 |     cine >> x;
      |     ^~~~
a.cc:8:32: error: expected primary-expression before '<<' token
    8 |      cout<< "Case "+i << x <<  <<endl;
      |                                ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
    while (1) {
	cin>>x;
        if( x == 0 )  break;
    }
    return 0;
}


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

#include<bits/stdc++.h>
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:6:5: error: expected initializer before 'while'
    6 |     while (1) {
      |     ^~~~~
Language: C++

#include<bits/stdc++.h>
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:6:5: error: expected initializer before 'while'
    6 |     while (1) {
      |     ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
    int x;
    while (1) {
	cin >>x;
        cout<<x<<emdl;
        if( x == 0 )  {
           break;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'emdl' was not declared in this scope
    8 |         cout<<x<<emdl;
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main() {
int x;
  for(int i=1;;i++) {
    cine >> x;
  if(x==0){
    break;
   }
     cout<< "Case "<< i << x <<  <<endl;
    } 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cine' was not declared in this scope
    7 |     cine >> x;
      |     ^~~~
a.cc:11:34: error: expected primary-expression before '<<' token
   11 |      cout<< "Case "<< i << x <<  <<endl;
      |                                  ^~