Language: C++

#include<bits/stdc++.h>
using namespaces std;
int main(){
  int n;
  cin>>n;
  string pre;
  string suff="on";
  int rem=0;
  while(n){
    rem=n%10;
    n/=10;
  }
  if(rem==2 or rem==4 or rem==5 or rem==7 or rem==9) pre="h";
  else if(rem==1 or rem==1 or rem==6 or rem==8) pre="p";
  else pre="b";
  cout<<pre+suff<<endl;
  
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
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>>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:6:3: error: 'string' was not declared in this scope
    6 |   string pre;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:9: error: expected ';' before 'suff'
    7 |   string suff="on";
      |         ^~~~~
      |         ;
a.cc:13:54: error: 'pre' was not declared in this scope
   13 |   if(rem==2 or rem==4 or rem==5 or rem==7 or rem==9) pre="h";
      |                                                      ^~~
a.cc:14:49: error: 'pre' was not declared in this scope
   14 |   else if(rem==1 or rem==1 or rem==6 or rem==8) pre="p";
      |                                                 ^~~
a.cc:15:8: error: 'pre' was not declared in this scope
   15 |   else pre="b";
      |        ^~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout<<pre+suff<<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:16:9: error: 'pre' was not declared in this scope
   16 |   cout<<pre+suff<<endl;
      |         ^~~
a.cc:16:13: error: 'suff' was not declared in this scope
   16 |   cout<<pre+suff<<endl;
      |             ^~~~
a.cc:16:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout<<pre+suff<<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)
      |     ^~~~