beauty.cpp:14:5: error: redefinition of 'int get1(int)'
14 | int get1(int x) {
| ^~~~
beauty.cpp:6:5: note: 'int get1(int)' previously defined here
6 | int get1(int x) {
| ^~~~
beauty.cpp: In function 'int ans(int, int)':
beauty.cpp:18:22: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
18 | int &ret=dp[pos][mask];
| ~~~~~~~~~~~~^
beauty.cpp: In function 'int main()':
beauty.cpp:32:22: error: 'get2' was not declared in this scope; did you mean 'get1'?
32 | if(get1(i)==get1(j)||get2(i)==get2(j)) {
| ^~~~
| get1