Mail Archives: djgpp/2000/07/07/13:31:03
Petr Maxa wrote:
> This is a multi-part message in MIME format.
Please don't post in MIME.
> Hi Nimrod,
> thanks for the source, I've compiled as You recomended, but got the same
> errors (see in atachment).
>
> Everythink works right when I change
> stack<deque<int> > s;
> for
> stack<int> s;,
This change is clearly necessary, but you should also put
using namespace std;
after the #includes (or use some other method of indicating the
namespaces). You can also remove the #include <deque> as you're
no longer using it.
> but I am not sure if it is the same.
I think it now does what it was supposed to do. The original seems
to have been written for a non-standard STL (if that makes any sense).
> I do not have access to any other compiler which support stl, so I ask in
> this group.
Borland C++ 5.5 behaves the same, except that it insists on the
"using namespace std;", whereas DJGPP somehow manages without.
S.
- Raw text -