bootfall.cpp:5:87: error: expected ',' or '...' before 'index'
5 | bool splitArrayHelper(const std::vector<int>& nums, std::vector<int>::size_type index index, int sum1, int sum2, std::vector<int>& arr1, std::vector<int>& arr2) {
| ^~~~~
bootfall.cpp: In function 'bool splitArrayHelper(const std::vector<int>&, std::vector<int>::size_type)':
bootfall.cpp:7:16: error: 'sum1' was not declared in this scope
7 | return sum1 == sum2;
| ^~~~
bootfall.cpp:7:24: error: 'sum2' was not declared in this scope
7 | return sum1 == sum2;
| ^~~~
bootfall.cpp:10:5: error: 'arr1' was not declared in this scope
10 | arr1.push_back(nums[index]);
| ^~~~
bootfall.cpp:11:43: error: 'sum1' was not declared in this scope
11 | if (splitArrayHelper(nums, index + 1, sum1 + nums[index], sum2, arr1, arr2)) {
| ^~~~
bootfall.cpp:11:63: error: 'sum2' was not declared in this scope
11 | if (splitArrayHelper(nums, index + 1, sum1 + nums[index], sum2, arr1, arr2)) {
| ^~~~
bootfall.cpp:11:75: error: 'arr2' was not declared in this scope
11 | if (splitArrayHelper(nums, index + 1, sum1 + nums[index], sum2, arr1, arr2)) {
| ^~~~
bootfall.cpp:16:5: error: 'arr2' was not declared in this scope
16 | arr2.push_back(nums[index]);
| ^~~~
bootfall.cpp:17:43: error: 'sum1' was not declared in this scope
17 | if (splitArrayHelper(nums, index + 1, sum1, sum2 + nums[index], arr1, arr2)) {
| ^~~~
bootfall.cpp:17:49: error: 'sum2' was not declared in this scope
17 | if (splitArrayHelper(nums, index + 1, sum1, sum2 + nums[index], arr1, arr2)) {
| ^~~~
bootfall.cpp: In function 'bool splitArray(const std::vector<int>&, std::vector<int>&, std::vector<int>&)':
bootfall.cpp:27:60: error: too many arguments to function 'bool splitArrayHelper(const std::vector<int>&, std::vector<int>::size_type)'
27 | return splitArrayHelper(nums, 0, sum1, sum2, arr1, arr2);
| ^
bootfall.cpp:5:6: note: declared here
5 | bool splitArrayHelper(const std::vector<int>& nums, std::vector<int>::size_type index index, int sum1, int sum2, std::vector<int>& arr1, std::vector<int>& arr2) {
| ^~~~~~~~~~~~~~~~