0_0_17920410_18017.cpp: In function 'void printSbusequences(int&, std::vector<int>&)':
0_0_17920410_18017.cpp:46:120: error: invalid initialization of non-const reference of type 'std::vector<int>::iterator& {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >&}' from an rvalue of type 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}'
dfs(sequence.begin(), sequence.end(), sequence.begin(), subsequence, nums_of_subsequences, length, exist_subsequences);
^
0_0_17920410_18017.cpp:9:6: note: in passing argument 1 of 'void dfs(std::vector<int>::iterator&, std::vector<int>::iterator&, std::vector<int>::iterator, std::vector<__gnu_cxx::__normal_iterator<int*, std::vector<int> > >&, int&, int, bool&)'
void dfs(vector<int>::iterator& begin, vector<int>::iterator& end, vector<int>::iterator now,
^
|