Search found 2 matches

by Sultan_Dhaka
Tue Nov 08, 2011 9:10 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 47463

Re: 10323 - Factorial! You Must be Kidding!!!

I can not understand what is the error in this code ?? Why is it not accepted ?? Hi guyz ! Please help me

#include<iostream>
using namespace std;

long int array[15];

void factorial(int N)
{
int i,result=1;
for( i=2;i<=N;i++)
result=result*i;
array[N]=result;
}

int main()
{
long int N;
for ...
by Sultan_Dhaka
Wed Nov 02, 2011 8:34 am
Forum: Volume 101 (10100-10199)
Topic: 10192 - Vacation
Replies: 58
Views: 23939

Re: 10192 - Vacation

I have submitted the following code which seems to me correct but I got Run-time eror . Can any one tell me where is the bug ??


#include<iostream>
#include<string>
#include<cstdio>
using namespace std;

int LCS(string a , string b)
{

int m,i,j,n,c[100][100];
m=a.length()-1;
n=b.length()-1 ...

Go to advanced search