Language: C++

int main(void){
    
    //変数宣言&初期化
    char S[52]; //絵柄代入用
    int num[52],total = 0,i = 0,j = 0;
    bool card[4][13];
    
    
    cin >> total;
    
    //入力
    for(i = 0;i < total;i++)
    {
        cin >> S[i] >> num[i];
    }
    
    
    //
    for(i = 0;i < total;i++)
    {
        if(S[i] == "S")
        {
            card[0][num[i]]=true;
            
        }
        
        if(S[i] == "H")
        {
            card[1][num[i]]=true;
            
        }
        
        if(S[i] == "C")
        {
            card[2][num[i]]=true;   
           
        }
        
        if(S[i] == "D")
        {
            card[3][num[i]]=true;
            
        }
    }
    
    //不足しているカードの特定
    for(j = 0;j < 4;j++)
    {
        
        for(i = 0;i < 14;i++)
        {
            
            if(card[j][i] == false && i != 0)
            {
                
                //絵柄特定
                if(j == 0)
                {
                    cout << "S " << i << endl;
                }
                
                if(j == 1)
                {
                    cout << "H " << i << endl;
                }
                
                if(j == 2)
                {
                    cout << "C " << i << endl;
                }
                
                if(j == 3)
                {
                    cout << "D " << i << endl;
                }
            
                
            }
            
            
        }
        
    }
    
    return 0;
    
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> total;
      |     ^~~
a.cc:21:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         if(S[i] == "S")
      |            ~~~~~^~~~~~
a.cc:27:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |         if(S[i] == "H")
      |            ~~~~~^~~~~~
a.cc:33:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |         if(S[i] == "C")
      |            ~~~~~^~~~~~
a.cc:39:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |         if(S[i] == "D")
      |            ~~~~~^~~~~~
a.cc:59:21: error: 'cout' was not declared in this scope
   59 |                     cout << "S " << i << endl;
      |                     ^~~~
a.cc:59:42: error: 'endl' was not declared in this scope
   59 |                     cout << "S " << i << endl;
      |                                          ^~~~
a.cc:64:21: error: 'cout' was not declared in this scope
   64 |                     cout << "H " << i << endl;
      |                     ^~~~
a.cc:64:42: error: 'endl' was not declared in this scope
   64 |                     cout << "H " << i << endl;
      |                                          ^~~~
a.cc:69:21: error: 'cout' was not declared in this scope
   69 |                     cout << "C " << i << endl;
      |                     ^~~~
a.cc:69:42: error: 'endl' was not declared in this scope
   69 |                     cout << "C " << i << endl;
      |                                          ^~~~
a.cc:74:21: error: 'cout' was not declared in this scope
   74 |                     cout << "D " << i << endl;
      |                     ^~~~
a.cc:74:42: error: 'endl' was not declared in this scope
   74 |                     cout << "D " << i << endl;
      |                                          ^~~~