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?
| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3390 |
| 6 | Um_nik | 3387 |
| 7 | tourist | 3384 |
| 8 | heuristica | 3322 |
| 9 | turmax | 3319 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 143 |
| 5 | AmShZ | 141 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | maroonrk | 134 |
| 9 | BledDest | 132 |
| 10 | qwexd | 129 |
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?
| Name |
|---|



Emm, it will cost (5 * 10^8 * 8) / 1024 / 1024 -> 3814,697265625 megabytes.
I see that now :(
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.
OS is 64 bit and i'm using a gnu gcc compiler. actually i was trying to do the precalculation part of this problem and save it in a file. I couldn't think of a way to do it without creating a
5*10^8array :(I think the point of such problems is to find another way of storing or even not storing this data and still solve it.