Search found 2 matches

by luiggixd
Mon May 25, 2009 6:31 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320465

Re: If you get WA in problem 100, read me before post!

Ok sorry, some bugs... but I fixed all of that and still got RE. Can you tell me please what could be a greater bug than all those? I tested and it's OK (running on Windows XP) I even tested it in cygwin I'm out of mind.

// FIXED CODE
#include <stdio.h>
#include <stack.h>
#include <list.h ...
by luiggixd
Mon May 25, 2009 1:44 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320465

Re: If you get WA in problem 100, read me before post!

Hi people, I have problems with this problem.

This is my code and it gives me Runtime Exception :o

#include <stdio.h>
#include <stack.h>
#include <list.h>
#include <string.h>
#define MAX 1000001
int main()
{
int *Vector, max, n1, n2;
Vector = new int[MAX];
memset(Vector, 0, sizeof(Vector ...

Go to advanced search