ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1313. Some Words about Sport

[code was deleted by moderator ;-)]

Edited by moderator 20.04.2004 08:04
Илья Гофман (Ilya Gofman) Re: Why I Have COMPILLATION ERROR, at my comiplator all is OK [1] // Problem 1313. Some Words about Sport 19 Apr 2004 19:03
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