Language: C++

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

int main(){
    int n;
    cin >> n;
    

    int card[4][13] = [];
    for (int i =0 ;i<n;i++){
         string suit;
         int num;
         cin >> suit>>num;
         

         if (suit == "S") card[0][num-1] = 1;
         if (suit == "H") card[1][num-1] = 1;
         if (suit == "C") card[1][num-1] = 1;
         if (suit == "D") card[3][num-1] = 1;
     }

     string str[4] = {"S","H","C","D"};
     for (int i =0;i<4;i++){
          for (int j =0;j<13;j++){
              if (card[i][j] ==1) continue;
               cout<<str[i]<<" "j+1<<endl;
          }
     }

      return 0;
}


Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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: In lambda function:
a.cc:9:25: error: expected '{' before ';' token
    9 |     int card[4][13] = [];
      |                         ^
a.cc: In function 'int main()':
a.cc:9:23: error: array must be initialized with a brace-enclosed initializer
    9 |     int card[4][13] = [];
      |                       ^~
a.cc:11:10: error: 'string' was not declared in this scope
   11 |          string suit;
      |          ^~~~~~
a.cc:11:10: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:13:17: error: 'suit' was not declared in this scope
   13 |          cin >> suit>>num;
      |                 ^~~~
a.cc:22:6: error: 'string' was not declared in this scope
   22 |      string str[4] = {"S","H","C","D"};
      |      ^~~~~~
a.cc:22:6: note: suggested alternatives:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:26:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |                cout<<str[i]<<" "j+1<<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:26:22: error: 'str' was not declared in this scope; did you mean 'std'?
   26 |                cout<<str[i]<<" "j+1<<endl;
      |                      ^~~
      |                      std
a.cc:26:30: error: unable to find string literal operator 'operator""j' with 'const char [2]', 'long unsigned int' arguments
   26 |                cout<<str[i]<<" "j+1<<endl;
      |                              ^~~~
a.cc:26:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |                cout<<str[i]<<" "j+1<<endl;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~