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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before ')' token
    7 |         for (int x, t = 1; t++) {
      |                               ^
      |                               ;
Language: C++

# include <iostream>

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

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

#include<iostream>
using namespace std;

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

  while(TRUE){
    cin >> x;
    if(x != 0){
      cout << "Case " << ++i << ": " << x << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'TRUE' was not declared in this scope
    7 |   while(TRUE){
      |         ^~~~
Language: C++

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

int main(){
    int num;
    int i = 0;
    vector<int> arr(10000);
    while(num != 0){
        cin >> num;
        arr[i] = num;
        i++;
    }

    for(int i = 0; i < arr.index(0); i++){
        cout << "Case " << i << ": " << arr[i] << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:28: error: 'class std::vector<int>' has no member named 'index'
   15 |     for(int i = 0; i < arr.index(0); i++){
      |                            ^~~~~
Language: C++

int mian(){
    int num,count=1;
    while(cin>>num&&num!=0){
         cout<<count<<':'<<cin<<endl;
         count++;
    }
return 0;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:3:11: error: 'cin' was not declared in this scope
    3 |     while(cin>>num&&num!=0){
      |           ^~~
a.cc:4:10: error: 'cout' was not declared in this scope; did you mean 'count'?
    4 |          cout<<count<<':'<<cin<<endl;
      |          ^~~~
      |          count
a.cc:4:33: error: 'endl' was not declared in this scope
    4 |          cout<<count<<':'<<cin<<endl;
      |                                 ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected primary-expression before ')' token
    5 |    while(){
      |          ^
a.cc:6:14: error: 'x' was not declared in this scope
    6 |       cin >> x
      |              ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected primary-expression before ')' token
    5 |    while(){
      |          ^
a.cc:6:14: error: 'x' was not declared in this scope
    6 |       cin >> x;
      |              ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc:10:41: warning: missing terminating " character
   10 |       cout <<"Case "<< y << ": " << x <<" <<endl;
      |                                         ^
a.cc:10:41: error: missing terminating " character
   10 |       cout <<"Case "<< y << ": " << x <<" <<endl;
      |                                         ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:15: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'int')
   11 |       y = y + 1;
      |               ^
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
int a[7];
cin>> a[0]>> a[1]>> a[2]>> a[3]>> a[4]>> a[5]>> a[6]>> a[7];
for(int i=0;i<7;i++)
{
    if(a[i]==0) return;
    else cout<<"case "<<i+1<<": "<<a[i];
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 |     if(a[i]==0) return;
      |                 ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc:8:26: warning: missing terminating " character
    8 | else cout<<"Case <<i<<": "<<a<<endl;}
      |                          ^
a.cc:8:26: error: missing terminating " character
    8 | else cout<<"Case <<i<<": "<<a<<endl;}
      |                          ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before ':' token
    8 | else cout<<"Case <<i<<": "<<a<<endl;}
      |                        ^
      |                        ;
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
 int a[];
 for(int i = 0;i<a.length;i++)
   cin>>a[i];
 for(int i = 0;i<a.length;i++)
 {
   if(a[i] == 0)
     break;
   else
     cout<<"case "<<i<<": "<<a[i] <<endl;
 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: storage size of 'a' isn't known
    5 |  int a[];
      |      ^
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:6:16: error: expected ';' before ')' token
    6 | for(int i=1;i++)
      |                ^
      |                ;
a.cc:10:7: error: 'Case' was not declared in this scope
   10 | cout<<Case<<" "<<i:<<" "<<x<<endl;
      |       ^~~~
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:6:16: error: expected ';' before ')' token
    6 | for(int i=1;i++)
      |                ^
      |                ;
a.cc:10:21: error: expected ';' before ':' token
   10 | cout<<"Case"<<" "<<i:<<" "<<x<<endl;
      |                     ^
      |                     ;
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:6:16: error: expected ';' before ')' token
    6 | for(int i=1;i++)
      |                ^
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: invalid types 'int[int]' for array subscript
    7 |    cin>>a[i];
      |          ^
a.cc:10:8: error: invalid types 'int[int]' for array subscript
   10 |    if(a[i] == 0)
      |        ^
a.cc:13:31: error: invalid types 'int[int]' for array subscript
   13 |      cout<<"case "<<i<<": "<<a[i] <<endl;
      |                               ^
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:6:16: error: expected ';' before ')' token
    6 | for(int i=1;i++)
      |                ^
      |                ;
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;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before ')' token
    6 | for(int i=1;i++)
      |                ^
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: break statement not within loop or switch
    9 |      break;
      |      ^~~~~
a.cc:11:21: error: 'i' was not declared in this scope
   11 |      cout<<"case "<<i<<": "<<a<<endl;
      |                     ^
Language: C++

#include <iostream>

using namespace std;

int main(){

  int x;
  int i=1;

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

  return 0;

}

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

#include <iostream>
using namespace std;

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

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:5:5: error: 'i' was not declared in this scope
    5 | for(i=1 ;i<=10000 ; i++){
      |     ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:7: note: to match this '{'
    4 | main(){
      |       ^
Language: C++

#include <iostream>
using namespace std;

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

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:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:7: note: to match this '{'
    4 | main(){
      |       ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
Language: C++

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

  while(1){
    cin >> x;
    if(x==0)break;

  }
  return 0
}

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


#include <stdio.h>

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



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else if(x==0)
      |         ^~~~
Language: C++

#include <stdio.h>

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'else' without a previous 'if'
   15 |         else if(x==0)
      |         ^~~~
Language: C++


#include <stdio.h>

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'else' without a previous 'if'
   15 |         else if(x==0)
      |         ^~~~
Language: C++


#include <stdio.h>

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

	else if(x==0)
	printf("\n");	
	
	}

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else if(x==0)
      |         ^~~~
a.cc:21:18: error: expected '}' at end of input
   21 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++


#include <stdio.h>

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

	else if(x==0)
	printf("\n");	
	
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else if(x==0)
      |         ^~~~
Language: C++

#include <stdio.h>

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

	else if(x==0)
	printf("\n");	
	
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else if(x==0)
      |         ^~~~
Language: C++

#include <stdio.h>

int main(void)
{
	int x;
	int I = 1;
	scanf("%d",&x);
	

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


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: 'i' was not declared in this scope
   11 |         printf("Case %d:%d\n", i, x);
      |                                ^
Language: C++

#include <stdio.h>

int main(void)
{
	int x;
	int I = 1;
	scanf("%d",&x);
	

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


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'i' was not declared in this scope
   11 |         printf("Case %d: %d\n", i, x);
      |                                 ^
Language: C++

#include <cstdio>

int main() {
	int x, i = 0, a[10000] = {};

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

	i = 0;
	while (a[i] != 0) {
		printf("Case %d: %d\n", i+1, a[i]);
		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", &x);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <iostream>
using namespace std;

int main ()
{

int x,i;

for(i=1;cin >> x && x>0; i++)
{
cout << "Case" << i << : << x << endl;
}
return 0;
}

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

#include <iostream>
using namespace std;

int main ()
{

int x,i;

for(i=1;cin >> x && x>0; i++)
{
cout << "Case" << i ":" << x << endl;
}
return 0;
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before ')' token
    7 |  while() {
      |        ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected ';' before '}' token
   13 |    ++ i
      |        ^
      |        ;
   14 | }
      | ~       
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ')' before ';' token
    7 |  while(x == 0;) {
      |       ~      ^
      |              )
a.cc:7:15: error: expected primary-expression before ')' token
    7 |  while(x == 0;) {
      |               ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before '?' token
    9 |   if(x == 0)???break;
      |             ^
a.cc:9:14: error: expected primary-expression before '?' token
    9 |   if(x == 0)???break;
      |              ^
a.cc:9:15: error: expected primary-expression before '?' token
    9 |   if(x == 0)???break;
      |               ^
a.cc:9:16: error: expected primary-expression before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
a.cc:9:16: error: expected ':' before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
      |                :
a.cc:9:16: error: expected primary-expression before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
a.cc:9:16: error: expected ':' before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
      |                :
a.cc:9:16: error: expected primary-expression before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
a.cc:9:16: error: expected ':' before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
      |                :
a.cc:9:16: error: expected primary-expression before 'break'
    9 |   if(x == 0)???break;
      |                ^~~~~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'X' was not declared in this scope
    7 |                 if(X==0);{
      |                    ^
a.cc:10:17: error: 'prentf' was not declared in this scope; did you mean 'printf'?
   10 |                 prentf("Case %d:%d",i,x);
      |                 ^~~~~~
      |                 printf
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'prentf' was not declared in this scope; did you mean 'printf'?
   10 |                 prentf("Case %d:%d",i,x);
      |                 ^~~~~~
      |                 printf
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc:14:2: error: expected unqualified-id before '[' token
   14 | }[EDF]
      |  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
 int i, x = 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:24: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
    9 |   cout <<  "Case " + i + ": " + x << endl;
      |            ~~~~~~~~~~~ ^ ~~~~
      |                    |     |
      |                    |     const char [3]
      |                    const char*
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a[100000];
	while (1){
		cin >> x;
		if (x == 0){ break; }
		cout <<"Case" << " "<<x << endl;

	    }

		cout << << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'x' was not declared in this scope
    6 |                 cin >> x;
      |                        ^
a.cc:12:25: error: expected primary-expression before '<<' token
   12 |                 cout << << endl;
      |                         ^~
a.cc: At global scope:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

int x;

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

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



//Tuvshee
  
#include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<cctype>
#include<vector>
#include<queue>
using namespace std;
#define I int
#define D double
#define F float
#define C char
#define S string
#define B bool
#define L long long
#define rep(n) for(int i=0;i<n;i++)
#define reps(m,n,c) for(int c=m;c<n;c++)
#define repd(m,n,j) for(int j=n;j>m;j--)
#define whL while
#define eL endl
#define oR ||
#define rtn return
#define pause system("PAUSE")
#define Max 300
#define max(m,n) ((n<m)?m:n)
#define min(m,n) ((n>m)?m:n)
  
int main()
{
    I x;
    for(int i=1;;i++){
        cin>>x;
        if(x==0)break;
        cout<<"Case "<<i<<": "<<x<<eL;
    }
    rtn 0;
}
 

 
Compile Error Logs: 

You are not authorized to see the message. 
 
 
Status 
Judge: 1/1  C++  CPU: 00.00 sec  Memory: 1160 KB  Length: 671 B  2012-12-27 08:16  2012-12-27 08:16  
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 
 Case #1: : Accepted  - - 48537 B 157429 B test_case_1 



 < prev | 1 /  1 | next >      : Accepted        -        - 

 

Judge Input #1 ( in1.txt | 48537 B)  Judge Output #1 ( out1.txt | 157429 B) 

6839
5759
114
7516
1052
5628
3011
7420
6213
4087
2750
2768
9085
2061
2226
7544
5090
1184
5138
5567
6967
4979
496
312
1368
55
7032

 

Compiler output:
a.cc:51:77: error: invalid digit "8" in octal constant
   51 | Judge: 1/1  C++  CPU: 00.00 sec  Memory: 1160 KB  Length: 671 B  2012-12-27 08:16  2012-12-27 08:16
      |                                                                             ^~
a.cc:51:95: error: invalid digit "8" in octal constant
   51 | Judge: 1/1  C++  CPU: 00.00 sec  Memory: 1160 KB  Length: 671 B  2012-12-27 08:16  2012-12-27 08:16
      |                                                                                               ^~
a.cc:53:6: error: stray '#' in program
   53 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
a.cc:54:7: error: stray '#' in program
   54 |  Case #1: : Accepted  - - 48537 B 157429 B test_case_1
      |       ^
a.cc:62:13: error: stray '#' in program
   62 | Judge Input #1 ( in1.txt | 48537 B)  Judge Output #1 ( out1.txt | 157429 B)
      |             ^
a.cc:62:51: error: stray '#' in program
   62 | Judge Input #1 ( in1.txt | 48537 B)  Judge Output #1 ( out1.txt | 157429 B)
      |                                                   ^
a.cc:45:1: error: 'Compile' does not name a type
   45 | Compile Error Logs:
      | ^~~~~~~
Language: C++

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

 }
 return 0;
}

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

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

 }
 return 0;
}

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

#incude <iostream>

int main()
{
int d=1;
int count = 1;
while(d!=0)
{
std::cin>>d;
std::cout<<"Casev"<<count<<": "<<d<<std::endl;
}

return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:6: error: 'cin' is not a member of 'std'
    9 | std::cin>>d;
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude <iostream>
a.cc:10:6: error: 'cout' is not a member of 'std'
   10 | std::cout<<"Casev"<<count<<": "<<d<<std::endl;
      |      ^~~~
a.cc:10:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:42: error: 'endl' is not a member of 'std'
   10 | std::cout<<"Casev"<<count<<": "<<d<<std::endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude <iostream>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before '{' token
    8 | printf("%5d\n", x){
      |                   ^
      |                   ;
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before '{' token
    8 | printf("%5d\n", x){
      |                   ^
      |                   ;
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '{' token
    9 | printf("%5d\n", x){
      |                   ^
      |                   ;
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

include <stdio.h>
int main()
{
int x;
scanf("%5",&x);
x = 1;
while (x <= 10000)
{
printf("%d\n",x);

if (x = 0)
break;
}
return 0;
}

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

include <stdio.h>
int main()
{
int x;
scanf("%d",&x);
x = 1;
while (x <= 10000)
{
printf("%d\n",x);

if (x = 0)
break;
}
return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'if'
   10 | printf("%d\n",x)
      |                 ^
      |                 ;
   11 | if (x = 0)
      | ~~
Language: C++

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

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

return 0;
}

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

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before '{' token
   10 | printf("%d\n",x){
      |                 ^
      |                 ;
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: break statement not within loop or switch
   12 | break;
      | ^~~~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: break statement not within loop or switch
   12 | break;
      | ^~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: break statement not within loop or switch
   12 | break}
      | ^~~~~
a.cc:12:6: error: expected ';' before '}' token
   12 | break}
      |      ^
      |      ;
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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

return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: break statement not within loop or switch
   12 | break}
      | ^~~~~
a.cc:12:6: error: expected ';' before '}' token
   12 | break}
      |      ^
      |      ;
a.cc:14:10: error: expected '}' at end of input
   14 | return 0;
      |          ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
a.cc:14:10: error: expected '}' at end of input
   14 | return 0;
      |          ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

if (x = 0)
break;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'scanf'
    5 | scanf("%d",&x);
      | ^~~~~
a.cc:9:22: error: 'x' was not declared in this scope
    9 | printf("Case i:%d\n",x);
      |                      ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:36: error: 'A' was not declared in this scope
    5 |         for (int x, t = 1; ; t++ ){A
      |                                    ^
Language: C++

#include <iostream>
using namespace std;
 
int main ()
{
     unsigned long long x, cnt;
     cnt = 0;
     do {
     x = new int;
     cin >> x;
     cout << "case " << cnt++ << ": " << x << endl;
     } while (x != 0);
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive]
    9 |      x = new int;
      |          ^~~~~~~
      |          |
      |          int*
Language: C++

#include <iostream>
using namespace std;
  
int main ()
{
     unsigned long long x, cnt;
     cnt = 0;
     do {
     cin >> x;
     cout << "case " << cnt++ << ": " << x << endl;
     } while (x != 0);
     return 0;

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

#include <iostream>
using namespace std;
??????
int main ()
{
??????????unsigned long long x, cnt;
??????????cnt = 0;
??????????do {
??????????cin >> x;
??????????cout << "case " << cnt++ << ": " << x << endl;
??????????} while (x != 0);
??????????return 0;
}

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

#include <iostream>
using namespace std;
??????
int main ()
{
??????????int cnt = 0;
??????????do {
     int[] x = new int[1];
??????????cin >> x;
??????????cout << "case " << cnt++ << ": " << x << endl;
     delete[] x;
??????????} while (x != 0);
??????????return 0;
}

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> x;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << "Case " << id++ << ": " << x << endl;
      |   ^~~~
a.cc:10:43: error: 'endl' was not declared in this scope
   10 |   cout << "Case " << id++ << ": " << x << endl;
      |                                           ^~~~
a.cc:11:10: error: expected ')' before '!' token
   11 |  }while(x!0);
      |        ~ ^
      |          )
a.cc:11:10: error: expected ';' before '!' token
   11 |  }while(x!0);
      |          ^
      |          ;
a.cc:11:12: error: expected ';' before ')' token
   11 |  }while(x!0);
      |            ^
      |            ;
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> x;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << "Case " << id++ << ": " << x << endl;
      |   ^~~~
a.cc:10:43: error: 'endl' was not declared in this scope
   10 |   cout << "Case " << id++ << ": " << x << endl;
      |                                           ^~~~
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;
 }
 return 0;
}

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

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

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

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

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

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

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

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

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

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

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

#include<iostream>
using namespace std;
int main(){
    
    int x,i,*k;
    i=0;
    k=0;
    while(i<=10000 && i>=0){
        k=k+1;
        cin>>x[k];
        if(x[k]==0){break;}
             else{i++;
                  cout<<"Case "<<i<<": "<<x<<endl;}
    return 0;}

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

#include<iostream>
using namespace std;
int main(){
    
    int x,i,*k;
    i=0;
    k=0;
    while(i<=10000 && i>=0){
        k=k+1;
        cin>>x;
        if(x[k]==0){break;}
             else{i++;
                  cout<<"Case "<<i<<": "<<x<<endl;}
    return 0;}

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

#include<iostream>
using namespace std;
int main(){
    
    int x,i,*k;
    i=0;
    k=0;
    while(i<=10000 && i>=0){
        
        cin>>x;
        if(x[k]==0){break;}
             else{i++;
                  k=k+1;
                  cout<<"Case "<<i<<": "<<x<<endl;
             }
    return 0;}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected ';' before 'while'
    6 |     scanf("%d",&x)
      |                   ^
      |                   ;
    7 |     while(x==0){
      |     ~~~~~
Language: C++

#include<iostream>
using namespace std;

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

return 0;
}

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

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

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

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

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

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

Compiler output:
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 | cout<<"Case"<<' '<<i++<<':<<' ''<<x<<endl;
      |                         ^~~~~
a.cc:12:31: error: empty character constant
   12 | cout<<"Case"<<' '<<i++<<':<<' ''<<x<<endl;
      |                               ^~
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before '\x0'
   12 | cout<<"Case"<<' '<<i++<<':<<' ''<<x<<endl;
      |                              ^~~
      |                              ;
Language: C++

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

Compiler output:
a.cc:8:15: error: stray '\' in program
    8 | scanf("%d", &x\n);
      |               ^
a.cc: In function 'int main()':
a.cc:8:15: error: expected ')' before 'n'
    8 | scanf("%d", &x\n);
      |      ~        ^~
      |               )
Language: C++

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

Compiler output:
a.cc:11:1: error: stray '\' in program
   11 | \n
      | ^
a.cc: In function 'int main()':
a.cc:11:2: error: 'n' was not declared in this scope
   11 | \n
      |  ^
Language: C++

#include <stdio.h>
int main()
{
int i, x;
i = 1;
while(1)
{
cin >> x
if (x == 0) break;
i++;
cout << "case i: x" << endl
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> x
      | ^~~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << "case i: x" << endl
      | ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope
   11 | cout << "case i: x" << endl
      |                        ^~~~
Language: C++

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

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

#include <stdio.h>
using namespace std;
int main()
{
int i, x;
i = 1;
while(1)
{
cin >> x
if (x == 0) break;
cout << "case i: x" << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | 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;
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << "case i: x" << endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:24: error: 'endl' was not declared in this scope
   11 | cout << "case i: x" << 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;
int main()
{
int i, x;
i = 1;
while(1)
{
cin >> x;
if (x == 0) break;
cout << "case i: " << x << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | 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;
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << "case i: " << x << endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:28: error: 'endl' was not declared in this scope
   11 | cout << "case i: " << x << 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++

i=0
sort=[]
while True:
    sort.append(int(input()))
    if sort[i]==0:
        del sort[i]
        break
    i+=1
for i in range(len(sort)):
    print('Case {}: {}'.format(i+1,sort[i]))

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

#include <iostream>

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

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