Language: C++

#include <iostream>

int main()
{
    int a[3] = {0, 0, 0};

    cin >> a[0] >> b[0] >> c[0];

    int fn = 0;
    int sn = 0;

    for(int i = 0; i < 3; i++)
    {
        if(a[i] == 5)
        {
            fn++;
            if(fn > 2)
            {
                cout << "NO" << endl;
                return 0;
            }
        }
        else if(a[i] == 7)
        {
            sn++;
            if(sn > 1)
            {
                cout << "NO" << endl;
            }
        }
        else
        {
            cout << "NO" << endl;
            return 0;
        }
    }

    cout << "YES" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> a[0] >> b[0] >> c[0];
      |     ^~~
      |     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:20: error: 'b' was not declared in this scope
    7 |     cin >> a[0] >> b[0] >> c[0];
      |                    ^
a.cc:7:28: error: 'c' was not declared in this scope
    7 |     cin >> a[0] >> b[0] >> c[0];
      |                            ^
a.cc:19:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |                 cout << "NO" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |                 cout << "NO" << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:28:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |                 cout << "NO" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:28:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   28 |                 cout << "NO" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:33:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   33 |             cout << "NO" << endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:33:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   33 |             cout << "NO" << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:38:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   38 |     cout << "YES" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:38:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   38 |     cout << "YES" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~