Search found 6 matches

by freaky
Thu Aug 07, 2003 9:37 am
Forum: C++
Topic: Very surprising
Replies: 3
Views: 2519

You only have a guarantee that ANSI standard functions work fine. As for the others, you never know - you can try, but you can either get AC or RF/CE.

There are some commonly used language features and library components stated in ANSI/ISO C++ Standard do not work at all or not as expected, since ...
by freaky
Fri Sep 27, 2002 8:02 am
Forum: Other words
Topic: compile error
Replies: 10
Views: 4708

I know, that i.e. <vector>, <algorithm> are standard C++ header files, but I don't know what set of such files are allowed by judge !
I couldn't find any word on this site about list of allowed headers and functions - and if I want to avoid Compile Error I can't use it :-(

When I write programs in ...
by freaky
Tue Sep 24, 2002 6:31 pm
Forum: Other words
Topic: compile error
Replies: 10
Views: 4708

I'm not sure what's true, but possible reasons of that could be:

1. maybe try to add space between 'include' and '<ios....'
2. <iostream.h> is not part of ANSI C++ (I write my solutions in C only and I don't know that :-( )
3. <iostream.h> is part of ANSI C++, but isn't allowed by judge

Best ...
by freaky
Sun Sep 15, 2002 1:50 pm
Forum: Other words
Topic: Compile Error!
Replies: 4
Views: 2378

try it like this:
[cpp]istringstream istr1(string(temp.substr(2)));
istr1 >> p1;
istringstream istr2(string(((j != 0)&&(k != 0)) ? temp.substr(2, k) : "0"));
istr2 >> p2;
ptemp = p1 - p2;
istringstream istr3(string(denominator.substr(0, j+k+1)));
istr3 >> q1;
istringstream istr4(string((j ...
by freaky
Sun Sep 15, 2002 10:43 am
Forum: Other words
Topic: Compile Error!
Replies: 4
Views: 2378

It compiles when I submit it. Certainly your mailer is adding some text, try with:
/* @begin_of_source_code */
Code
/* @end_of_source_code */

Thanks, but here's another compile error, this time it's definitely the library's fault:

[cpp]
#include <iostream>
#include <sstream>
using namespace std ...
by freaky
Sat Sep 14, 2002 11:35 pm
Forum: Other words
Topic: Compile Error!
Replies: 4
Views: 2378

Compile Error!

:(
The following code gets tons of compiling errors from the online judge.
Why does the library remain non-standard for this long?
[cpp]
#include <iostream>
#include <algorithm>
#include <string>
#include <cctype>
using namespace std;

bool judge(const string &s) {
string temp(s);
string ...

Go to advanced search