sculpture.cpp:18:11: error: conflicting declaration 'const int n'
18 | const int n = 2e3 + 5;
| ^
sculpture.cpp:17:5: note: previous declaration as 'int n'
17 | int n, a, b;
| ^
sculpture.cpp:19:10: error: array bound is not an integer constant before ']' token
19 | int arr[n];
| ^
sculpture.cpp: In function 'void input()':
sculpture.cpp:28:10: error: 'arr' was not declared in this scope
28 | cin >> arr[i];
| ^~~
sculpture.cpp: In function 'bool check(ll)':
sculpture.cpp:34:11: error: the value of 'n' is not usable in a constant expression
34 | bitset<n> dp[n + 1];
| ^
sculpture.cpp:17:5: note: 'int n' is not const
17 | int n, a, b;
| ^
sculpture.cpp:34:11: note: in template argument for type 'long unsigned int'
34 | bitset<n> dp[n + 1];
| ^
sculpture.cpp:36:8: error: invalid types 'int[int]' for array subscript
36 | dp[0][0] = true;
| ^
sculpture.cpp:40:12: error: 'arr' was not declared in this scope
40 | sum += arr[j];
| ^~~
sculpture.cpp:49:13: error: invalid types 'int[int]' for array subscript
49 | if (dp[n][i]) {
| ^
sculpture.cpp:65:12: error: 'arr' was not declared in this scope
65 | sum += arr[j];
| ^~~