#Debugger in neovim showing vector as empty
1 messages · Page 1 of 1 (latest)
When your question is answered use !solved or the button below to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Try printing the size of the vector with cout, does it also print empty?
debugger on neovim ._.
which vector is empty?
oh the values
why are you flatting the matrix vector
ohh to sort it...
you can just not flatten the matric vector....
no it doesn't . logic is perfectly fine
i mean sure but my current issue isn't related to that ...
what sort function are you using?
I've seen similar issues when enabling debug containers/iterators with -D_GLIBCXX_DEBUG
Check your compiler flags, do you have that?
i include bits/stdc++ and use namespace std . i know this is bad but convenient for problem solving . that said this is the sort function i am using
template<typename _RandomAccessIterator>
_GLIBCXX20_CONSTEXPR
inline void
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
{
// concept requirements
__glibcxx_function_requires(_Mutable_RandomAccessIteratorConcept<
_RandomAccessIterator>)
__glibcxx_function_requires(_LessThanComparableConcept<
typename iterator_traits<_RandomAccessIterator>::value_type>)
__glibcxx_requires_valid_range(__first, __last);
__glibcxx_requires_irreflexive(__first, __last);
std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter());
}
cpp functions are really unreadable to me but whatever
i use this to run program
vim.opt_local.makeprg = "g++ -g -std=c++17 -Wall -Wextra -o " .. output .. " " .. file
ignore the nvim stuff
i was just wondering if you were using a custom one that doesn't work