I think my array is big enough, but it is still Run Time Error.
Can anyone help me?
Thank you
#include<iostream>
#include<algorithm>
#define MAX 600000
using namespace std;
int main()
{
int t,order[MAX];
char text[MAX];
char *token;
char item[MAX/2][100];
cin.getline(text,MAX);
t = atoi ...
Search found 2 matches
- Sun Nov 02, 2008 10:11 am
- Forum: Volume 4 (400-499)
- Topic: 482 - Permutation Arrays
- Replies: 159
- Views: 53710
- Fri Aug 22, 2008 5:17 pm
- Forum: Volume 3 (300-399)
- Topic: 371 - Ackermann Functions
- Replies: 196
- Views: 51240
371 WA
I dont know the wrong of the code
I count 1 to 10000 first
if the input < 10000, I just use the len[input]
please tell me what is wrong
thank you very much #include<stdio.h>
#define MAX 10000
struct num
{
unsigned int length;
unsigned int value;
};
int len[MAX];
int ackermann(unsigned int n ...
I count 1 to 10000 first
if the input < 10000, I just use the len[input]
please tell me what is wrong
thank you very much #include<stdio.h>
#define MAX 10000
struct num
{
unsigned int length;
unsigned int value;
};
int len[MAX];
int ackermann(unsigned int n ...