Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x;
  cin>>x>>;
  if(x==6){cout<<2<<endl;}
  else if(x==4){cout<<2<<;}
  else if(x==9){cout<<2<<;}
  else if(x==10){cout<<2<<;}
  else if(x==14){cout<<2<<;}
  else if(x==21){cout<<2<<;}
  else if(x==22){cout<<2<<;}
   else if(x==25){cout<<2<<;}
   else if(x==26){cout<<2<<;}
   else if(x==8){cout<<5<<;}
   else if(x==12){cout<<5<<;}
  else if(x==18){cout<<5<<;}
  else if(x==20){cout<<5<<;}
  else if(x==27){cout<<5<<;}
  else if(x==16){cout<<14<<;}
  else if(x==24){cout<<15<<;}
  else if(x==29){cout<<4<<;}
   else if(x==30){cout<<4<<;}
   else if(x==32){cout<<51<<;}
  else cout<<1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before ';' token
    6 |   cin>>x>>;
      |           ^
a.cc:8:26: error: expected primary-expression before ';' token
    8 |   else if(x==4){cout<<2<<;}
      |                          ^
a.cc:9:26: error: expected primary-expression before ';' token
    9 |   else if(x==9){cout<<2<<;}
      |                          ^
a.cc:10:27: error: expected primary-expression before ';' token
   10 |   else if(x==10){cout<<2<<;}
      |                           ^
a.cc:11:27: error: expected primary-expression before ';' token
   11 |   else if(x==14){cout<<2<<;}
      |                           ^
a.cc:12:27: error: expected primary-expression before ';' token
   12 |   else if(x==21){cout<<2<<;}
      |                           ^
a.cc:13:27: error: expected primary-expression before ';' token
   13 |   else if(x==22){cout<<2<<;}
      |                           ^
a.cc:14:28: error: expected primary-expression before ';' token
   14 |    else if(x==25){cout<<2<<;}
      |                            ^
a.cc:15:28: error: expected primary-expression before ';' token
   15 |    else if(x==26){cout<<2<<;}
      |                            ^
a.cc:16:27: error: expected primary-expression before ';' token
   16 |    else if(x==8){cout<<5<<;}
      |                           ^
a.cc:17:28: error: expected primary-expression before ';' token
   17 |    else if(x==12){cout<<5<<;}
      |                            ^
a.cc:18:27: error: expected primary-expression before ';' token
   18 |   else if(x==18){cout<<5<<;}
      |                           ^
a.cc:19:27: error: expected primary-expression before ';' token
   19 |   else if(x==20){cout<<5<<;}
      |                           ^
a.cc:20:27: error: expected primary-expression before ';' token
   20 |   else if(x==27){cout<<5<<;}
      |                           ^
a.cc:21:28: error: expected primary-expression before ';' token
   21 |   else if(x==16){cout<<14<<;}
      |                            ^
a.cc:22:28: error: expected primary-expression before ';' token
   22 |   else if(x==24){cout<<15<<;}
      |                            ^
a.cc:23:27: error: expected primary-expression before ';' token
   23 |   else if(x==29){cout<<4<<;}
      |                           ^
a.cc:24:28: error: expected primary-expression before ';' token
   24 |    else if(x==30){cout<<4<<;}
      |                            ^
a.cc:25:29: error: expected primary-expression before ';' token
   25 |    else if(x==32){cout<<51<<;}
      |                             ^