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

Why I Have COMPILLATION ERROR, at my comiplator all is OK
Posted by Kobzarev Ivan 19 Apr 2004 18:09
[code was deleted by moderator ;-)]

Edited by moderator 20.04.2004 08:04
Re: Why I Have COMPILLATION ERROR, at my comiplator all is OK
Posted by Илья Гофман (Ilya Gofman) 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.
Re: Why I Have COMPILLATION ERROR, at my comiplator all is OK
Posted by Yosif Yosifov 20 Apr 2004 05:11
I think it is because of the header you are using.
I think it must be written like this :

#include <fstream>
using namespace std;
Re: Why I Have COMPILLATION ERROR, at my comiplator all is OK
Posted by Vladimir Yakovlev (USU) 20 Apr 2004 07:57
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 of this question
Posted by xxxx 16 Jul 2004 07:59
what's the meaning,it's too long