ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1313. К вопросу о спорте

Why I Have COMPILLATION ERROR, at my comiplator all is OK
Послано Kobzarev Ivan 19 апр 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
Послано Илья Гофман (Ilya Gofman) 19 апр 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
Послано Yosif Yosifov 20 апр 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
Послано Vladimir Yakovlev (USU) 20 апр 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
Послано xxxx 16 июл 2004 07:59
what's the meaning,it's too long