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

Общий форум

C++ includes fail
Послано Stefan Pochmann 9 июн 2001 00:59
Hi everyone.

On 30 Apr 2001, Marat Bakirov posted a list of include
files for C and C++. But it doesn't work. I used the
following at top of my program:

#include <iostream>
#include <complex>
#include <cstdio>
using namespace std;

Could please somebody explain how to correctly include
those headers?

Thanks in advance,
Stefan Pochmann
Re: C++ includes fail
Послано Stefan Pochmann 9 июн 2001 05:49
Ok, I tried a lot and failed every time. It is possible
to include some headers when the extension ".h" is
explicitly given:
#include <iostream.h>

This should work without the extension, too (assuming a
standard C++ compiler), but it's ok. The bigger problem
is that I just can't include <algorithm>. I think there's
a problem with the compiler installation, so I ask the
admins to fix it or tell me how to work around this.
Or does anybody else have a hint for me?

Stroustrap, g++ and uva.es all think that
#include <algorithm>
is ok, so I'm very disappointed and won't try any further
until somebody tells me how to do it at timus.

Stefan Pochmann