Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <functional>
#include <ccomplex>
#include <unordered_map>
#include <cstring>
#include <iostream>
#include <numeric>
#include <sstream>
#include <set>
#include <map>
#include <tuple>
#include <iomanip>

using namespace std;
#define MAX 1LL << 60
#define MOD 1000000007

typedef long long ll;

#define rep(i, s, e) for(ll i = s; i < e; i++)
#define repR(i, s, e) for(ll i = s; i > e; i--)
#define reft0(i, j) setfill('0') << setw(i) << j
#define fix(i) fixed << setprecision(i)


template<class T> inline bool chMax(T& a, T b){ if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chMin(T& a, T b){ if (a > b) { a = b; return true; } return false; }

int main(){
    char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };

    vector<char> aa;
    rep(i, 0, 32){
        aa.push_back(a[i]);
    }

    int K;
    cin >> K;

    cout << aa[K - 1] << endl;

    return 0;
}

Compiler output:
a.cc:36:93: warning: multi-character character constant [-Wmultichar]
   36 |     char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };
      |                                                                                             ^~~~
a.cc:36:134: warning: multi-character character constant [-Wmultichar]
   36 |     char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };
      |                                                                                                                                      ^~~~
a.cc:36:175: warning: multi-character character constant [-Wmultichar]
   36 |     char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };
      |                                                                                                                                                                               ^~~~
a.cc: In function 'int main()':
a.cc:36:93: error: narrowing conversion of '12596' from 'int' to 'char' [-Wnarrowing]
   36 |     char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };
      |                                                                                             ^~~~
a.cc:36:134: error: narrowing conversion of '12597' from 'int' to 'char' [-Wnarrowing]
   36 |     char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };
      |                                                                                                                                      ^~~~
a.cc:36:175: error: narrowing conversion of '13617' from 'int' to 'char' [-Wnarrowing]
   36 |     char a[] = { '1', '1', '1', '2', '1', '2', '1', '5', '2', '2', '1', '5', '1', '2', '1', '14', '1', '5', '1', '5', '2', '2', '1', '15', '2', '2', '5', '4', '1', '4', '1', '51' };
      |                                                                                                                                                                               ^~~~