- #1
Facktor
- 4
- 0
I've declared an unsigned long long bidimentional matrix:
When the program is initializing Z[0][0], I got a "segmentation fault" message. The Insight Debugger suggests the segmentation fault is on the line
I have no idea how to solve this, since I don't even know what the problem is. I mean, I thought "segmentation fault" was supposed to indicate a memory issue. And I can't see any problems here.
I'm using Linux (Ubuntu) - g++ compiler - and the "Insight" debugger.
What can I do to fix this?
Thank you, guys!
Code:
//(...)
typedef unsigned long long int64;
//(...)
row = pow(2,17);
col = 200;
int64 Z[row][col];
Z[0][0] = 12345678;
Code:
Z[0][0] = 12345678;
I have no idea how to solve this, since I don't even know what the problem is. I mean, I thought "segmentation fault" was supposed to indicate a memory issue. And I can't see any problems here.
I'm using Linux (Ubuntu) - g++ compiler - and the "Insight" debugger.
What can I do to fix this?
Thank you, guys!
Last edited: