|
|
back to board[code was deleted by moderator ;-)] Edited by moderator 20.04.2004 08:04 complilation error can be also achieved by calling division by zero, falling out of arrays, etc. the test may contain some situation which your program can't handle validly. I think it is because of the header you are using. I think it must be written like this : #include <fstream> using namespace std; You can't write for (int x = 1; x <= n; x++) {...} and then for (x = 2; x <= n; x++) {...} x is underfined here! you should write int x; for (x = 1; x <= n; x++) {...} for (x = 2; x <= n; x++) {...} or for (int x = 1; x <= n; x++) {...} for (int x = 2; x <= n; x++) {...} what's the meaning,it's too long |
|
|