rack.cpp: In function 'int getAns(int, int)':
rack.cpp:30:51: error: 'x' was not declared in this scope
30 | if (k % 2 == 0) return (getAns(n - 1, k / 2) + (x[n - 1]) % MOD));
| ^
rack.cpp:30:67: error: expected ';' before ')' token
30 | if (k % 2 == 0) return (getAns(n - 1, k / 2) + (x[n - 1]) % MOD));
| ^
| ;
rack.cpp:30:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
30 | if (k % 2 == 0) return (getAns(n - 1, k / 2) + (x[n - 1]) % MOD));
| ^~
rack.cpp:30:67: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
30 | if (k % 2 == 0) return (getAns(n - 1, k / 2) + (x[n - 1]) % MOD));
| ^
rack.cpp:30:67: error: expected primary-expression before ')' token
rack.cpp: In function 'void solve()':
rack.cpp:35:4: error: 'x' was not declared in this scope
35 | x[0] = 1;
| ^