Language: C++

#include<iostream>

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  
  int N = 0;
  int M = 0;
  
  int count(int d){
    if(d == 5){
      N++;
    }else if(d == 7){
      M++;
    }
  }
  
  count(a);
  count(b);
  count(c);
  
  if(N ==2){
    if(M == 1){
      cout >> Yes >> endl;
    }else{
      cout >> No >> endl;
    }
    else if(N == 1){
      if(M == 2){
        cout >> Yes >> endl;
      }else{
        cou >> No >> endl;
      }
    }else{
      cout >> No >> endl;
    }
    
    return 0;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b >> c;
      |   ^~~
      |   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:10:19: error: a function-definition is not allowed here before '{' token
   10 |   int count(int d){
      |                   ^
a.cc:18:3: error: 'count' was not declared in this scope
   18 |   count(a);
      |   ^~~~~
a.cc:24:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |       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:24:15: error: 'Yes' was not declared in this scope
   24 |       cout >> Yes >> endl;
      |               ^~~
a.cc:24:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |       cout >> Yes >> 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:26:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |       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:26:15: error: 'No' was not declared in this scope; did you mean 'N'?
   26 |       cout >> No >> endl;
      |               ^~
      |               N
a.cc:26:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |       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:28:5: error: expected '}' before 'else'
   28 |     else if(N == 1){
      |     ^~~~
a.cc:22:12: note: to match this '{'
   22 |   if(N ==2){
      |            ^
a.cc:30:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 |         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:30:17: error: 'Yes' was not declared in this scope
   30 |         cout >> Yes >> endl;
      |                 ^~~
a.cc:30:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   30 |         cout >> Yes >> endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:32:9: error: 'cou' was not declared in this scope
   32 |         cou >> No >> endl;
      |         ^~~
a.cc:32:16: error: 'No' was not declared in this scope; did you mean 'N'?
   32 |         cou >> No >> endl;
      |                ^~
      |                N
a.cc:32:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   32 |         cou >> 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:35:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   35 |       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:35:15: error: 'No' was not declared in this scope; did you mean 'N'?
   35 |       cout >> No >> endl;
      |               ^~
      |               N
a.cc:35:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   35 |       cout >> No >> endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~