Language: C++

#include <iostream>
#include <vector>

int main()
{
int card_num;
int count;
int num;
int S[13];
int H[13];
int C[13];
int D[13];
char mark;

cin>>card_num;

while(count<card_num)
{
cin>>mark>>num;
switch(mark)
{
case S:
S[num-1]=num;
break;
case H:
H[num-1]=num;
break;
case C:
C[num-1]=num;
break;
case D:
D[num-1]=num;
break;
}
count++;
}
for(int i=0; i<13; i++)
if(S[i]==0)
cout<<"S "<<i+1<<endl;

for(int i=0; i<13; i++)
if(H[i]==0)
cout<<"H "<<i+1<<endl;

for(int i=0; i<13; i++)
if(C[i]==0)
cout<<"C "<<i+1<<endl;

for(int i=0; i<13; i++)
if(D[i]==0)
cout<<"C "<<i+1<<endl;

return 0:

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   15 | cin>>card_num;
      | ^~~
      | 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:22:6: error: conversion from 'int*' to 'int' in a converted constant expression
   22 | case S:
      |      ^
a.cc:22:6: error: could not convert 'S' from 'int [13]' to 'int'
   22 | case S:
      |      ^
      |      |
      |      int [13]
a.cc:25:6: error: conversion from 'int*' to 'int' in a converted constant expression
   25 | case H:
      |      ^
a.cc:25:6: error: could not convert 'H' from 'int [13]' to 'int'
   25 | case H:
      |      ^
      |      |
      |      int [13]
a.cc:28:6: error: conversion from 'int*' to 'int' in a converted constant expression
   28 | case C:
      |      ^
a.cc:28:6: error: could not convert 'C' from 'int [13]' to 'int'
   28 | case C:
      |      ^
      |      |
      |      int [13]
a.cc:31:6: error: conversion from 'int*' to 'int' in a converted constant expression
   31 | case D:
      |      ^
a.cc:31:6: error: could not convert 'D' from 'int [13]' to 'int'
   31 | case D:
      |      ^
      |      |
      |      int [13]
a.cc:39:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   39 | cout<<"S "<<i+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:39:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   39 | cout<<"S "<<i+1<<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:43:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   43 | cout<<"H "<<i+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:43:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   43 | cout<<"H "<<i+1<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:47:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   47 | cout<<"C "<<i+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:47:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   47 | cout<<"C "<<i+1<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:51:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   51 | cout<<"C "<<i+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:51:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   51 | cout<<"C "<<i+1<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:53:9: error: expected ';' before ':' token
   53 | return 0:
      |         ^
      |         ;
a.cc:53:9: error: expected primary-expression before ':' token