Language: C++

#include<bits/stdc++.h>
signed main(){
    int n;
    cin>>n;
    int f = 0,t=0,o=0;
    for(int i=0;i<n;i++){
        int k;
        cin>>k;
        if(k%4==0)f++;
        else if(k%2==0)t++;
        else o++;
    }
    if(t==0){
        if(f>=o-1)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
    else{
        if(f>=o)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin>>n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:14:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         if(f>=o-1)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:14:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         if(f>=o-1)cout<<"Yes"<<endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         else 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:15:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         else 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:18:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         if(f>=o)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:18:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         if(f>=o)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:19:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |         else 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:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |         else cout<<"No"<<endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~