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

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


Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | while(true){cin>>x;
      |             ^~~
      |             std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<"case "<<i<<": "<<x<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | cout<<"case "<<i<<": "<<x<<endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

include<iostream>
using namespace std;
int main(){
int i=1,x;
while(true){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>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope
    5 | while(true){cin>>x;
      |             ^~~
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<"case "<<i<<": "<<x<<endl;
      | ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 | cout<<"case "<<i<<": "<<x<<endl;
      |                            ^~~~
Language: C++

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


return 0;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'std'
    8 |       i++
      |          ^
      |          ;
    9 |       std::cout << x <<endl;
      |       ~~~
Language: C++

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


return 0;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'std'
    8 |       i++
      |          ^
      |          ;
    9 |       std::cout << x <<endl;
      |       ~~~
Language: C++

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


return 0;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'std'
    8 |       i++
      |          ^
      |          ;
    9 |       std::cout << x <<endl;
      |       ~~~
Language: C++

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


return 0;



}


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

#include <iostream>

using namespace std;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before ')' token
    9 | for(x!=0){
      |         ^
      |         ;
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
a.cc:13:2: error: expected ';' before '}' token
   13 | }
      |  ^
      |  ;
   14 | }
      | ~ 
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
a.cc:13:2: error: expected ')' before '}' token
   13 | }
      |  ^
      |  )
   14 | }
      | ~ 
a.cc:9:4: note: to match this '('
    9 | for(x!=0){
      |    ^
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before ')' token
    9 | for(x!=0){
      |         ^
      |         ;
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
a.cc:13:2: error: expected ';' before '}' token
   13 | }
      |  ^
      |  ;
   14 | }
      | ~ 
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
a.cc:13:2: error: expected ')' before '}' token
   13 | }
      |  ^
      |  )
   14 | }
      | ~ 
