Language: C

#include <stdio.h>
 
int main(void){
  int N;
  int A = 0;
  int W = 0;
  int T = 0;
  int R = 0;
  scanf("%d",&N);
  char data[N];
  
  char judge[] = {AC, WA, TLE, RE};
  fgets(data,N,stdin);
 
  for(int i = 0;i < N;i++){
    if(strcmp(data[i],judge[0])==0){
      A++;
    }else if(strcmp(data[i],judge[1])==0){
      W++;
    }else if(strcmp(data[i],judge[2])==0){
      T++;
    }else if(strcmp(data[i],judge[3])==0){
      R++;
    }
  }
  printf("AC x %d\n", A);
  printf("WA x %d\n", W);
  printf("TLE x %d\n", T);
  printf("RE x %d\n", R);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:19: error: 'AC' undeclared (first use in this function); did you mean 'A'?
   12 |   char judge[] = {AC, WA, TLE, RE};
      |                   ^~
      |                   A
main.c:12:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:23: error: 'WA' undeclared (first use in this function); did you mean 'W'?
   12 |   char judge[] = {AC, WA, TLE, RE};
      |                       ^~
      |                       W
main.c:12:27: error: 'TLE' undeclared (first use in this function)
   12 |   char judge[] = {AC, WA, TLE, RE};
      |                           ^~~
main.c:12:32: error: 'RE' undeclared (first use in this function); did you mean 'R'?
   12 |   char judge[] = {AC, WA, TLE, RE};
      |                                ^~
      |                                R
main.c:16:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   16 |     if(strcmp(data[i],judge[0])==0){
      |        ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:16:19: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   16 |     if(strcmp(data[i],judge[0])==0){
      |               ~~~~^~~
      |                   |
      |                   char
main.c:16:19: note: expected 'const char *' but argument is of type 'char'
main.c:16:28: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   16 |     if(strcmp(data[i],judge[0])==0){
      |                       ~~~~~^~~
      |                            |
      |                            char
main.c:16:28: note: expected 'const char *' but argument is of type 'char'
main.c:18:25: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   18 |     }else if(strcmp(data[i],judge[1])==0){
      |                     ~~~~^~~
      |                         |
      |                         char
main.c:18:25: note: expected 'const char *' but argument is of type 'char'
main.c:18:34: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   18 |     }else if(strcmp(data[i],judge[1])==0){
      |                             ~~~~~^~~
      |                                  |
      |                                  char
main.c:18:34: note: expected 'const char *' but argument is of type 'char'
main.c:20:25: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   20 |     }else if(strcmp(data[i],judge[2])==0){
      |                     ~~~~^~~
      |                         |
      |                         char
main.c:20:25: note: expected 'const char *' but argument is of type 'char'
main.c:20:34: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   20 |     }else if(strcmp(data[i],judge[2])==0){
      |                             ~~~~~^~~
      |                                  |
      |                                  char
main.c:20:34: note: expected 'const char *' but argument is of type 'char'
main.c:22:25: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |     }else if(strcmp(data[i],judge[3])==0){
      |                     ~~~~^~~
      |                         |
      |                         char
main.c:22:25: note: expected 'const char *' but argument is of type 'char'
main.c:22:34: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |     }else if(strcmp(data[i],judge[3])==0){
      |                             ~~~~~^~~
      |                                  |
      |                                  char
main.c:22:34: note: expected 'const char *' but argument is of type 'char'