Language: C++

#include <iostream>
using namespeace std;

int main(void){
  char = s;
  int = ans;
  cin >> s;
  if(s==SUN){
    ans = 7;
  }else if(s==MON){
    ans = 6;
  }else if(s==TUE){
    ans = 5;
  }else if(s==WED){ 
    ans = 4; 
  }else if(s==THU){
    ans = 3;
  }else if(s==FRI){
    and = 2;
  }else if(s==SAT){
    ans = 1;
  }
  cout << ans;
    
  
  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespeace'
    2 | using namespeace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |   char = s;
      |        ^
a.cc:6:7: error: expected unqualified-id before '=' token
    6 |   int = ans;
      |       ^
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:8:9: error: 'SUN' was not declared in this scope
    8 |   if(s==SUN){
      |         ^~~
a.cc:9:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     ans = 7;
      |     ^~~
      |     abs
a.cc:10:15: error: 'MON' was not declared in this scope
   10 |   }else if(s==MON){
      |               ^~~
a.cc:11:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     ans = 6;
      |     ^~~
      |     abs
a.cc:12:15: error: 'TUE' was not declared in this scope
   12 |   }else if(s==TUE){
      |               ^~~
a.cc:13:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     ans = 5;
      |     ^~~
      |     abs
a.cc:14:15: error: 'WED' was not declared in this scope
   14 |   }else if(s==WED){
      |               ^~~
a.cc:15:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |     ans = 4;
      |     ^~~
      |     abs
a.cc:16:15: error: 'THU' was not declared in this scope
   16 |   }else if(s==THU){
      |               ^~~
a.cc:17:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     ans = 3;
      |     ^~~
      |     abs
a.cc:18:15: error: 'FRI' was not declared in this scope
   18 |   }else if(s==FRI){
      |               ^~~
a.cc:19:9: error: expected identifier before '=' token
   19 |     and = 2;
      |         ^
a.cc:20:15: error: 'SAT' was not declared in this scope
   20 |   }else if(s==SAT){
      |               ^~~
a.cc:21:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |     ans = 1;
      |     ^~~
      |     abs
a.cc:23:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |   cout << ans;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |   cout << ans;
      |           ^~~
      |           abs
a.cc:23:15: error: expected '}' at end of input
   23 |   cout << ans;
      |               ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^