Search found 1 match

by popoyo5168
Fri Jul 15, 2011 7:49 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 110773

Q101: why i got the Runtime error!!

#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int num[25][25]={-1};
int i,j;
int n;
int back(int x1,int y1)
{
int temp;
temp=num[x1][y1];
num[x1][y1]=-1;
for(int j=0;j<25;j++)
{
if(num[temp][j]==-1)
{
num[temp][j]=temp;
break;
}
}
num[x1][y1]=-1;

}
int ...

Go to advanced search