Search found 6 matches

by Mohiuddin
Sat Apr 04, 2009 5:19 pm
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 27786

Re: 10420 - List of Conquests

HI, i m getting runtime err for this code....can anyone help me? #include<stdio.h> #include<string.h> char str[10000][1000],ch[1000]; char temp[1000]; int main() { int i,j,t; scanf("%d",&t); for(i=0;i<t;i++) { j=0; fflush(stdin); gets(ch); while(1) { if(ch[j]==' ') { ch[j]='\0'; break;...
by Mohiuddin
Mon Aug 11, 2008 8:37 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 29476

Help..

This is very annoying that i m getting wa over & over again...plzz tell me anyone where is my problem? :cry: #include <stdio.h> void free(int *index) { int i; for(i=0;i<25;i++) { index =0; } } void check(int num) { if(num>99) printf("%d",num); else if(num>9) printf(" %d",num)...
by Mohiuddin
Mon Aug 11, 2008 8:32 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 31583

Re: 10101 - Bangla Numbers

Please help me..why i m getting wrong answer? i have checked all possible inputs..but...please pzzzzz help.. here is the code - #include <stdio.h> #include <string.h> int index; void recur(char *str,int j,int k) { int temp; if(j<index) { return; } if(k==0) { k=k+2; recur(str,j-2,k); if(j-1<index) te...
by Mohiuddin
Tue Apr 29, 2008 8:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 80468

Re: 10189 - Minesweeper

still getting w a...what can i do further?where's the mistake? is that in output format? #include <stdio.h> #include <stdlib.h> int pos(int x,int y,char **ch,int r,int c) { if(x>=0 && y>=0 && x<r && y<c) { if(ch[x][y]=='*') return 1; } return 0; } int main () { int r,c,k; cha...
by Mohiuddin
Tue Apr 29, 2008 7:04 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 37080

Re: 401 palindromes WA help

i m getting w a. i can't understand what's the mistake? Plzz help.. #include<stdio.h> #include<string.h> int main (void) { int i,j,k,p,q; char ch[21]; char ch1[21]={'A','E','H','I','J','L','M','O','S','T','U','V','W','X','Y','Z','1','2','3','5','8'}; char ch2[21]={'A','3','H','I','L','J','M','O','2'...
by Mohiuddin
Fri Apr 25, 2008 12:18 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 80468

Re: 10189 - Minesweeper

I can't understand why i m getting w a? PLZZ help... here's the code: #include <stdio.h> #include <stdlib.h> int main () { int r,c,k; char **ch; for(k=1;;k++) { scanf("%d %d",&r,&c); if(r==0&&c==0) { break; } int i,j,count; ch=(char **)malloc(r*sizeof(char*)); for(i=0;i<r;i...

Go to advanced search