|back to board|
"There are no more than 1000 words in the file." seems to be wrong!
const int MAXM = 1000; // Crash (access violation)
const int MAXN = 2000;
char buf[MAXN]; // input buffer
string data[MAXM]; // here all strings contains
Using MAXM = 1000 I got Crash (access violation) on Test 3. After changing to MAXM = 2000 I got AC.
Edited by author 10.09.2008 00:02
Right! The statement is fixed. Thank you. (-)