i cant fix the prblm of my code.Probably i dont understand the algo.plz hlp me nd give some examples so tht i can understnd the alogo...
[color=green][/color]
#include<stdio.h>
#include<iostream.h>
#include<stdlib.h>
int compare( const void *a, const void *b)
{
return( *(int *)a-*(int*)b);
}
int ...
Search found 9 matches
- Mon Jan 09, 2006 7:04 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10041 - Vito's Family
- Replies: 90
- Views: 44499
- Sat Jan 07, 2006 7:16 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83851
- Sat Jan 07, 2006 4:08 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83851
10070 WA
Can anuone give me some critical I/O. I can't fix the bug o my code.plz help me.
/*My code */
#include<stdio.h>
#include<iostream.h>
#include<string.h>
#include<math.h>
int checkleap(char year[])
{
int len,check1=0,check2=0,i,j;
long int sum1=0,sum2=0;
len=strlen(year);
if(year[len-2]=='0 ...
/*My code */
#include<stdio.h>
#include<iostream.h>
#include<string.h>
#include<math.h>
int checkleap(char year[])
{
int len,check1=0,check2=0,i,j;
long int sum1=0,sum2=0;
len=strlen(year);
if(year[len-2]=='0 ...
- Thu Jan 05, 2006 7:49 pm
- Forum: Volume 3 (300-399)
- Topic: 392 - Polynomial Showdown
- Replies: 93
- Views: 31643
- Wed Jan 04, 2006 3:31 am
- Forum: Volume 7 (700-799)
- Topic: 739 - Soundex Indexing
- Replies: 39
- Views: 18000
- Tue Jan 03, 2006 10:08 pm
- Forum: Volume 7 (700-799)
- Topic: 739 - Soundex Indexing
- Replies: 39
- Views: 18000
739 PE
Dear solver, i hv changed my code , but still it is PE.Will u plz explain whr the prblm is.
- Tue Jan 03, 2006 8:59 pm
- Forum: Volume 7 (700-799)
- Topic: 739 - Soundex Indexing
- Replies: 39
- Views: 18000
739 PE plz hlp me
I hv solved the CE, but still it is giving PE.I can't understand where the prblm is.Plz hlp me.
/*My code*/
#include<stdio.h>
#include<iostream.h>
#include<string.h>
char compare(char ch)
{
if((ch=='B')||(ch=='P')||(ch=='F')||(ch=='V'))
return '1';
if((ch=='C')||(ch=='S')||(ch=='K')||(ch=='G ...
/*My code*/
#include<stdio.h>
#include<iostream.h>
#include<string.h>
char compare(char ch)
{
if((ch=='B')||(ch=='P')||(ch=='F')||(ch=='V'))
return '1';
if((ch=='C')||(ch=='S')||(ch=='K')||(ch=='G ...
- Tue Jan 03, 2006 5:27 pm
- Forum: Volume 3 (300-399)
- Topic: 392 - Polynomial Showdown
- Replies: 93
- Views: 31643
392 CE plz hlp me
Hi, ACM prblm solver, plzhlp me by solving my error .I hv tested for all possible i/o.
/*Here is my code*/
#include<stdio.h>
#include<iostream.h>
#include<string.h>
int main(void)
{
int i=0,a,m;
int arr[10];
float num;
char str[100]="0",tmp[5];
while(cin>>a)
{
arr =a;
if(i==8)
{
for ...
/*Here is my code*/
#include<stdio.h>
#include<iostream.h>
#include<string.h>
int main(void)
{
int i=0,a,m;
int arr[10];
float num;
char str[100]="0",tmp[5];
while(cin>>a)
{
arr =a;
if(i==8)
{
for ...
- Tue Jan 03, 2006 5:20 pm
- Forum: Volume 7 (700-799)
- Topic: 739 - Soundex Indexing
- Replies: 39
- Views: 18000
739 CE plz hlp..............
I hv tested all possble cases , but it is always giving compile error.plz hlp me.
/*Here is my code*/
#include<stdio.h>
#include<iostream.h>
#include<string.h>
char compare(char ch)
{
if((ch=='B')||(ch=='P')||(ch=='F')||(ch=='V'))
return '1';
if((ch=='C')||(ch=='S')||(ch=='K')||(ch=='G ...
/*Here is my code*/
#include<stdio.h>
#include<iostream.h>
#include<string.h>
char compare(char ch)
{
if((ch=='B')||(ch=='P')||(ch=='F')||(ch=='V'))
return '1';
if((ch=='C')||(ch=='S')||(ch=='K')||(ch=='G ...