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

Общий форум

COMPILATION ERRORS ?
Послано Georgy Kerensky 2 фев 2007 16:01
[code deleted]

Edited by author 02.02.2007 16:03

Edited by moderator 13.02.2007 20:58
Re: COMPILATION ERRORS ?
Послано Fyodor Menshikov 2 фев 2007 20:06
Because C/C++ does not allow lists in "{", "}" everywhere in the program. They are allowed only in constant definition where the compiler can check type of every list member.

I'd suggest you to use classes instead of structures. Then you'll will be able to create constructor with 3 parameters and write q.push(ln(0,0,NULL));

Edited by author 02.02.2007 20:07