Search found 2 matches

by dumbledore
Mon Nov 26, 2001 6:37 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108632

I can't understand, the problem say:
The input begins with an integer n on a line by itself representing the number of blocks in the block world. You may assume that 0 < n < 25.

So I can define table[25][25], but even when I use table[200][200], it's still out of range.
by dumbledore
Mon Nov 12, 2001 4:44 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108632

Who can help me?
I got this when compiling:
Your program has died with signal 11 (SIGSEGV). Meaning:

Invalid memory reference

Before crash, it ran during 0.010 seconds.

and this is my source in C:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int table[200][200];
int a,b, posa ...

Go to advanced search