Language: C++

#include<stdio.h>
#include <string.h>
 
int main(){
    int s;
    scanf("%s",&s);
    if(strcmp(s,"SUN")==0)
      printf("%d\n",7);
    if(strcmp(s,"MON")==0)
      printf("%d\n",6);
    if(strcmp(s,"TUE")==0)
      printf("%d\n",5);
    if(strcmp(s,"WED")==0)
      printf("%d\n",4);
    if(strcmp(s,"THU")==0)
      printf("%d\n",3);
    if(strcmp(s,"FRI")==0)
      printf("%d\n",2);
    if(strcmp(s,"SAT")==0)
      printf("%d\n",1);  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |     if(strcmp(s,"SUN")==0)
      |               ^
      |               |
      |               int
In file included from a.cc:2:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:9:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |     if(strcmp(s,"MON")==0)
      |               ^
      |               |
      |               int
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:11:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |     if(strcmp(s,"TUE")==0)
      |               ^
      |               |
      |               int
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:13:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |     if(strcmp(s,"WED")==0)
      |               ^
      |               |
      |               int
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:15:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   15 |     if(strcmp(s,"THU")==0)
      |               ^
      |               |
      |               int
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:17:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   17 |     if(strcmp(s,"FRI")==0)
      |               ^
      |               |
      |               int
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:19:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   19 |     if(strcmp(s,"SAT")==0)
      |               ^
      |               |
      |               int
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~