You are not logged in. Please login at www.codechef.com to post your questions!

×

Vector of 1000*1000 ints

I want to know, can I work on a multidimensional vector of 1000 rows and 1000 columns inside main function? I am neither passing this vector to any function nor declaring it globally.I am getting WA in a problem,what do you think,is this vector causing this?

asked 06 Sep '17, 09:52

cyber_bot's gravatar image

3★cyber_bot
231
accept rate: 0%


If memory was an issue, you would have got a runtime error. Vector with ${10}^{6}$ elements is fine.

link

answered 06 Sep '17, 12:26

vijju123's gravatar image

6★vijju123 ♦
14.5k11754
accept rate: 18%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×2,535
×1,019
×275
×109
×71

question asked: 06 Sep '17, 09:52

question was seen: 194 times

last updated: 06 Sep '17, 12:26