Search found 4 matches

by usamamaqbool
Tue Jan 08, 2013 5:41 am
Forum: Volume 103 (10300-10399)
Topic: 10391 - Compound Words
Replies: 40
Views: 24728

Re: 10391 compound words : wrong answer

Thanks brianfry713 ...:)

Kindly Check Its now giving TLA????
by usamamaqbool
Tue Jan 08, 2013 5:40 am
Forum: Volume 103 (10300-10399)
Topic: 10391 - Compound Words
Replies: 40
Views: 24728

Re: 10391 compound words : wrong answer

#include <iostream>
#include<stdio.h>
#include<string>


using namespace std;

int main()
{
string *p;
string var;
int *flag;
int a=0;
int size=120000;
p=new string[size];
flag=new int[size];
for(int i=0;i<size;i++)
{
p ="NULL";
flag =0;
}

while((getline(cin,var)) !=NULL)
{
int ...
by usamamaqbool
Mon Dec 31, 2012 12:24 pm
Forum: Volume 103 (10300-10399)
Topic: 10391 - Compound Words
Replies: 40
Views: 24728

Re: 10391 compound words : wrong answer

Everytime I read through getline or cin or a file it gives WRONG ANSWER
by usamamaqbool
Mon Dec 31, 2012 12:23 pm
Forum: Volume 103 (10300-10399)
Topic: 10391 - Compound Words
Replies: 40
Views: 24728

10391 compound words : wrong answer

//#include <fstream>
#include <iostream>
#include<string>
using namespace std;


class hash
{
private:
string *p;
int size;
int *flag;
int key;
string var;
public:
hash()
{
size=120,000;
key=0;
var='\0';
}
hash(int size,string name,int key)
{
this->size=size;
this->key=key;
this->var ...

Go to advanced search