Language: C

#include<stdio.h>
int main(){
  char text;
  int aa,a[50],c,d,i;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%s %d",text,&aa);}
    if(strcmp(text,”S”)==0){
       a[i]=aa;}
    if(strcmp(text,”H”)==0){
       a[2i]=aa;}
    if(strcmp(text,”C”)==0){
       a[3i]=aa;}
    if(strcmp(text,”D”)==0){
       a[4i]=aa;}

  for(i=0;i<c;i++){
    if(a[i]==0){
       if(i<13){
    printf("S %d",i+1);}
       if(i>=13 && i<26){
    printf("H %d",i+1);}
       if(i>=26 && i<39){
    printf("C %d",i+1);}
       if(i>=39){
    printf("D %d",i+1);}}
  }
  printf("\n");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 |     if(strcmp(text,”S”)==0){
      |        ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:8:20: error: stray '\342' in program
    8 |     if(strcmp(text,<U+201D>S<U+201D>)==0){
      |                    ^~~~~~~~
main.c:8:22: error: stray '\342' in program
    8 |     if(strcmp(text,<U+201D>S<U+201D>)==0){
      |                             ^~~~~~~~
main.c:8:21: error: 'S' undeclared (first use in this function)
    8 |     if(strcmp(text,”S”)==0){
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |     if(strcmp(text,”S”)==0){
      |               ^~~~
      |               |
      |               char
main.c:8:15: note: expected 'const char *' but argument is of type 'char'
main.c:10:20: error: stray '\342' in program
   10 |     if(strcmp(text,<U+201D>H<U+201D>)==0){
      |                    ^~~~~~~~
main.c:10:22: error: stray '\342' in program
   10 |     if(strcmp(text,<U+201D>H<U+201D>)==0){
      |                             ^~~~~~~~
main.c:10:21: error: 'H' undeclared (first use in this function)
   10 |     if(strcmp(text,”H”)==0){
      |                     ^
main.c:10:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if(strcmp(text,”H”)==0){
      |               ^~~~
      |               |
      |               char
main.c:10:15: note: expected 'const char *' but argument is of type 'char'
main.c:11:9: error: array subscript is not an integer
   11 |        a[2i]=aa;}
      |         ^
main.c:12:20: error: stray '\342' in program
   12 |     if(strcmp(text,<U+201D>C<U+201D>)==0){
      |                    ^~~~~~~~
main.c:12:22: error: stray '\342' in program
   12 |     if(strcmp(text,<U+201D>C<U+201D>)==0){
      |                             ^~~~~~~~
main.c:12:21: error: 'C' undeclared (first use in this function)
   12 |     if(strcmp(text,”C”)==0){
      |                     ^
main.c:12:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   12 |     if(strcmp(text,”C”)==0){
      |               ^~~~
      |               |
      |               char
main.c:12:15: note: expected 'const char *' but argument is of type 'char'
main.c:13:9: error: array subscript is not an integer
   13 |        a[3i]=aa;}
      |         ^
main.c:14:20: error: stray '\342' in program
   14 |     if(strcmp(text,<U+201D>D<U+201D>)==0){
      |                    ^~~~~~~~
main.c:14:22: error: stray '\342' in program
   14 |     if(strcmp(text,<U+201D>D<U+201D>)==0){
      |                             ^~~~~~~~
main.c:14:21: error: 'D' undeclared (first use in this function)
   14 |     if(strcmp(text,”D”)==0){
      |                     ^
main.c:14:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   14 |     if(strcmp(text,”D”)==0){
      |               ^~~~
      |               |
      |               char
main.c:14:15: note: expected 'const char *' but argument is of type 'char'
main.c:15:9: error: array subscript is not an integer
   15 |        a[4i]=aa;}
      |         ^