criyle/codenet-compile-errors huggingface dataset:
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 a;
    for(int i=0;i<a;i++){
        cin>>x;
        cout<<"Case"<<" "<<i<<":"<<" "<<x<<endl;
    }return 0;
}


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

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


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

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


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

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


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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: redeclaration of 'int i'
    5 |     i = 1;
      |     ^
a.cc:4:9: note: 'int i' previously declared here
    4 |     int i,
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: redeclaration of 'int i'
    5 |     i = 1;
      |     ^
a.cc:4:9: note: 'int i' previously declared here
    4 |     int i,
      |         ^
Language: C++

#include<instream>
using namespace std;
int main(){
    int i;
    cin>>i;
     for(int i=0,i<n+1){
         cout<<"Case"<<i;
         
     }
     
     cout<,endl;
     
     return 0;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: redeclaration of 'int i'
    5 |     i = 1;
      |     ^
a.cc:4:9: note: 'int i' previously declared here
    4 |     int i,
      |         ^
Language: C++

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


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

#include<instream>
using namespace std;
int main(){
    int i;
    cin>>i;
     for(int i=0,i<n+1,i++){
         cout<<"Case"<<i;
         
     }
     
     cout<,endl;
     
     return 0;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'if'
    9 |         cin >> n
      |                 ^
      |                 ;
   10 | 
   11 |         if (n == 0){
      |         ~~       
a.cc:17:12: error: expected ';' before '}' token
   17 |         i++
      |            ^
      |            ;
   18 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'if'
    9 |         cin >> n
      |                 ^
      |                 ;
   10 | 
   11 |         if (n == 0) break;
      |         ~~       
a.cc:16:12: error: expected ';' before '}' token
   16 |         i++
      |            ^
      |            ;
   17 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'if'
    6 |         cin>>n
      |               ^
      |               ;
    7 |         if(n==0){
      |         ~~     
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else{
      |         ^~~~
Language: C++

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


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

#include<instream>
using namespace std;
int main(){
    int i;
    int n;
    cin>>i;
     for(int i=0,i<10000,n++){
         cout<<"Case"<<n<<" "<<i;
         
     }
     
     cout<,endl;
     
     return 0;
}


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

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'n' was not declared in this scope
   14 |         n +=1;
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: redeclaration of 'int i'
    5 |     i = 1;
      |     ^
a.cc:4:9: note: 'int i' previously declared here
    4 |     int i,
      |         ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'n' was not declared in this scope
    5 |     while(n!=0){
      |           ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected unqualified-id before 'int'
    7 |      for(int x=0,int i=0,x<10000,i++){
      |                  ^~~
a.cc:7:18: error: expected ';' before 'int'
    7 |      for(int x=0,int i=0,x<10000,i++){
      |                  ^~~
      |                  ;
a.cc:7:25: error: expected ';' before ',' token
    7 |      for(int x=0,int i=0,x<10000,i++){
      |                         ^
      |                         ;
a.cc:7:25: error: expected primary-expression before ',' token
a.cc: At global scope:
a.cc:15:6: error: 'cout' does not name a type
   15 |      cout<<endl;
      |      ^~~~
a.cc:17:6: 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 x;
    cin >>x;
    for (i=0; x!=0; i++){
        
        cout << "Case "<<i<<": "<<x<<endl;
        
    }
    return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:5: error: expected primary-expression before 'int'
    4 |     int x;
      |     ^~~
a.cc:4:5: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin >>x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'for'
    6 |     for (i=0; x!=0; i++){
      |     ^~~
a.cc:6:15: error: 'x' does not name a type
    6 |     for (i=0; x!=0; i++){
      |               ^
a.cc:6:21: error: 'i' does not name a type
    6 |     for (i=0; x!=0; i++){
      |                     ^
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:5: error: expected primary-expression before 'int'
    4 |     int x;
      |     ^~~
a.cc:4:5: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin >>x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'for'
    6 |     for (i=0; x=0; i++){
      |     ^~~
a.cc:6:15: error: 'x' does not name a type
    6 |     for (i=0; x=0; i++){
      |               ^
a.cc:6:20: error: 'i' does not name a type
    6 |     for (i=0; x=0; i++){
      |                    ^
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'int'
    8 |         i=i+1
      |              ^
      |              ;
    9 |         int x;
      |         ~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int x;
    
    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:9:28: error: 'i' 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;
        cout << "Case " << i <<": " << x << endl;
        if(x == 0) break;
        
    }
    return 0;
}


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

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


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

#include<iostream>
using namespace std;

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'int'
    8 |         i=i+1
      |              ^
      |              ;
    9 |         int x;
      |         ~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |     cout << "case", + i , +":",+ n << endl;}
      |                                ~~~~^~~~~~~
a.cc:7:15: error: break statement not within loop or switch
    7 |     if(n == 0)break;
      |               ^~~~~
Language: C++

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


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:5: error: expected primary-expression before 'int'
    4 |     int x;
      |     ^~~
a.cc:4:5: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin >>x;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'for'
    6 |     for (i=0; x!=0; i++){
      |     ^~~
a.cc:6:15: error: 'x' does not name a type
    6 |     for (i=0; x!=0; i++){
      |               ^
a.cc:6:21: error: 'i' does not name a type
    6 |     for (i=0; x!=0; i++){
      |                     ^
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'int'
    8 |         i=i+1
      |              ^
      |              ;
    9 |         int x;
      |         ~~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << "case", + i , +":",+ n << endl;}
      |                                ~~~~^~~~~~~
a.cc:8:15: error: break statement not within loop or switch
    8 |     if(n == 0)break;
      |               ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ')' before ';' token
    6 |     while(int i=1;i<10000;i++){
      |          ~       ^
      |                  )
a.cc:6:19: error: 'i' was not declared in this scope
    6 |     while(int i=1;i<10000;i++){
      |                   ^
a.cc: At global scope:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ')' before ';' token
    6 |     while(int i=1;i<10000;i++){
      |          ~       ^
      |                  )
a.cc:6:19: error: 'i' was not declared in this scope
    6 |     while(int i=1;i<10000;i++){
      |                   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |      for(i=0,i<1000000,i++){
      |                           ^
      |                           ;
a.cc:13:6: error: expected primary-expression before '}' token
   13 |      }
      |      ^
a.cc:11:10: error: expected ';' before '}' token
   11 |         }
      |          ^
      |          ;
   12 | 
   13 |      }
      |      ~    
a.cc:13:6: error: expected primary-expression before '}' token
   13 |      }
      |      ^
a.cc:11:10: error: expected ')' before '}' token
   11 |         }
      |          ^
      |          )
   12 | 
   13 |      }
      |      ~    
a.cc:6:9: note: to match this '('
    6 |      for(i=0,i<1000000,i++){
      |         ^
a.cc:13:6: error: expected primary-expression before '}' token
   13 |      }
      |      ^
a.cc: At global scope:
a.cc:15:6: error: 'cout' does not name a type
   15 |      cout<<endl;
      |      ^~~~
a.cc:17:6: 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 i;
    int x;
     for(i=0,i<1000000,i++){
         cin>>x;
         if(x==0) break;
         cout<<"Case "<<i<<": "<<x;
         
        
         
     }
     
     cout<<endl;
     
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |      for(i=0,i<1000000,i++){
      |                           ^
      |                           ;
a.cc:17:6: error: expected primary-expression before 'return'
   17 |      return 0;
      |      ^~~~~~
a.cc:15:17: error: expected ')' before 'return'
   15 |      cout<<endl;
      |                 ^
      |                 )
   16 | 
   17 |      return 0;
      |      ~~~~~~      
a.cc:6:9: note: to match this '('
    6 |      for(i=0,i<1000000,i++){
      |         ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ')' before ';' token
    7 |     for (i=0; x!=0; i++;){
      |         ~              ^
      |                        )
a.cc:7:25: error: expected primary-expression before ')' token
    7 |     for (i=0; x!=0; i++;){
      |                         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected '(' before 'true'
    6 |     while true{
      |           ^~~~
      |           (
a.cc:6:15: error: expected ')' before '{' token
    6 |     while true{
      |           ~~~~^
      |               )
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: break statement not within loop or switch
    8 |     if(n == 0){break;}
      |                ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before ')' token
    6 |      for(i=0){
      |             ^
      |             ;
a.cc:17:6: error: expected primary-expression before 'return'
   17 |      return 0;
      |      ^~~~~~
a.cc:15:17: error: expected ')' before 'return'
   15 |      cout<<endl;
      |                 ^
      |                 )
   16 | 
   17 |      return 0;
      |      ~~~~~~      
a.cc:6:9: note: to match this '('
    6 |      for(i=0){
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before ')' token
    7 |     for( int i = 0; i<n+1 ,i++){
      |                               ^
      |                               ;
a.cc:10:12: error: expected '(' before 'n'
   10 |         if n == 0 break;
      |            ^
      |            (
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before ')' token
    6 |      for(i=0){
      |             ^
      |             ;
a.cc:17:6: error: expected primary-expression before 'return'
   17 |      return 0;
      |      ^~~~~~
a.cc:15:17: error: expected ')' before 'return'
   15 |      cout<<endl;
      |                 ^
      |                 )
   16 | 
   17 |      return 0;
      |      ~~~~~~      
a.cc:6:9: note: to match this '('
    6 |      for(i=0){
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before ')' token
    7 |     for( int i = 0; i<n+1 ,i++){
      |                               ^
      |                               ;
a.cc:10:12: error: expected '(' before 'n'
   10 |         if n == 0 break;
      |            ^
      |            (
Language: C++

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


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

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


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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected '(' before 'n'
   10 |         if n == 0 break;
      |            ^
      |            (
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before ')' token
    6 |      for(i=0,i++){
      |                 ^
      |                 ;
a.cc:17:6: error: expected primary-expression before 'return'
   17 |      return 0;
      |      ^~~~~~
a.cc:15:17: error: expected ')' before 'return'
   15 |      cout<<endl;
      |                 ^
      |                 )
   16 | 
   17 |      return 0;
      |      ~~~~~~      
a.cc:6:9: note: to match this '('
    6 |      for(i=0,i++){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    for(i = 1;;i++){
    cout << "Case " << i << ": " << n << endl;
    if(n == 0){break;}
    }
    cout << 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++){
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected ',' or ';' before 'cin'
    5 |     cin >> x;
      |     ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    for(i = 1;i++){
    cout << "Case " << i << ": " << n << endl;
    if(n == 0){break;}
    }
    cout << 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++){
      |         ^
a.cc:6:18: error: expected ';' before ')' token
    6 |     for(i = 1;i++){
      |                  ^
      |                  ;
Language: C++

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


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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected '(' before 'n'
   11 |         if n == 0 break;
      |            ^
      |            (
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected '(' before 'n'
   11 |         if n == 0 break;
      |            ^
      |            (
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ';' before ':' token
    8 |         cout << "case" << "" << i: << "" << n << endl;
      |                                  ^
      |                                  ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int i,i=1;
    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:4:11: error: redeclaration of 'int i'
    4 |     int i,i=1;
      |           ^
a.cc:4:9: note: 'int i' previously declared here
    4 |     int i,i=1;
      |         ^
Language: C++

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


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

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


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

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


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

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

    


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

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

    


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

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

   typedef long long ll;
   typedef pair<ll, ll> Pii;
   typedef vector<ll> Vi;
   typedef vector<Vi> VVi;

   const double EPS = (1e-7);
   const ll INF =(1e13);
   const double PI = (acos(-1));
   const ll MOD = ll(1e9) + 7;

   #define REP(i, n) for(ll i = 0; i < (ll)(n); i++)
   #define REPR(i, n) for(ll i = n; i > -1; i--)
   #define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
   #define ALL(x) (x).begin(),(x).end()
   #define SORT(x) sort((x).begin(), (x).end())
   #define RSORT(x) sort((x).rbegin(), (x).rend())
   #define REVERSE(x) reverse((x).begin(), (x).end())
   #define SZ(x) ((ll)(x).size())
   #define pb push_back
   #define mp make_pair

   //chmax(a, b): a>bならaをbで更新　更新したときにtrueを返す
   //chmin(a, b): a<bならaをbで更新　更新したときにtrueを返す
   template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
   template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

   #define dump(x) cerr<< #x << "= " << (x) << endl;

   ll gcd(ll a, ll b){return b?gcd(b,a%b):a;}
   ll pow(ll a, ll b){if (b == 0) return 1; else if (b % 2 == 0) return pow(a * a, b / 2); else return pow(a * a, b / 2) * a;}
   ll pow(ll a, ll b, ll m){if (b == 0) return 1; else if (a == 0) return 0; else if (b % 2 == 0) return (pow((a * a) % m, b / 2, m) % m); else return (pow((a * a) % m, b / 2, m) * a) % m;}
   ll residue(ll a, ll m){return ((a % m) + m) % m;};

   ll dx[4]={1,0,-1,0};
   ll dy[4]={0,1,0,-1};

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



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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:42: error: expected ';' before 'i'
   10 |         cout << "Case " << i << ": " << x
      |                                          ^
      |                                          ;
   11 |         i += 1;
      |         ~
Language: C++

#include <stdio.h>
 
int main()
{
    for(int i = 0; i < 10000; ++i){
        scanf("%d", &Input);
        if(Input == 0) return 0;
        printf("Case %d: %d\n", 1 + i, Input);
        fflush(stdout);
    }
    return 0;
}


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

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

int main(){
    
    int x;
    
    for ( i = 1: i = 0; i++; )
    {
        cout<<"case " x <<endl;
        
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'i' was not declared in this scope
    8 |     for ( i = 1: i = 0; i++; )
      |           ^
a.cc:10:22: error: expected ';' before 'x'
   10 |         cout<<"case " x <<endl;
      |                      ^~
      |                      ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'i' was not declared in this scope
   10 |     for ( i = 1: i = 0; i++; )
      |           ^
a.cc:12:22: error: expected ';' before 'x'
   12 |         cout<<"case " x <<endl;
      |                      ^~
      |                      ;
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: invalid types 'int[int]' for array subscript
    7 |                 scanf("%d",&x[i]);
      |                              ^
a.cc:11:40: error: invalid types 'int[int]' for array subscript
   11 |                 printf("Case i: %d\n",x[i]);
      |                                        ^
a.cc:14:18: error: expected '}' at end of input
   14 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
	int x;
	while(1)
	{
    scanf("%d", &x);
	}
    if ( x == 0 )
    {
    break;
    }
	return 0;
}


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

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

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


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

#include<iostream>
using namespace std;

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

    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
   10 |         ( 1 <= x <= 10000)
      |                           ^
      |                           ;
   11 | 
   12 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expression cannot be used as a function
    9 |         i++
      |         ~~~
   10 |         ( i <= 10000)
      |         ^~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

     return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected primary-expression before ')' token
    6 |     while ( x == 0, ) {
      |                     ^
a.cc:9:12: error: expected ';' before 'return'
    9 |         i++
      |            ^
      |            ;
   10 | 
   11 |      return 0;
      |      ~~~~~~
Language: C++

#Include <stdio.h>

int main() {
    int x;
    while 1 {
        scanf("d", &x);
        if(x != 0) printf("%d\n", x);
        else break;
    }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:11: error: expected '(' before numeric constant
    5 |     while 1 {
      |           ^
      |           (
a.cc:5:12: error: expected ')' before '{' token
    5 |     while 1 {
      |           ~^~
      |            )
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("d", &x);
      |         ^~~~~
a.cc:7:20: error: 'printf' was not declared in this scope
    7 |         if(x != 0) printf("%d\n", x);
      |                    ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #Include <stdio.h>
Language: C++

#include <stdio.h>

int main() {
    int x;
    while 1 {
        scanf("d", &x);
        if(x != 0) printf("%d\n", x);
        else break;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected '(' before numeric constant
    5 |     while 1 {
      |           ^
      |           (
a.cc:5:12: error: expected ')' before '{' token
    5 |     while 1 {
      |           ~^~
      |            )
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: break statement not within loop or switch
    7 |         if(x==0) break;
      |                  ^~~~~
a.cc:8:33: error: 'i' was not declared in this scope
    8 |         printf("Case %d: %d\n", i, x);
      |                                 ^
a.cc: At global scope:
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: cannot convert 'int*' to 'const char*'
    6 |     scanf(&x);
      |           ^~
      |           |
      |           int*
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:31: error: expected primary-expression before ',' token
    8 |         printf("Case %d: %d", ,x);
      |                               ^
a.cc:10:15: error: cannot convert 'int*' to 'const char*'
   10 |         scanf(&x);
      |               ^~
      |               |
      |               int*
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected primary-expression before ',' token
    8 |         printf("Case %d: %d", ,x);
      |                               ^