simurgh.cpp: In function 'int c_c_r(std::vector<int>)':
simurgh.cpp:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(r.size()!=N-1)exit(1);
~~~~~~~~^~~~~
simurgh.cpp: In function 'std::vector<int> solve(int)':
simurgh.cpp:114:21: error: expected ')' before 'ans'
sort(ans.begin()ans.end());
^~~
simurgh.cpp:114:30: error: no matching function for call to 'sort(std::vector<int>::iterator)'
sort(ans.begin()ans.end());
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from simurgh.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:4826:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^~~~
/usr/include/c++/7/bits/stl_algo.h:4826:5: note: template argument deduction/substitution failed:
simurgh.cpp:114:30: note: candidate expects 2 arguments, 1 provided
sort(ans.begin()ans.end());
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from simurgh.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:4856:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~
/usr/include/c++/7/bits/stl_algo.h:4856:5: note: template argument deduction/substitution failed:
simurgh.cpp:114:30: note: candidate expects 3 arguments, 1 provided
sort(ans.begin()ans.end());
^