a.cc:9:4: note: to match this '('
    9 | for(x!=0){
      |    ^
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

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


Compiler output:
a.cc:7:31: warning: missing terminating " character
    7 |         cout<<"Case" " <<b<<":" <<x<<endl;
      |                               ^
a.cc:7:31: error: missing terminating " character
    7 |         cout<<"Case" " <<b<<":" <<x<<endl;
      |                               ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before ':' token
    7 |         cout<<"Case" " <<b<<":" <<x<<endl;
      |                              ^
      |                              ;
Language: C++

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

    int c=1, x;
    while (cin >> x , x)

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'return'
    9 |     c++
      |        ^
      |        ;
   10 |     return 0;
      |     ~~~~~~
Language: C++

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


Compiler output:
a.cc:6:24: error: extended character 　 is not valid in an identifier
    6 |         for (int i = 1;　true; i++)
      |                        ^
a.cc: In function 'int main()':
a.cc:6:24: error: '\U00003000true' was not declared in this scope
    6 |         for (int i = 1;　true; i++)
      |                        ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'int'
    6 |     int i=0
      |     ^~~
a.cc:13:12: error: 'o' was not declared in this scope
   13 |     return o;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'o' was not declared in this scope
   13 |     return o;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int i=1;
  while(true)
    {
      if(i==0){
	break;
      }

      cout << Case i: x << endl;
    }

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



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

#include<iostream>
using namespace std;
int main(){
int x,i;
fori=(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:5:1: error: 'fori' was not declared in this scope
    5 | fori=(i=1;i++){
      | ^~~~
a.cc:5:10: error: expected ')' before ';' token
    5 | fori=(i=1;i++){
      |      ~   ^
      |          )
a.cc:5:14: error: expected ';' before ')' token
    5 | fori=(i=1;i++){
      |              ^
      |              ;
Language: C++

#include<iostream>
using namespace std;
int main(){
int x,i;
fori=(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:5:1: error: 'fori' was not declared in this scope
    5 | fori=(i=1;;i++){
      | ^~~~
a.cc:5:10: error: expected ')' before ';' token
    5 | fori=(i=1;;i++){
      |      ~   ^
      |          )
a.cc:5:15: error: expected ';' before ')' token
    5 | fori=(i=1;;i++){
      |               ^
      |               ;
Language: C++

#include<iostream>
using namespace std;
int main(){
int x,i;
for(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:5:12: error: expected ';' before ')' token
    5 | for(i=1;i++){
      |            ^
      |            ;
Language: C++

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

for(int x,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:5:18: error: expected ';' before ')' token
    5 | for(int x,i=1;i++){
      |                  ^
      |                  ;
Language: C++

#include <cstdio>
int main(){
    for(int i = 1;;i++){
        int x;
        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:7:18: error: expected ';' before '}' token
    7 |             break
      |                  ^
      |                  ;
    8 |         };
      |         ~
Language: C++

def main():
 i = 0

 while True:
   i += 1
   n = input()
   if n = 0: break
   print('Case ' +str(i) +': ' + n)
main()



Compiler output:
a.cc:8:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |    print('Case ' +str(i) +': ' + n)
      |          ^~~~~~~
a.cc:8:27: warning: multi-character character constant [-Wmultichar]
    8 |    print('Case ' +str(i) +': ' + n)
      |                           ^~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

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


Compiler output:
a.cc:12:1: error: expected unqualified-id before 'return'
   12 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: redeclaration of 'int i'
    6 |     int i = 1;
      |         ^
a.cc:5:11: note: 'int i' previously declared here
    5 |     int x,i;
      |           ^
a.cc:8:14: error: expected ';' before 'if'
    8 |     i = i + 1
      |              ^
      |              ;
    9 |     if (x==0) break;
      |     ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x,i=0;
    while(1)
    {
        cin>>x;
        if(x==0)
            break;
        puts("Case i:" x);
        i++;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ')' before 'x'
   11 |         puts("Case i:" x);
      |             ~         ^~
      |                       )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x,i=0;
    while(1)
    {
        cin>>x;
        if(x==0)
            break;
        puts("Case %d: %d",i,x);
        i++;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: too many arguments to function 'int puts(const char*)'
   11 |         puts("Case %d: %d",i,x);
      |         ~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
Scanner sc  = new Scanner(System.in);
for(int i=1;;i++) {
	int x= sc.nextInt();
	if(x==0) break;
	System.out.printf("Case%d : %d\n",i,x);
}
sc.close();
	}
	
}


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++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
Scanner sc  = new Scanner(System.in);
for(int i=1;;i++) {
	int x= sc.nextInt();
	if(x==0) break;
	System.out.printf("Case %d: %d\n",i,x);
}
sc.close();
	}
	
}


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 <stdio.h>
#include <stdlib.h>
 
int main()
{
    int i, x;
    char buf[100];
 
    for (i = 1; ; i++) {
        gets(buf);
        x = atoi(buf);
        if (x == 0) break;
        printf("Case %d: %d\n", i, x);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |         gets(buf);
      |         ^~~~
      |         getw
Language: C++

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


ステータス
Judge: 1/1
C++14
CPU: 00:00 sec
Memory: 3092 KB
Length: 245 B
2018-05-07 15:37
テストケースの判定結果
Case #
Verdict
CPU Time
Memory
In
Out
Case Name
Case #1



Compiler output:
a.cc:26:6: error: stray '#' in program
   26 | Case #
      |      ^
a.cc:33:6: error: stray '#' in program
   33 | Case #1
      |      ^
a.cc:15:1: error: 'Compile' does not name a type
   15 | Compile Error Logs:
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'x' was not declared in this scope
    6 |           cin >> x
      |                  ^
a.cc:8:11: error: 'Case' was not declared in this scope
    8 |           Case i; x
      |           ^~~~
a.cc:8:20: error: expected ';' before '}' token
    8 |           Case i; x
      |                    ^
      |                    ;
    9 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'Case' was not declared in this scope
    9 |           Case i; x
      |           ^~~~
a.cc:9:20: error: expected ';' before '}' token
    9 |           Case i; x
      |                    ^
      |                    ;
   10 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

int main(){
    while(1){
        int x;
        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: 'Case' was not declared in this scope
    9 |             cout<< Case i: x <<endl;
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

int main(){
    int x;
    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:19: error: 'Case' was not declared in this scope
    9 |             cout<<Case i: x<<endl;
      |                   ^~~~
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:6:15: error: stray '\' in program
    6 |     while(true\){
      |               ^
a.cc: In function 'int main()':
a.cc:8:15: error: 'Case' was not declared in this scope
    8 |         cout<<Case i: x<<endl;
      |               ^~~~
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'Case' was not declared in this scope
    7 |         cout<<Case i: x<<endl;
      |               ^~~~
a.cc:9:12: error: expected ';' before '}' token
    9 |         i++
      |            ^
      |            ;
   10 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,i=1;
    while(true){
        cout<<case i: x<<endl;
        if ( x == 0 ) break;
        i++
    }
    return 0;
}
   


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before 'case'
    7 |         cout<<case i: x<<endl;
      |               ^~~~
a.cc:9:12: error: expected ';' before '}' token
    9 |         i++
      |            ^
      |            ;
   10 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,i=1;
    while(true){
        cout<< case i: x<<endl;
        if ( x == 0 ) break;
        i++
    }
    return 0;
}
   


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before 'case'
    7 |         cout<< case i: x<<endl;
      |                ^~~~
a.cc:9:12: error: expected ';' before '}' token
    9 |         i++
      |            ^
      |            ;
   10 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x,i=1;
    while(true){
        cout<< case i: x <<endl;
        if ( x == 0 ) break;
        i++
    }
    return 0;
}
   


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before 'case'
    7 |         cout<< case i: x <<endl;
      |                ^~~~
a.cc:9:12: error: expected ';' before '}' token
    9 |         i++
      |            ^
      |            ;
   10 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'Case' was not declared in this scope
    7 |         cout<< Case i: x <<endl;
      |                ^~~~
a.cc:9:12: error: expected ';' before '}' token
    9 |         i++
      |            ^
      |            ;
   10 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

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


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

import java.util.Scanner;

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

Scanner sc = new Scanner(System.in);
for(int i=1;;i++){
int x = sc.nextInt();
if(x == 0)break;
System.out.println("Case "+i+": "+x);
}

}
}
 


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:8: error: expected ':' before 'static'
    4 |  public static void main(String[] args){
      |        ^~~~~~~
      |        :
a.cc:4:26: error: 'String' has not been declared
    4 |  public static void main(String[] args){
      |                          ^~~~~~
a.cc:4:35: error: expected ',' or '...' before 'args'
    4 |  public static void main(String[] args){
      |                                   ^~~~
a.cc:14:2: error: expected ';' after class definition
   14 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc = new Scanner(System.in);
      | ^~~~~~~
a.cc:8:9: error: 'sc' was not declared in this scope
    8 | int x = sc.nextInt();
      |         ^~
a.cc:10:1: error: 'System' was not declared in this scope
   10 | System.out.println("Case "+i+": "+x);
      | ^~~~~~
a.cc:10:29: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
   10 | System.out.println("Case "+i+": "+x);
      |                    ~~~~~~~~~^~~~~
      |                           |  |
      |                           |  const char [3]
      |                           const char*
Language: C++

def main():
    i = 0:
    while True:
        x = int(input())
        if x == 0: break
        i += 1
        print('Case %d: %d' % (i, x))

if __name__ == "__main__":
    main()



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

#include<iostream>
using namespace std;
int main() {
	int x[10000],y,z,;
	
	for(y= 1; y<= 10000; y++){
		cin>>x[y];
		if(x[y]==0){
			break;
		}
	}
		for(z= 1; z<= 10000; z++){
			if(x[z]==0){
				break;
			}
				cout<<"Cese"<<" "<<z<<" "<<x[z]<<endl;
		}
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:26: error: expected unqualified-id before ';' token
    4 |         int x[10000],y,z,;
      |                          ^
Language: C++

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


}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　 for (int i = 0; ; i++) {
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000' was not declared in this scope
    5 | 　 for (int i = 0; ; i++) {
      | ^~
a.cc:5:22: error: 'i' was not declared in this scope
    5 | 　 for (int i = 0; ; i++) {
      |                      ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int x;
	int i = 1;
	
	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:12:33: error: 'Case' was not declared in this scope
   12 |                         cout << Case << " " << i << : << " " << x << endl;
      |                                 ^~~~
a.cc:12:53: error: expected primary-expression before ':' token
   12 |                         cout << Case << " " << i << : << " " << x << endl;
      |                                                     ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

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

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


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

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

	int x;
	int i = 1;
	while (cin>>x&&x!=0){
		cout <<"case "<<i<<": "<< x << endl;
		i ++ 1;
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before numeric constant
    9 |                 i ++ 1;
      |                     ^~
      |                     ;
Language: C++

#include "stdafx.h"
#include <iostream>

using namespace std;

int main()
{
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	int A[10000], n,i;
	i = 1;
	n = 1;
	while (n<10000){
		cin >> A[n];
		if (A[n] == 0)break;
		n++;
	}
	i = n;
	n = 1;
	while(i>n){
		cout << "case" << n << " " << A[n]<<endl;
		n++;
	}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	return 0;
}


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

#include<iostream>
using namespace std;
int main(){
  int i = 0;
  while(i <6376){
     int a;
     cin>>a;
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    i++;
 }
  int j = 6376:
   while(6376< j <=10000)
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    j++;
 }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ',' or ';' before ':' token
   12 |   int j = 6376:
      |               ^
a.cc:15:13: error: 'else' without a previous 'if'
   15 |             else cout<<"Cace i: "<<a<<endl;
      |             ^~~~
a.cc:15:36: error: 'a' was not declared in this scope
   15 |             else cout<<"Cace i: "<<a<<endl;
      |                                    ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int i = 0;
  while(i <6376){
     int a;
     cin>>a;
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    i++;
 }
  int j = 6376;
   while(6376< j <=10000)
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    j++;
 }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'a' was not declared in this scope
   14 |           if(a == 0)break;
      |              ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int i = 0;
  while(i <6376){
     int a;
     cin>>a;
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    i++;
 }
  int j = 6376:
   while(6376< j <=10000){
     int a;
     cin>>a;
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    j++;
 }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ',' or ';' before ':' token
   12 |   int j = 6376:
      |               ^
Language: C++

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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int cou = 0;
            int x;
            string num = Console.ReadLine();
            x = int.Parse(num);

            while (true)
            {
                
                cou++;
                Console.WriteLine("Case " + cou + ": " + x);
                if (x == 0) break;
            }

        }
    }
}



Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:27:6: error: expected ';' after class definition
   27 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication1::Program::Main(int*)':
a.cc:15:13: error: 'string' was not declared in this scope
   15 |             string num = Console.ReadLine();
      |             ^~~~~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             x = int.Parse(num);
      |                 ^~~
a.cc:22:17: error: 'Console' was not declared in this scope
   22 |                 Console.WriteLine("Case " + cou + ": " + x);
      |                 ^~~~~~~
a.cc:22:49: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
   22 |                 Console.WriteLine("Case " + cou + ": " + x);
      |                                   ~~~~~~~~~~~~~ ^ ~~~~
      |                                           |       |
      |                                           |       const char [3]
      |                                           const char*
Language: C++

#include<iostream>
using namespace std;
int main(){
  long longint i = 0;
  while(i <6376){
     int a;
     cin>>a;
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl; 
    i++;
 }
  int j = 6377;
  while(6377< j <=10000){
   int a;
   cin>>a;
          if(a == 0)break;
            else cout<<"Cace i: "<<a<<endl;
    j++;
 }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected initializer before 'i'
    4 |   long longint i = 0;
      |                ^
a.cc:5:9: error: 'i' was not declared in this scope
    5 |   while(i <6376){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
   
 for(true){
  int a;
  cin>>a;
 if(a == 0)break;
 else
  cout<<"Cace i "<<a<<endl; 
 }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected ';' before ')' token
    5 |  for(true){
      |          ^
      |          ;
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
a.cc:11:3: error: expected ';' before '}' token
   11 |  }
      |   ^
      |   ;
   12 | }
      | ~  
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
a.cc:11:3: error: expected ')' before '}' token
   11 |  }
      |   ^
      |   )
   12 | }
      | ~  
a.cc:5:5: note: to match this '('
    5 |  for(true){
      |     ^
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    
 for(true;){
  int a;
  cin>>a;
 if(a == 0){break;}
 else
  {cout<<"Cace i "<<a<<endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before ')' token
    5 |  for(true;){
      |           ^
a.cc:5:11: error: expected ';' before ')' token
    5 |  for(true;){
      |           ^
      |           ;
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<iostream>
using namespace std;
int main(){
     
 for(true;){
  int a;
  cin>>a;
 if(a == 0){break;}
 else
  {cout<<"Cace i "<<a<<endl;}
}
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int A;
 while (1) { 
  int B;
  cin >> B;
  A++;
  
 if (A == 0) {
  break;
  }

 cout << "Case " << A << ": " << B << endl;

}


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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before ')' token
    7 |     for(""){
      |           ^
      |           ;
a.cc:12:5: error: expected primary-expression before 'return'
   12 |     return 0;
      |     ^~~~~~
a.cc:11:6: error: expected ';' before 'return'
   11 |     }
      |      ^
      |      ;
   12 |     return 0;
      |     ~~~~~~
a.cc:12:5: error: expected primary-expression before 'return'
   12 |     return 0;
      |     ^~~~~~
a.cc:11:6: error: expected ')' before 'return'
   11 |     }
      |      ^
      |      )
   12 |     return 0;
      |     ~~~~~~
a.cc:7:8: note: to match this '('
    7 |     for(""){
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main(){

	int i = 1, x;

	while(1){

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

	}

	return 0;
}


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

#include<iostream>
using namespace std;

int main(){

	int i = 1, x;

	while(1){

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

	}

	return 0;
}


Compiler output:
a.cc:12:49: error: extended character 　 is not valid in an identifier
   12 |                 cout << "Case " << i << ": " << x　<< endl;
      |                                                 ^
a.cc: In function 'int main()':
a.cc:12:49: error: 'x\U00003000' was not declared in this scope
   12 |                 cout << "Case " << i << ": " << x　<< endl;
      |                                                 ^~~
a.cc:13:20: error: expected ';' before '}' token
   13 |                 i++
      |                    ^
      |                    ;
   14 | 
   15 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

int main(){

	int i = 1, x;

	while(1){

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

	}

	return 0;
}


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

#include<bits/stdc.h>
using namespace std;
int main(){
int x;
for(int i=1;i<10001;i++){
cin >> x;
if(x==0){
brak;
}
cout <<"Case" << i":" << " " << x << endl;
}
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
for(int i=1;i<10001;i++){
cin >> x;
if(x==0){
brak;
}
cout <<"Case" << i":" << " " << x << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'brak' was not declared in this scope; did you mean 'brk'?
    8 | brak;
      | ^~~~
      | brk
a.cc:10:19: error: expected ';' before string constant
   10 | cout <<"Case" << i":" << " " << x << endl;
      |                   ^~~
      |                   ;
Language: C++

#include<iostream>
using namespace std;

int main()
{
    int data[10000];

    for(int i=0;i<10000;i++){
        cin >> data[i];

        if(data[i]==0){
            break;
        }
    }

    for(int j=0;j<i;j++){
        if(data[j]!=0){
            cout << "case " << j+1 << ": " << data[j] << endl;
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'i' was not declared in this scope
   16 |     for(int j=0;j<i;j++){
      |                   ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    int x=-1;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     for(i=0;x!=0;i++){
      |         ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    for(int i=0;;i++){
        cin >> x;

        if(x==0){
            break;
        }

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


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

#include<iostream>
using namespace std;

int main()
{
    int x;
    int data[10000];
    int index=0;

    while(1){
        cin >> x;

        if(x==0){
            break;
        }
        data[index]=x;
        index++
    }

    for(int i=1;i<index;i++){
        cout << "case " << i << ": " << data[i] << endl; 
    }
  
    return 0;
}


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

#include<iostream>
using namespace std;

int main()
{
    int x;
    int data[10000];
    int index=0;

    while(1){
        cin >> x;

        if(x==0){
            break;
        }
        data[index]=x;
        index++
    }

    for(int i=1;i<index;i++){
        cout << "case " << i << ": " << data[i-1] << endl; 
    }
  
    return 0;
}


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

#include<iostream>
using namespace std;

int main()
{
    int x;
    int data[10000];
    int index=0;

    while(1){
        cin >> x;

        if(x==0){
            break;
        }
        data[index]=x;
        index++
    }

    for(int i=1;i<=index;i++){
        cout << "case " << i << ": " << data[i-1] << endl; 
    }
  
    return 0;
}


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

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'x' was not declared in this scope
    9 |                 if(x[i]==0){
      |                    ^
Language: C++

include<iostream>
using namespace std;
int main(){
for (int x,i=1;  ; i++){
cin >> x;
if (x==0) break;
cout << "Case " << i <<": " << x <<endl;
}
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:5:1: error: 'cin' was not declared in this scope
    5 | cin >> x;
      | ^~~
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << "Case " << i <<": " << x <<endl;
      | ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope
    7 | cout << "Case " << i <<": " << x <<endl;
      |                                    ^~~~
Language: C++

#include <iostream>
#include <cstdio>

int main(){
    int x[10000],count;
    for(int i; i < 10000; i++){
        cin >> x[i];
        count++;
        if(x[i] == 0){
            break;
        }
    }
    for(int 1; i <= count; i++){
        printf("Case %d: %d \n", i, x[i - 1]);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> x[i];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:13: error: expected unqualified-id before numeric constant
   13 |     for(int 1; i <= count; i++){
      |             ^
a.cc:13:12: error: expected ';' before numeric constant
   13 |     for(int 1; i <= count; i++){
      |            ^~
      |            ;
a.cc:13:16: error: 'i' was not declared in this scope
   13 |     for(int 1; i <= count; i++){
      |                ^
a.cc:13:26: error: expected ')' before ';' token
   13 |     for(int 1; i <= count; i++){
      |        ~                 ^
      |                          )
a.cc:13:28: error: 'i' was not declared in this scope
   13 |     for(int 1; i <= count; i++){
      |                            ^