code_bull's blog

By code_bull, history, 4 years ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

You are trying to create a vector of size 1000000000000 that seems too large:

vector<long long int>a(n);

BTW, there is no need for vector at all: https://github.com/actium/cf/blob/master/0300/10/318a.cpp