Language: C++

#include <stdio.h>

int main(void){
    char s[3];

    scanf("%s",s);
    printf(s);

    int y = 700;
    switch(s) {
        case xxx:
            y = y;
            printf(y);
            break;
        case xxo:
        y = y + 100;
            printf(y);
            break;
        case xox:
        y = y + 100;
            printf(y);
            break;
        case xoo:
        y = y + 200;
            printf(y);
            break;
        case oxx:
        y = y + 100;
            printf(y);
            break;
        case oxo:
        y = y + 200;
            printf(y);
            break;
        case oox:
            y = y + 200;
                printf(y);
                break;
         case ooo:
             y = y + 300;
             printf(y);
             break;
        default:
            printf("Sの値が不正です\n");
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: switch quantity not an integer
   10 |     switch(s) {
      |            ^
a.cc:11:14: error: 'xxx' was not declared in this scope
   11 |         case xxx:
      |              ^~~
a.cc:13:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |             printf(y);
      |                    ^
      |                    |
      |                    int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:15:14: error: 'xxo' was not declared in this scope
   15 |         case xxo:
      |              ^~~
a.cc:17:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   17 |             printf(y);
      |                    ^
      |                    |
      |                    int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:19:14: error: 'xox' was not declared in this scope
   19 |         case xox:
      |              ^~~
a.cc:21:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   21 |             printf(y);
      |                    ^
      |                    |
      |                    int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:23:14: error: 'xoo' was not declared in this scope
   23 |         case xoo:
      |              ^~~
a.cc:25:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   25 |             printf(y);
      |                    ^
      |                    |
      |                    int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:27:14: error: 'oxx' was not declared in this scope
   27 |         case oxx:
      |              ^~~
a.cc:29:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   29 |             printf(y);
      |                    ^
      |                    |
      |                    int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:31:14: error: 'oxo' was not declared in this scope
   31 |         case oxo:
      |              ^~~
a.cc:33:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   33 |             printf(y);
      |                    ^
      |                    |
      |                    int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:35:14: error: 'oox' was not declared in this scope
   35 |         case oox:
      |              ^~~
a.cc:37:24: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   37 |                 printf(y);
      |                        ^
      |                        |
      |                        int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:39:15: error: 'ooo' was not declared in this scope
   39 |          case ooo:
      |               ^~~
a.cc:41:21: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   41 |              printf(y);
      |                     ^
      |                     |
      |                     int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~