Language: C++

#include <bits/stdc++.h>
using namespace std;

using ll=long long;
const ll MOD=1000000007;

int main() {
  vector<string> vec(7);
  vec={SUN,MON,TUE,WED,THU,FRI,SAT};
  string s;
  cin >> s;
  for(int i=0;i<7;i++){
    if(s==vec[i]){
      cout << 7-i << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'SUN' was not declared in this scope
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |        ^~~
a.cc:9:12: error: 'MON' was not declared in this scope; did you mean 'MOD'?
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |            ^~~
      |            MOD
a.cc:9:16: error: 'TUE' was not declared in this scope
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |                ^~~
a.cc:9:20: error: 'WED' was not declared in this scope
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |                    ^~~
a.cc:9:24: error: 'THU' was not declared in this scope
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |                        ^~~
a.cc:9:28: error: 'FRI' was not declared in this scope
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |                            ^~~
a.cc:9:32: error: 'SAT' was not declared in this scope
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |                                ^~~
a.cc:9:35: error: no match for 'operator=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and '<brace-enclosed initializer list>')
    9 |   vec={SUN,MON,TUE,WED,THU,FRI,SAT};
      |                                   ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<std::__cxx11::basic_string<char> >&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<std::__cxx11::basic_string<char> >'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~