Language: C++

#include <iostream>
#include <cstdio>
#include <string>

using namespace std;

int main(){
    string s;
    cin >> s;
    if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
        cout << "Yes" << endl;
    } else {
        cout << "No" <<  endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: no match for 'operator||' (operand types are 'const char [4]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |            ~~~~~^~~
      |            |      |
      |            |      std::string {aka std::__cxx11::basic_string<char>}
      |            const char [4]
a.cc:10:17: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |            ~~~~~^~~
a.cc:10:17: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:10:28: error: no match for 'operator||' (operand types are 'const char [4]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                       ~~~~~^~ ~
      |                       |       |
      |                       |       std::string {aka std::__cxx11::basic_string<char>}
      |                       const char [4]
a.cc:10:28: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                       ~~~~~^~~~
a.cc:10:28: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:10:40: error: no match for 'operator||' (operand types are 'const char [4]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                   ~~~~~^~ ~
      |                                   |       |
      |                                   |       std::string {aka std::__cxx11::basic_string<char>}
      |                                   const char [4]
a.cc:10:40: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                   ~~~~~^~~~
a.cc:10:40: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:10:52: error: no match for 'operator||' (operand types are 'const char [4]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                               ~~~~~^~ ~
      |                                               |       |
      |                                               |       std::string {aka std::__cxx11::basic_string<char>}
      |                                               const char [4]
a.cc:10:52: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                               ~~~~~^~~~
a.cc:10:52: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:10:64: error: no match for 'operator||' (operand types are 'const char [4]' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                                           ~~~~~^~ ~
      |                                                           |       |
      |                                                           |       std::string {aka std::__cxx11::basic_string<char>}
      |                                                           const char [4]
a.cc:10:64: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |     if(s = "abc"||s = "acb"|| s = "bac"|| s = "bca"|| s = "cab"|| s = "cba"){
      |                                                           ~~~~~^~~~
a.cc:10:64: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'