Search found 7 matches

by mohitkanwal
Sun May 31, 2009 8:53 am
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 121
Views: 64282

Re: 10194 - Football (aka Soccer)

Hello guys, i have every post in the section n still can't get my program to work kepping on getting WAs for my code.I also tried the code at programming challenges still WA... it's a bit long ..i checked the program at http://www.youngprogrammer.com but could not use it to find the error in my code ...
by mohitkanwal
Wed Apr 15, 2009 6:17 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

Re: 10267 - Graphical Editor

void fill(int x, int y, char c)
{
c_back = img[x][y];
img[x][y] = c;
if (c_back == c) //ADD THIS LINE
return;
if(x > 1 && img[x-1][y] == c_back) fill(x-1, y, c);
if(x < m && img[x+1][y] == c_back) fill(x+1, y, c);
if(y > 1 && img[x][y-1] == c_back) fill(x, y-1, c);
if(y < n && img[x][y+1 ...
by mohitkanwal
Wed Apr 15, 2009 6:14 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

Re: 10267 - Graphical Editor

Coz ur fill function .. is inappropriate ... check the previous post I also got the same RTE .. you must check that if the new colour is same as old colour of the pixel then exit ..


I'm new here. I kept getting "Runtime Error" all the time and I don't know why.
Could somebody please help me out ...
by mohitkanwal
Tue Apr 14, 2009 8:57 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

Re: 10267 - Graphical Editor

yup .. that was the only freaking error .. so stupid I cud not see the error :D ha ha got ACC.. time 0.060 secs....Thanks
by mohitkanwal
Mon Apr 13, 2009 8:50 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

Re: 10267 - Graphical Editor

Hi all .. I have been working on this problem since one week .. I am getting RTE over and over again .. I am fed up .. I tried my code at programming-challenges.com and it gave WA ., I cannot understand where is the error .. for the last six days I have kept debugging my code by using test data from ...
by mohitkanwal
Sat Apr 04, 2009 9:35 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124945

Re: WA

i got wrong answer. please help me. here is my code


#include<stdio.h>

char output[100][100];

void solve(int n,int m, int i, int j){
int p,q;
int k,l;
for(p = -1; p <= 1; p++)
for(q = -1; q <= 1; q++)
if(p != 0 || q != 0){
k = p + i;
l = q + j;
if(k >= 0 && k <= n && l >= 0 && l <= m ...
by mohitkanwal
Sat Apr 04, 2009 9:32 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124945

Re: 10189 - Minesweeper

Hi all I keep getting WA everytime I submit the problem again and again .. I searched the entire forum .. tested all the data that I could find in the forum and they are all correct .. I wanted to know whether it's okay to store the computed hint and display later coz .. I tried to switch to 1 entry ...

Go to advanced search