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

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    char mark;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    
    for(int i=1;i<=n,i++){
        cin>>mark>>x;
            if(mark=="S"){
                card[0][i]=true;
            }
            else if(mark=="H"){
                card[1][i]=true;
            }
            else if(mark=="C"){
                card[2][i]=true;
            }
            else if(mark=="D"){
                card[3][i]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13,j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before ')' token
   13 |     for(int i=1;i<=n,i++){
      |                         ^
      |                         ;
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |             if(mark=="S"){
      |                ~~~~^~~~~
a.cc:18:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |             else if(mark=="H"){
      |                     ~~~~^~~~~
a.cc:21:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |             else if(mark=="C"){
      |                     ~~~~^~~~~
a.cc:24:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |             else if(mark=="D"){
      |                     ~~~~^~~~~
a.cc:29:30: error: expected ';' before ')' token
   29 |         for(int j=1;j<=13,j++){
      |                              ^
      |                              ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    char mark;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    
    for(int i=1;i<=n;i++){
        cin>>mark>>x;
            if(mark=="S"){
                card[0][i]=true;
            }
            else if(mark=="H"){
                card[1][i]=true;
            }
            else if(mark=="C"){
                card[2][i]=true;
            }
            else if(mark=="D"){
                card[3][i]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |             if(mark=="S"){
      |                ~~~~^~~~~
a.cc:18:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |             else if(mark=="H"){
      |                     ~~~~^~~~~
a.cc:21:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |             else if(mark=="C"){
      |                     ~~~~^~~~~
a.cc:24:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |             else if(mark=="D"){
      |                     ~~~~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    
    for(int i=1;i<=n;i++){
        cin>>char>>x;
            if(char=="S"){
                card[0][i]=true;
            }
            else if(char=="H"){
                card[1][i]=true;
            }
            else if(char=="C"){
                card[2][i]=true;
            }
            else if(char=="D"){
                card[3][i]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected primary-expression before 'char'
   13 |         cin>>char>>x;
      |              ^~~~
a.cc:14:20: error: expected unqualified-id before '==' token
   14 |             if(char=="S"){
      |                    ^~
a.cc:17:25: error: expected unqualified-id before '==' token
   17 |             else if(char=="H"){
      |                         ^~
a.cc:20:25: error: expected unqualified-id before '==' token
   20 |             else if(char=="C"){
      |                         ^~
a.cc:23:25: error: expected unqualified-id before '==' token
   23 |             else if(char=="D"){
      |                         ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    
    for(int i=1;i<=n;i++){
        cin>>char>>x;
            if(char="S"){
                card[0][i]=true;
            }
            else if(char="H"){
                card[1][i]=true;
            }
            else if(char="C"){
                card[2][i]=true;
            }
            else if(char="D"){
                card[3][i]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected primary-expression before 'char'
   13 |         cin>>char>>x;
      |              ^~~~
a.cc:14:20: error: expected unqualified-id before '=' token
   14 |             if(char="S"){
      |                    ^
a.cc:17:25: error: expected unqualified-id before '=' token
   17 |             else if(char="H"){
      |                         ^
a.cc:20:25: error: expected unqualified-id before '=' token
   20 |             else if(char="C"){
      |                         ^
a.cc:23:25: error: expected unqualified-id before '=' token
   23 |             else if(char="D"){
      |                         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    
    for(int i=1;i<=n;i++){
        cin>>char>>x;
            if(char=="S"){
                card[0][x]=true;
            }
            else if(char=="H"){
                card[1][x]=true;
            }
            else if(char=="C"){
                card[2][x]=true;
            }
            else if(char=="D"){
                card[3][x]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected primary-expression before 'char'
   13 |         cin>>char>>x;
      |              ^~~~
a.cc:14:20: error: expected unqualified-id before '==' token
   14 |             if(char=="S"){
      |                    ^~
a.cc:17:25: error: expected unqualified-id before '==' token
   17 |             else if(char=="H"){
      |                         ^~
a.cc:20:25: error: expected unqualified-id before '==' token
   20 |             else if(char=="C"){
      |                         ^~
a.cc:23:25: error: expected unqualified-id before '==' token
   23 |             else if(char=="D"){
      |                         ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=1;i<=n;i++){
        cin>>y>>x;
            if(y=="S"){
                card[0][x]=true;
            }
            else if(y=="H"){
                card[1][x]=true;
            }
            else if(y=="C"){
                card[2][x]=true;
            }
            else if(y=="D"){
                card[3][x]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |             if(y=="S"){
      |                ~^~~~~
a.cc:17:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |             else if(y=="H"){
      |                     ~^~~~~
a.cc:20:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |             else if(y=="C"){
      |                     ~^~~~~
a.cc:23:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |             else if(y=="D"){
      |                     ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=1;i<=n;i++){
        cin>>y>>x;
        if(y=="S"){
           card[0][x]=true;
        }
        else if(y=="H"){
            card[1][x]=true;
        }
        else if(y=="C"){
            card[2][x]=true;
        }
        else if(y=="D"){
            card[3][x]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(y=="S"){
      |            ~^~~~~
a.cc:17:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         else if(y=="H"){
      |                 ~^~~~~
a.cc:20:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |         else if(y=="C"){
      |                 ~^~~~~
a.cc:23:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         else if(y=="D"){
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13];
    cin>>n;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=1;i<=n;i++){
        cin>>y>>x;
        if(y=="S"){
           card[0][x]=true;
        }
        else if(y=="H"){
            card[1][x]=true;
        }
        else if(y=="C"){
            card[2][x]=true;
        }
        else if(y=="D"){
            card[3][x]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(y=="S"){
      |            ~^~~~~
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         else if(y=="H"){
      |                 ~^~~~~
a.cc:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         else if(y=="C"){
      |                 ~^~~~~
a.cc:24:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         else if(y=="D"){
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ;
    int card[4][13];
    cin>>n;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    for(int i=1;i<=n;i++){
        int x;
        char y;
        cin>>y>>x;
        if(y=="S"){
           card[0][x]=true;
        }
        else if(y=="H"){
            card[1][x]=true;
        }
        else if(y=="C"){
            card[2][x]=true;
        }
        else if(y=="D"){
            card[3][x]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(y=="S"){
      |            ~^~~~~
a.cc:19:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         else if(y=="H"){
      |                 ~^~~~~
a.cc:22:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |         else if(y=="C"){
      |                 ~^~~~~
a.cc:25:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |         else if(y=="D"){
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x ;
    int card[4][13];
    cin>>n;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=1;i<=n;i++){
        cin>>y>>x;
        if(y=="S"){
           card[0][x]=true;
        }
        else if(y=="H"){
            card[1][x]=true;
        }
        else if(y=="C"){
            card[2][x]=true;
        }
        else if(y=="D"){
            card[3][x]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(y=="S"){
      |            ~^~~~~
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         else if(y=="H"){
      |                 ~^~~~~
a.cc:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         else if(y=="C"){
      |                 ~^~~~~
a.cc:24:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         else if(y=="D"){
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x ;
    int card[5][14];
    cin>>n;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=1;i<=n;i++){
        cin>>y>>x;
        if(y=="S"){
           card[0][x]=true;
        }
        else if(y=="H"){
            card[1][x]=true;
        }
        else if(y=="C"){
            card[2][x]=true;
        }
        else if(y=="D"){
            card[3][x]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]==false){
                if(i==0){
                    cout<<"S "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(y=="S"){
      |            ~^~~~~
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         else if(y=="H"){
      |                 ~^~~~~
a.cc:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         else if(y=="C"){
      |                 ~^~~~~
a.cc:24:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         else if(y=="D"){
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x ;
    int card[5][14];
    cin>>n;
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=1;i<=n;i++){
        cin>>y>>x;
        if(y=="S"){
           card[0][x]=true;
        }
        else if(y=="H"){
            card[1][x]=true;
        }
        else if(y=="C"){
            card[2][x]=true;
        }
        else if(y=="D"){
            card[3][x]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            if(card[i][j]=!true){
                if(i==0){
                    cout<<"S"<<" "<<j<<endl;
                }
                else if(i==1){
                    cout<<"H"<<" "<<j<<endl;
                }
                else if(i==2){
                    cout<<"C"<<" "<<j<<endl;
                }
                else if(i==3){
                    cout<<"D"<<" "<<j<<endl;
                }    
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(y=="S"){
      |            ~^~~~~
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         else if(y=="H"){
      |                 ~^~~~~
a.cc:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         else if(y=="C"){
      |                 ~^~~~~
a.cc:24:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         else if(y=="D"){
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x ;
    int card[4][13]={{}};
    cin>>n;
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            card[i][j]=false;
        }
    }
    char y;
    for(int i=0;i<=n;i++){
        cin>>y>>x;
        if(y=='S'){
           card[0][x-1]=true;
        }
        else if(y=='H'){
            card[1][x-1]=true;
        }
        else if(y=='C'){
            card[2][x-1]=true;
        }
        else if(y=='D'){
            card[3][x-1]=true;
        }
    }
for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            if(card[i][j]==0){
                if(i==0){
                    cout<<'S'<<" "<<j<<endl;
                }
                else if(i==1){
                    cout<<'H'<<" "<<j<<endl;
                }


Compiler output:
a.cc: In function 'int main()':
a.cc:36:18: error: expected '}' at end of input
   36 |                 }
      |                  ^
a.cc:30:30: note: to match this '{'
   30 |             if(card[i][j]==0){
      |                              ^
a.cc:36:18: error: expected '}' at end of input
   36 |                 }
      |                  ^
a.cc:29:30: note: to match this '{'
   29 |         for(int j=0;j<13;j++){
      |                              ^
a.cc:36:18: error: expected '}' at end of input
   36 |                 }
      |                  ^
a.cc:28:21: note: to match this '{'
   28 | for(int i=0;i<4;i++){
      |                     ^
a.cc:36:18: error: expected '}' at end of input
   36 |                 }
      |                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

include<cstdio>
int main(){
    intn;
    int card[52]={0};
    scanf(“ %d”, &n);
    for(int i=1;i<=n;i++){
        char c;
        int a;
        scanf(“ %c %d”, &c, &a);
        if(c==‘S’) card[a-1]=1;
        else if(c==’H’) card[a-1+13]=1;
        else if(c==‘C’) card[a-1+26]=1;
        else if(c==‘D’) card[a-1+39]=1;
    }
    
}


Compiler output:
a.cc:5:11: error: extended character “ is not valid in an identifier
    5 |     scanf(“ %d”, &n);
      |           ^
a.cc:5:14: error: extended character ” is not valid in an identifier
    5 |     scanf(“ %d”, &n);
      |              ^
a.cc:9:15: error: extended character “ is not valid in an identifier
    9 |         scanf(“ %c %d”, &c, &a);
      |               ^
a.cc:9:21: error: extended character ” is not valid in an identifier
    9 |         scanf(“ %c %d”, &c, &a);
      |                     ^
a.cc:10:15: error: extended character ‘ is not valid in an identifier
   10 |         if(c==‘S’) card[a-1]=1;
      |               ^
a.cc:10:15: error: extended character ’ is not valid in an identifier
a.cc:11:20: error: extended character ’ is not valid in an identifier
   11 |         else if(c==’H’) card[a-1+13]=1;
      |                    ^
a.cc:11:20: error: extended character ’ is not valid in an identifier
a.cc:12:20: error: extended character ‘ is not valid in an identifier
   12 |         else if(c==‘C’) card[a-1+26]=1;
      |                    ^
a.cc:12:20: error: extended character ’ is not valid in an identifier
a.cc:13:20: error: extended character ‘ is not valid in an identifier
   13 |         else if(c==‘D’) card[a-1+39]=1;
      |                    ^
a.cc:13:20: error: extended character ’ is not valid in an identifier
a.cc:1:1: error: 'include' does not name a type
    1 | include<cstdio>
      | ^~~~~~~
Language: C++

include<cstdio>
int main(){
    intn;
    int card[52]={0};
    scanf(“ %d”, &n);
    for(int i=1;i<=n;i++){
        char c;
        int a;
        scanf(“ %c %d”, &c, &a);
        if(c==‘S’) card[a-1]=1;
        else if(c==’H’) card[a-1+13]=1;
        else if(c==‘C’) card[a-1+26]=1;
        else if(c==‘D’) card[a-1+39]=1;
        
    }
    for(int i=1;i<=52;++i){
        if(card[i]==0){
            
        }
    }
    
}


Compiler output:
a.cc:5:11: error: extended character “ is not valid in an identifier
    5 |     scanf(“ %d”, &n);
      |           ^
a.cc:5:14: error: extended character ” is not valid in an identifier
    5 |     scanf(“ %d”, &n);
      |              ^
a.cc:9:15: error: extended character “ is not valid in an identifier
    9 |         scanf(“ %c %d”, &c, &a);
      |               ^
a.cc:9:21: error: extended character ” is not valid in an identifier
    9 |         scanf(“ %c %d”, &c, &a);
      |                     ^
a.cc:10:15: error: extended character ‘ is not valid in an identifier
   10 |         if(c==‘S’) card[a-1]=1;
      |               ^
a.cc:10:15: error: extended character ’ is not valid in an identifier
a.cc:11:20: error: extended character ’ is not valid in an identifier
   11 |         else if(c==’H’) card[a-1+13]=1;
      |                    ^
a.cc:11:20: error: extended character ’ is not valid in an identifier
a.cc:12:20: error: extended character ‘ is not valid in an identifier
   12 |         else if(c==‘C’) card[a-1+26]=1;
      |                    ^
a.cc:12:20: error: extended character ’ is not valid in an identifier
a.cc:13:20: error: extended character ‘ is not valid in an identifier
   13 |         else if(c==‘D’) card[a-1+39]=1;
      |                    ^
a.cc:13:20: error: extended character ’ is not valid in an identifier
a.cc:1:1: error: 'include' does not name a type
    1 | include<cstdio>
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,a;
    char suto;
    bool cards[4][13];
    for(int i=0;i<=3;i++){
        for(int k=0;k<=12;k++){
            cards[i][k]=false;
        }
    }
    cin  >>n;
    for(int i=0;i<=n;i++){
        cin >>suto >>a;
        if (suto==S){
            cards[0][a-1]=true;
        }
        else if(suto==H){
            cards[1][a-1]=true;
        }
        else if(suto==C){
            cards[2][a-1]=true;
        }
        else if(suto==D){
            cards[3][a-1]=true;
        }
    
    }
    for(int i=0;i<=3;i++){
        for(int k=0;k<=12;k++){
            if (cards[i][k]=false){
                if (i==0){
                    cout<<"S"<<" "<<k+1<<endl;
                }
                else if(i==1){
                    cout<<"H"<<" "<<k+1;
                }
                else if(i==2){
                   cout<<"C"<<" "<<k+1;
                }
                else if(i==3){
                    cout<<"D"<<" "<<k+1;
                }
            }
        }
    }
 
    cout<<endl;
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'S' was not declared in this scope
   15 |         if (suto==S){
      |                   ^
a.cc:18:23: error: 'H' was not declared in this scope
   18 |         else if(suto==H){
      |                       ^
a.cc:21:23: error: 'C' was not declared in this scope
   21 |         else if(suto==C){
      |                       ^
a.cc:24:23: error: 'D' was not declared in this scope
   24 |         else if(suto==D){
      |                       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,a;
    char suto;
    bool cards[4][13];
    for(int i=0;i<=3;i++){
        for(int k=0;k<=12;k++){
            cards[i][k]=false;
        }
    }
    cin  >>n;
    for(int i=0;i<=n;i++){
        cin >>suto >>a;
        if (suto=="S"){
            cards[0][a-1]=true;
        }
        else if(suto=="H"){
            cards[1][a-1]=true;
        }
        else if(suto=="C"){
            cards[2][a-1]=true;
        }
        else if(suto=="D"){
            cards[3][a-1]=true;
        }
    
    }
    for(int i=0;i<=3;i++){
        for(int k=0;k<=12;k++){
            if (cards[i][k]=false){
                if (i==0){
                    cout<<"S"<<" "<<k+1<<endl;
                }
                else if(i==1){
                    cout<<"H"<<" "<<k+1;
                }
                else if(i==2){
                   cout<<"C"<<" "<<k+1;
                }
                else if(i==3){
                    cout<<"D"<<" "<<k+1;
                }
            }
        }
    }
 
    cout<<endl;
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if (suto=="S"){
      |             ~~~~^~~~~
a.cc:18:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         else if(suto=="H"){
      |                 ~~~~^~~~~
a.cc:21:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         else if(suto=="C"){
      |                 ~~~~^~~~~
a.cc:24:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         else if(suto=="D"){
      |                 ~~~~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<++4;i++){
        for(int j=0;j<13;){
            card[i][j]+=0
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<++4;i++){
        for(int j=0;j<13;){
            if(card[i][j]==0);
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: lvalue required as increment operand
    7 |     for(int i=0;i<++4;i++){
      |                     ^
a.cc:9:26: error: expected ';' before '}' token
    9 |             card[i][j]+=0
      |                          ^
      |                          ;
   10 |         }
      |         ~                 
a.cc:27:21: error: lvalue required as increment operand
   27 |     for(int i=0;i<++4;i++){
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<4;i++){
        for(int j=0;j<13;){
            card[i][j]+=0
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<13;){
            if(card[i][j]==0);
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before '}' token
    9 |             card[i][j]+=0
      |                          ^
      |                          ;
   10 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<4;i++){
        for(int j=0;j<13){
            card[i][j]+=0
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<13){
            if(card[i][j]==0);
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before ')' token
    8 |         for(int j=0;j<13){
      |                         ^
      |                         ;
a.cc:9:26: error: expected ';' before '}' token
    9 |             card[i][j]+=0
      |                          ^
      |                          ;
   10 |         }
      |         ~                 
a.cc:28:25: error: expected ';' before ')' token
   28 |         for(int j=0;j<13){
      |                         ^
      |                         ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            card[i][j]+=0
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            if(card[i][j]==0);
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before '}' token
    9 |             card[i][j]+=0
      |                          ^
      |                          ;
   10 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            card[i][j]+=0
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            if(card[i][j]==0){
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before '}' token
    9 |             card[i][j]+=0
      |                          ^
      |                          ;
   10 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<++4;i++){
        for(int j=0;j<13+j++){
            card[i][j]+=0;
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<++4;i++){
        for(int j=0;j<13;j++){
            if(card[i][j]==0){
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: lvalue required as increment operand
    7 |     for(int i=0;i<++4;i++){
      |                     ^
a.cc:8:29: error: expected ';' before ')' token
    8 |         for(int j=0;j<13+j++){
      |                             ^
      |                             ;
a.cc:27:21: error: lvalue required as increment operand
   27 |     for(int i=0;i<++4;i++){
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13]={{}};
    char a;
    for(int i=0;i<4;i++){
        for(int j=0;j<13+j++){
            card[i][j]+=0;
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='H'){
            card[0][x-1]+=1;
        }
        else if(a=='D'){
            card[1][x-1]+=1;
        }
        else if(a=='S'){
            card[2][x-1]+=1;
        }
        else if(a=='C'){
            card[3][x-1]+=1;
        }
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            if(card[i][j]==0){
                if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='S'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='c'){
                     cout<<a<<" "<<x<<endl;
                }
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before ')' token
    8 |         for(int j=0;j<13+j++){
      |                             ^
      |                             ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n,x;
    int card[4][13];
    char a;
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            card[i][j]=0
        }
    }
    for(int i=0;i<n;i++){
        cin>>a>>x;
        if(a=='S'){
            card[0][x-1]=1;
        }
        else if(a=='H'){
            card[1][x-1]=1;
        }
        else if(a=='C'){
            card[2][x-1]=1;
        }
        else if(a=='D'){
            card[3][x-1]=1;
        }
    }
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            if(card[i][j]==0){
                if(a=='S'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='H'){
                    cout<<a<<" "<<x<<endl;
                }
                else if(a=='C'){
                     cout<<a<<" "<<x<<endl;
                }
                else if(a=='D'){
                     cout<<a<<" "<<x<<endl;
                }
            }
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before '}' token
    9 |             card[i][j]=0
      |                         ^
      |                         ;
   10 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
    bool cards[4][14];
    int n,rank;
    char suit;
    
    for (int s = 0; s < 4; s++)
        for (int r = 1;r <=13 ;r++)
            cards[s][r] = 0;
        
    cin >> n ;
    for(int i = 0;i < n; i++){
        cin >> suit >> rank;
        if(suit = "S") cards[0][rank] = 1;
        if(suit = "H") cards[1][rank] = 1;
        if(suit = "C") cards[2][rank] = 1;
        if(suit = "D") cards[3][rank] = 1;
    }
    
    for(int s = 0;s < 4; s++){
        for(int r = 1; r <= 13;r++){
            if(cards[s][r]) continue;
            if (s == 0) suit = "S";
            if (s == 1) suit = "H";
            if (s == 2) suit = "C";
            if (s == 3) suit = "D";
            cout << suit << " " << r << endl;
            
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 |         if(suit = "S") cards[0][rank] = 1;
      |                   ^~~
      |                   |
      |                   const char*
a.cc:16:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   16 |         if(suit = "H") cards[1][rank] = 1;
      |                   ^~~
      |                   |
      |                   const char*
a.cc:17:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   17 |         if(suit = "C") cards[2][rank] = 1;
      |                   ^~~
      |                   |
      |                   const char*
a.cc:18:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |         if(suit = "D") cards[3][rank] = 1;
      |                   ^~~
      |                   |
      |                   const char*
a.cc:24:32: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   24 |             if (s == 0) suit = "S";
      |                                ^~~
      |                                |
      |                                const char*
a.cc:25:32: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   25 |             if (s == 1) suit = "H";
      |                                ^~~
      |                                |
      |                                const char*
a.cc:26:32: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |             if (s == 2) suit = "C";
      |                                ^~~
      |                                |
      |                                const char*
a.cc:27:32: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   27 |             if (s == 3) suit = "D";
      |                                ^~~
      |                                |
      |                                const char*
Language: C++

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

int main(){
    
    int n;
    cin>>n;
    
    int card[4][13]= {};
    
    for (int i=0; i<n; i++ ){
        
        string suit;
        
        int num;
        
        cin>>suit>>num;
        
        string str[4];
        
        if(num="S")card[0][num-1] = 1;
        if(num="H")card[1][num-1] = 1;
        if(num="C")card[2][num-1] = 1;
        if(num="D")card[3][num-1] = 1;
    }
    
    string str[4] = { "S","H","C","D" };
    
    fot(int i=0; i<4; i++){
        for(int j=0; j <13; j++){
            if (card[i][j] = 1) continue;
            else cout<<str[i]<<j++<<endl;
    }
    cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   21 |         if(num="S")card[0][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:22:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   22 |         if(num="H")card[1][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:23:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   23 |         if(num="C")card[2][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:24:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   24 |         if(num="D")card[3][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:29:9: error: expected primary-expression before 'int'
   29 |     fot(int i=0; i<4; i++){
      |         ^~~
a.cc:29:18: error: 'i' was not declared in this scope
   29 |     fot(int i=0; i<4; i++){
      |                  ^
Language: C++

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

int main(){
    
    int n;
    cin>>n;
    
    int card[4][13]= {};
    
    for (int i=0; i<n; i++)
        
        string suit;
        
        int num;
        
        cin>>suit>>num;
        
        string str[4];
        
        if(num="S")card[0][num-1] = 1;
        if(num="H")card[1][num-1] = 1;
        if(num="C")card[2][num-1] = 1;
        if(num="D")card[3][num-1] = 1;
    }
    
    string str[4] = { "S","H","C","D" };
    
    fot(int i=0; i<4; i++){
        for(int j=0; j <13; j++){
            if (card[i][j] = 1) continue;
            else cout<<str[i]<<j++<<endl;
    }
    cout<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'suit' was not declared in this scope
   17 |         cin>>suit>>num;
      |              ^~~~
a.cc:21:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   21 |         if(num="S")card[0][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:22:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   22 |         if(num="H")card[1][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:23:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   23 |         if(num="C")card[2][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc:24:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   24 |         if(num="D")card[3][num-1] = 1;
      |                ^~~
      |                |
      |                const char*
a.cc: At global scope:
a.cc:29:16: error: expected ')' before ';' token
   29 |     fot(int i=0; i<4; i++){
      |        ~       ^
      |                )
a.cc:29:16: error: expected constructor, destructor, or type conversion before ';' token
a.cc:29:18: error: 'i' does not name a type
   29 |     fot(int i=0; i<4; i++){
      |                  ^
a.cc:29:23: error: 'i' does not name a type
   29 |     fot(int i=0; i<4; i++){
      |                       ^
a.cc:36:5: error: expected unqualified-id before 'return'
   36 |     return 0;
      |     ^~~~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

n = int(input())
cards = {} #空の辞書
for i in range(n):
    card = input()
    cards[card] = 1
    
#print(cards)
    
for c in ['S', 'H', 'C', 'D']:
    for n in range(1, 13):
        key = c +' ' + str(n)
        if not key in cards:
            print(key)


Compiler output:
a.cc:2:12: error: stray '#' in program
    2 | cards = {} #空の辞書
      |            ^
a.cc:7:2: error: invalid preprocessing directive #print
    7 | #print(cards)
      |  ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
a.cc:2:13: error: '\U00007a7a\U0000306e\U00008f9e\U000066f8' does not name a type
    2 | cards = {} #空の辞書
      |             ^~~~~~~~