Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

vector memory allocation problem.Is anything wrong with vector container to allocate big memory

$
0
0

http://ideone.com/B5BiLv

Here's a seive to find composites .It works fine if I input <=19000 but for bigger values the program doesn't work..... Is there any problem with vector........although vector max size is much bigger.But why it collapses?Then

I'm really in a fix what to do....What container is best to store very large data... I don t want to use array .It just kills space ..... What container ll be best for this ?

and do i need to use any other data structure to get big space? Thanks :-)


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>