Language: C++

#include<iostream>
using namespace;
int main(){
    int n ,x;
    int card[4][13]=0
    char mark
    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(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:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:5:21: error: array must be initialized with a brace-enclosed initializer
    5 |     int card[4][13]=0
      |                     ^
a.cc:7:17: error: 'i' was not declared in this scope
    7 |     for(int i=1;i<=n,i++){
      |                 ^
a.cc:23:30: error: expected ';' before ')' token
   23 |         for(int j=1;j<=13,j++){
      |                              ^
      |                              ;
a.cc:25:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |                 cout<<"S "<<j<<endl;
      |                 ^~~~
      |                 std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |                 cout<<"S "<<j<<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)
      |     ^~~~
a.cc:28:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |                 cout<<"H "<<j<<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:28:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   28 |                 cout<<"H "<<j<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:31:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                 cout<<"C "<<j<<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:31:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   31 |                 cout<<"C "<<j<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:34:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   34 |                 cout<<"D "<<j<<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:34:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   34 |                 cout<<"D "<<j<<endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~