Код: Выделить всё
func(vectornums,int idx,vector){
func(nums,index+1,arr+nums[idx]);
}
Код: Выделить всё
Line 12: Char 37: error: invalid operands to binary expression ('vector' and 'value_type' (aka 'int'))
12 | func(nums,index+1,arr+nums[index]);
| ~~~~~~^~~~~~~~~~~~
Не использовать push_back< /code>, emplace_back и Insert, так как они изменят аранжировку.
Подробнее здесь: https://stackoverflow.com/questions/785 ... the-vector
Мобильная версия