Блог пользователя Rip_Van_Winkle

Автор Rip_Van_Winkle, история, 11 лет назад, По-английски

Codeblocks doesn't allow me to declare a long long type array size of 5*10^8. Can I somehow change the compiler settings to declare such large global array?

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Emm, it will cost (5 * 10^8 * 8) / 1024 / 1024 -> 3814,697265625 megabytes.

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Your question provides too little information.
What's your operating system? 32 or 64bit?
What's your compiler?
Is there a sample code?

Besides that, Codeblocks is an IDE, not a compiler.

»
11 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

I think the point of such problems is to find another way of storing or even not storing this data and still solve it.