You are not logged in. Please login at 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

accept rate: 0%

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


answered 06 Sep '17, 12:26

vijju123's gravatar image

5★vijju123 ♦♦
accept rate: 18%

toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 06 Sep '17, 09:52

question was seen: 208 times

last updated: 06 Sep '17, 12:26