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

Common Board

C++ includes fail
Posted by Stefan Pochmann 9 Jun 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
Posted by Stefan Pochmann 9 Jun 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