Language: C

ちさと
 #include<stdio.h>
#include<string.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[2*i]=aa;}
    if(strcmp(text,’C’)==0){
       a[3*i]=aa;}
    if(strcmp(text,’D’)==0){
       a[4*i]=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:1:7: error: expected ';' before 'typedef'
    1 | ちさと
      |       ^
      |       ;
main.c: In function 'main':
main.c:11:20: error: stray '\342' in program
   11 |     if(strcmp(text,<U+2019>S<U+2019>)==0){
      |                    ^~~~~~~~
main.c:11:22: error: stray '\342' in program
   11 |     if(strcmp(text,<U+2019>S<U+2019>)==0){
      |                             ^~~~~~~~
main.c:11:21: error: 'S' undeclared (first use in this function)
   11 |     if(strcmp(text,’S’)==0){
      |                     ^
main.c:11:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   11 |     if(strcmp(text,’S’)==0){
      |               ^~~~
      |               |
      |               char
In file included from main.c:3:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:13:20: error: stray '\342' in program
   13 |     if(strcmp(text,<U+2019>H<U+2019>)==0){
      |                    ^~~~~~~~
main.c:13:22: error: stray '\342' in program
   13 |     if(strcmp(text,<U+2019>H<U+2019>)==0){
      |                             ^~~~~~~~
main.c:13:21: error: 'H' undeclared (first use in this function)
   13 |     if(strcmp(text,’H’)==0){
      |                     ^
main.c:13:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   13 |     if(strcmp(text,’H’)==0){
      |               ^~~~
      |               |
      |               char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:15:20: error: stray '\342' in program
   15 |     if(strcmp(text,<U+2019>C<U+2019>)==0){
      |                    ^~~~~~~~
main.c:15:22: error: stray '\342' in program
   15 |     if(strcmp(text,<U+2019>C<U+2019>)==0){
      |                             ^~~~~~~~
main.c:15:21: error: 'C' undeclared (first use in this function)
   15 |     if(strcmp(text,’C’)==0){
      |                     ^
main.c:15:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   15 |     if(strcmp(text,’C’)==0){
      |               ^~~~
      |               |
      |               char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:17:20: error: stray '\342' in program
   17 |     if(strcmp(text,<U+2019>D<U+2019>)==0){
      |                    ^~~~~~~~
main.c:17:22: error: stray '\342' in program
   17 |     if(strcmp(text,<U+2019>D<U+2019>)==0){
      |                             ^~~~~~~~
main.c:17:21: error: 'D' undeclared (first use in this function)
   17 |     if(strcmp(text,’D’)==0){
      |                     ^
main.c:17:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |     if(strcmp(text,’D’)==0){
      |               ^~~~
      |               |
      |               char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~