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

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

int MAX_N = 10000;

int main() {
    array<int, 10000> ds{};
    for (int i = 0; i < 10000; i++) {
        cin >> ds[i];
        if (ds[i] == 0) {
            int n = i;
            break;
        }
    }
    
    for (int i = 0; i < n; i++) {
        cout << "Case " << i << ": " << ds[i] << endl;
    }
    return 0;
}


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

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

int MAX_N = 10000;
array<int, MAX_N> ds{};

int main() {
    for (int i = 0; i < MAX_N; i++) {
        cin >> ds[i];
        if (ds[i] == 0) {
            int n = i;
            break;
        }
    }
    
    for (int i = 0; i < n; i++) {
        cout << "Case " << i << ": " << ds[i] << endl;
    }
    return 0;
}


Compiler output:
a.cc:5:17: error: the value of 'MAX_N' is not usable in a constant expression
    5 | array<int, MAX_N> ds{};
      |                 ^
a.cc:4:5: note: 'int MAX_N' is not const
    4 | int MAX_N = 10000;
      |     ^~~~~
a.cc:5:17: note: in template argument for type 'long unsigned int'
    5 | array<int, MAX_N> ds{};
      |                 ^
a.cc: In function 'int main()':
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |         cin >> ds[i];
      |                  ^
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |         if (ds[i] == 0) {
      |               ^
a.cc:16:25: error: 'n' was not declared in this scope
   16 |     for (int i = 0; i < n; i++) {
      |                         ^
a.cc:17:43: error: invalid types 'int[int]' for array subscript
   17 |         cout << "Case " << i << ": " << ds[i] << endl;
      |                                           ^
Language: C++

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

int MAX_N = 10000, n = 0;
array<int, MAX_N> ds{};

int main() {
    for (int i = 0; i < MAX_N; i++) {
        cin >> ds[i];
        if (ds[i] == 0) {
            n = i;
            break;
        }
    }
    
    for (int i = 0; i < n; i++) {
        cout << "Case " << i << ": " << ds[i] << endl;
    }
    return 0;
}


Compiler output:
a.cc:5:17: error: the value of 'MAX_N' is not usable in a constant expression
    5 | array<int, MAX_N> ds{};
      |                 ^
a.cc:4:5: note: 'int MAX_N' is not const
    4 | int MAX_N = 10000, n = 0;
      |     ^~~~~
a.cc:5:17: note: in template argument for type 'long unsigned int'
    5 | array<int, MAX_N> ds{};
      |                 ^
a.cc: In function 'int main()':
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |         cin >> ds[i];
      |                  ^
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |         if (ds[i] == 0) {
      |               ^
a.cc:17:43: error: invalid types 'int[int]' for array subscript
   17 |         cout << "Case " << i << ": " << ds[i] << endl;
      |                                           ^
Language: C++

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

int MAX_N = 10000, n = 0;
array<int, MAX_N> ds;

int main() {
    for (int i = 0; i < MAX_N; i++) {
        cin >> ds[i];
        if (ds[i] == 0) {
            n = i;
            break;
        }
    }
    
    for (int i = 0; i < n; i++) {
        cout << "Case " << i << ": " << ds[i] << endl;
    }
    return 0;
}


Compiler output:
a.cc:5:17: error: the value of 'MAX_N' is not usable in a constant expression
    5 | array<int, MAX_N> ds;
      |                 ^
a.cc:4:5: note: 'int MAX_N' is not const
    4 | int MAX_N = 10000, n = 0;
      |     ^~~~~
a.cc:5:17: note: in template argument for type 'long unsigned int'
    5 | array<int, MAX_N> ds;
      |                 ^
a.cc: In function 'int main()':
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |         cin >> ds[i];
      |                  ^
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |         if (ds[i] == 0) {
      |               ^
a.cc:17:43: error: invalid types 'int[int]' for array subscript
   17 |         cout << "Case " << i << ": " << ds[i] << endl;
      |                                           ^
Language: C++

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

const int MAX_N = 10000, n = 0;
array<int, MAX_N> ds;

int main() {
    for (int i = 0; i < MAX_N; i++) {
        cin >> ds[i];
        if (ds[i] == 0) {
            n = i;
            break;
        }
    }
    
    for (int i = 0; i < n; i++) {
        cout << "Case " << i << ": " << ds[i] << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: assignment of read-only variable 'n'
   11 |             n = i;
      |             ~~^~~
Language: C++

readlines.to_a.pop.each_with_index{ |k, v| puts "Case #{k}: #{v}}" }


Compiler output:
a.cc:1:1: error: 'readlines' does not name a type
    1 | readlines.to_a.pop.each_with_index{ |k, v| puts "Case #{k}: #{v}}" }
      | ^~~~~~~~~
Language: C++

using namespace std;
int main(void){
    int i;
    int Y=0;
    for(i=1;i<10000;i++){
        int x;
        cin>>x;
        if(1<=x&&x<=10000){
            cout<<"Case "<<i<<":"<<x<<endl;
            x = Y;
        } else{
            return 0;
        }
    }
    // Your code here!
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout<<"Case "<<i<<":"<<x<<endl;
      |             ^~~~
a.cc:9:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:39: error: 'endl' was not declared in this scope
    9 |             cout<<"Case "<<i<<":"<<x<<endl;
      |                                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int i;
    int Y=0;
    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: In function 'int main()':
a.cc:9:12: error: 'X' was not declared in this scope
    9 |         if(X == 0) break;
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected '(' before '{' token
   11 |     else if{
      |            ^
      |            (
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
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>>i;
    if(x==0){
        break;
    }
    else if{
        cout<<"Case"<<" "<<i<<":"<<" "<<x<<endl;
    }
    return 0;
}


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
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>>i;
    cin>>x
    if(x==0){
        break;
    }
    else{
        cout<<"Case"<<" "<<i<<":"<<" "<<x<<endl;
    }
}
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |     cin>>x
      |           ^
      |           ;
    8 |     if(x==0){
      |     ~~     
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else{
      |     ^~~~
Language: C++

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

include<iostream>
using namespace std;
int main(){
    for ( int x; t = 1; t++ ){
        cin >> x;
        if ( x == 0);
        cout << "Case " << t << ":" << 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:4:18: error: 't' was not declared in this scope
    4 |     for ( int x; t = 1; t++ ){
      |                  ^
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "Case " << t << ":" << x << endl;
      |         ^~~~
a.cc:7:45: error: 'endl' was not declared in this scope
    7 |         cout << "Case " << t << ":" << 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 " << t << ":" << 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:4:18: error: 't' was not declared in this scope
    4 |     for ( int x; t = 1; t++ ){
      |                  ^
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x;
      |         ^~~
a.cc:6:28: error: expected ';' before '{' token
    6 |         if ( x == 0 ) break{
      |                            ^
      |                            ;
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |             cout << "Case " << t << ":" << x << endl;
      |             ^~~~
a.cc:7:49: error: 'endl' was not declared in this scope
    7 |             cout << "Case " << t << ":" << 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 " << t << ":" << 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:4:18: error: 't' was not declared in this scope
    4 |     for ( int x; t = 1; t++ ){
      |                  ^
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "Case " << t << ":" << x << endl;
      |         ^~~~
a.cc:7:45: error: 'endl' was not declared in this scope
    7 |         cout << "Case " << t << ":" << 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 " << t << ":" << 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:4:28: error: expected ';' before ')' token
    4 |     for ( int x, t = 1; t++ ){
      |                            ^~
      |                            ;
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "Case " << t << ":" << x << endl;
      |         ^~~~
a.cc:7:45: error: 'endl' was not declared in this scope
    7 |         cout << "Case " << t << ":" << x << endl;
      |                                             ^~~~
Language: C++

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

#include <iostream>
using namespace std;

int main(){
    int x[10000], x, i, j;
    for (i = 0; i < 10000; ++i){
        cin >> x[i];
        if (x == 0){
            break;
        }
    }
    for (j = 0; j < i; ++j){
        cout << "Case " << j << " " << x[j] << endl;
    }
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: conflicting declaration 'int x'
    5 |     int x[10000], x, i, j;
      |                   ^
a.cc:5:9: note: previous declaration as 'int x [10000]'
    5 |     int x[10000], x, i, j;
      |         ^
Language: C++

#include<iostream>
using namespace std;

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




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

#include<iostream>
using namespace std;

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




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

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

int n=1;
int num;

int main(){
    while(num != 0){
        cin>>num;
        cout<<"Case "+n+"; "+num<<endl;
        n+=1;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
   10 |         cout<<"Case "+n+"; "+num<<endl;
      |               ~~~~~~~~~^~~~~
      |                      |  |
      |                      |  const char [3]
      |                      const char*
Language: C++

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


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

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


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

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


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

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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected '(' before 'n'
    7 |         if n==0;
      |            ^
      |            (
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else if;
      |         ^~~~
a.cc:9:16: error: expected '(' before ';' token
    9 |         else if;
      |                ^
      |                (
a.cc:11:44: error: expected ';' before 'return'
   11 |            cout <<"Case "<<i<<": "<<n<<endl
      |                                            ^
      |                                            ;
   12 | 
   13 |     return 0;
      |     ~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected '(' before 'n'
    7 |         if n==0;
      |            ^
      |            (
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else if;
      |         ^~~~
a.cc:9:16: error: expected '(' before ';' token
    9 |         else if;
      |                ^
      |                (
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected '(' before 'n'
    7 |         if n==0;
      |            ^
      |            (
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else ;
      |         ^~~~
Language: C++

including<iostream>
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'including' does not name a type
    1 | including<iostream>
      | ^~~~~~~~~
a.cc:5:5: error: expected initializer before 'int'
    5 |     int i=1,x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'while'
    6 |     while(cin >> x && x!=0 ){
      |     ^~~~~
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else ;
      |         ^~~~
Language: C++

#including<iostream>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<iostream>
      |  ^~~~~~~~~
      |  include
a.cc:5:5: error: expected initializer before 'int'
    5 |     int i=1,x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'while'
    6 |     while(cin >> x && x!=0 ){
      |     ^~~~~
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:5:5: error: expected initializer before 'int'
    5 |     int i=1,x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'while'
    6 |     while(cin >> x && x!=0 ){
      |     ^~~~~
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:5:5: error: expected initializer before 'int'
    5 |     int i=1,x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'while'
    6 |     while(cin >> x && x!=0 ){
      |     ^~~~~
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'count'?
    9 |         cout << "Case " << count << ": " << x << endl;
      |         ^~~~
      |         count
a.cc:9:50: error: 'endl' was not declared in this scope
    9 |         cout << "Case " << count << ": " << x << endl;
      |                                                  ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:10:28: error: 'i' was not declared in this scope
   10 |            cout <<"Case "<<i<<": "<<n<<endl;
      |                            ^
a.cc: At global scope:
a.cc:14:5: error: expected unqualified-id before 'return'
   14 |     return 0;
      |     ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'if'
    7 |         cin>>x
      |               ^
      |               ;
    8 |         if (x==0) break;
      |         ~~     
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else cout<<"Case "<<i<<": "<<x<<endl;
      |         ^~~~
a.cc:10:13: error: expected ';' before '}' token
   10 |         i+=1
      |             ^
      |             ;
   11 |     }
      |     ~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:10:9: error: 'i' was not declared in this scope
   10 |         i==0
      |         ^
a.cc: At global scope:
a.cc:16:5: error: expected unqualified-id before 'return'
   16 |     return 0;
      |     ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:52: error: 'endl' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |                                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <iostream>
a.cc:10:12: error: expected ';' before '}' token
   10 |         i++
      |            ^
      |            ;
   11 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'x' was not declared in this scope
    6 |     while(x=0){
      |           ^
a.cc:8:12: error: expected ';' before 'cout'
    8 |         n++
      |            ^
      |            ;
    9 |         cout >> "Case " >> n >> ":" >> x >> endl;
      |         ~~~~
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:52: error: 'endl' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |                                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <iostream>
a.cc:10:12: error: expected ';' before 'return0'
   10 |         i++
      |            ^
      |            ;
   11 |         return0 0;
      |         ~~~~~~~
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:52: error: 'endl' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |                                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <iostream>
a.cc:10:12: error: expected ';' before 'return'
   10 |         i++
      |            ^
      |            ;
   11 |         return 0;
      |         ~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: break statement not within loop or switch
    8 |            break;
      |            ^~~~~
a.cc:11:13: error: expected ';' before 'cout'
   11 |         i==1
      |             ^
      |             ;
   12 | 
   13 |         cout <<"Case "<<i<<": "<<n<<endl;
      |         ~~~~ 
a.cc:14:12: error: expected ';' before '}' token
   14 |         i++
      |            ^
      |            ;
   15 |         }
      |         ~   
a.cc: At global scope:
a.cc:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'x' was not declared in this scope
    6 |     while(x==0){
      |           ^
a.cc:8:12: error: expected ';' before 'cout'
    8 |         n++
      |            ^
      |            ;
    9 |         cout >> "Case " >> n >> ":" >> x >> endl;
      |         ~~~~
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:52: error: 'endl' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<<x<<endl;
      |                                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <iostream>
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'x' was not declared in this scope
    5 |     cin >> x;
      |            ^
a.cc:8:12: error: expected ';' before 'cout'
    8 |         n++
      |            ^
      |            ;
    9 |         cout >> "Case " >> n >> ":" >> x >> endl;
      |         ~~~~
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<< x<< endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:54: error: 'endl' was not declared in this scope
    9 |         cout << "case" <<" " << i << ":"<< " "<< x<< endl;
      |                                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <iostream>
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'cout'
    9 |         n++
      |            ^
      |            ;
   10 |         cout >> "Case " >> n >> ":" >> x >> endl;
      |         ~~~~
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Case" <<" " << i << ":"<< " "<< x<< endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:54: error: 'endl' was not declared in this scope
    9 |         cout << "Case" <<" " << i << ":"<< " "<< x<< endl;
      |                                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includ <iostream>
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: conflicting declaration 'int number []'
    6 |     int number[];
      |         ^~~~~~
a.cc:4:9: note: previous declaration as 'int number'
    4 |     int number;
      |         ^~~~~~
a.cc:12:22: error: invalid types 'int[int]' for array subscript
   12 |         cin >> number[i];
      |                      ^
a.cc:13:18: error: invalid types 'int[int]' for array subscript
   13 |         if(number[i] == 0){
      |                  ^
a.cc:22:47: error: invalid types 'int[int]' for array subscript
   22 |         cout << "Case " << i << ": " << number[i] << endl;
      |                                               ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x;
    int 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:6:5: error: expected ',' or ';' before 'while'
    6 |     while(1){
      |     ^~~~~
Language: C++

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


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

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


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

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

        i++;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: conflicting declaration 'int number []'
    6 |     int number[];
      |         ^~~~~~
a.cc:4:9: note: previous declaration as 'int number'
    4 |     int number;
      |         ^~~~~~
a.cc:17:55: error: invalid types 'int[int]' for array subscript
   17 |                 cout << "Case " << i << ": " << number[i] << endl;
      |                                                       ^
Language: C++

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

        i++;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: conflicting declaration 'int number []'
    6 |     int number[];
      |         ^~~~~~
a.cc:4:9: note: previous declaration as 'int number'
    4 |     int number;
      |         ^~~~~~
Language: C++

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


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

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


Compiler output:
a.cc:2:17: error: 'syd' is not a namespace-name
    2 | using namespace syd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout<<"Case "<<n<<": "<<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:11:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout<<"Case "<<n<<": "<<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 x;
    
    for(i = 1; i <= 10000; i ++){
        
        if(x = 0) break;
        
        cin >> x;
        cout << "Case " << i << ": " << x << endl;
        
    }
    
    return 0;
}


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