Search found 584 matches

by Krzysztof Duleba
Tue Feb 06, 2007 2:38 am
Forum: Algorithms
Topic: need IDA* explanation
Replies: 1
Views: 1490

Google is your friend.
by Krzysztof Duleba
Sun Jan 14, 2007 6:31 am
Forum: C++
Topic: 100% CPU Usage...
Replies: 3
Views: 2055

Select would be useless if it couldn't handle it, would it? You can use exception sets, you can set a timeout. Read the manual or look for examples, there are plenty of them on the web.
by Krzysztof Duleba
Wed Jan 10, 2007 1:03 pm
Forum: C++
Topic: 100% CPU Usage...
Replies: 3
Views: 2055

You should be using select instead of active waiting. Use Google to find more info about it.
by Krzysztof Duleba
Wed Jan 03, 2007 11:36 am
Forum: Bugs and suggestions
Topic: Author Statictic
Replies: 54
Views: 13898

Also it's funny to see some problems on my solved problems list with -/- status. My name is missing on ranklists related to such problems. http://acm.uva.es/problemset/usersnew.php?user=30863&mode=3 I can't see such a situation, can you explain us a little bit more? It seems to be resolved now. The...
by Krzysztof Duleba
Wed Jan 03, 2007 12:28 am
Forum: Bugs and suggestions
Topic: Author Statictic
Replies: 54
Views: 13898

It seems there's something wrong with non-basic ASCII characters (as in my name). Also it's funny to see some problems on my solved problems list with -/- status. My name is missing on ranklists related to such problems. http://acm.uva.es/problemset/usersnew.php?user=30863&mode=3 Apart from that (an...
by Krzysztof Duleba
Wed Dec 27, 2006 2:34 pm
Forum: C++
Topic: Why we can use "while(cin >> a)"
Replies: 6
Views: 3094

Just to make clear, if (!a_stream) is using bool operator!, not operator void*.
by Krzysztof Duleba
Tue Dec 26, 2006 4:53 pm
Forum: C++
Topic: Why we can use "while(cin >> a)"
Replies: 6
Views: 3094

Oh, actually for some reason it's operator void* and not operator bool that's used here. It's a member of basic_ios.
by Krzysztof Duleba
Tue Dec 26, 2006 2:43 pm
Forum: C++
Topic: Why we can use "while(cin >> a)"
Replies: 6
Views: 3094

Streams have bool operator() (conversion operator to bool) that returns !this->failed().
by Krzysztof Duleba
Sat Dec 02, 2006 2:41 pm
Forum: C++
Topic: hash_map<string,int>
Replies: 3
Views: 3850

The error message you're getting should be very straightforward, what part of it do you need help with?

Hint: hash_* aren't portable, so don't be surprised that you have to use a particular version of gcc to reproduce OJ's behaviour.
by Krzysztof Duleba
Sun Nov 26, 2006 1:33 pm
Forum: C++
Topic: are the time limits set so that STL code runs within it?
Replies: 12
Views: 4483

For general purpose compiling you don't need anything else than -O3.

What's much more interesting is what C++ compiler will be used. gcc 2.95 is very old, 3.x are better, but I'd really love to see 4.x :-)
by Krzysztof Duleba
Sat Nov 25, 2006 8:47 pm
Forum: Other words
Topic: Problem from acm.sgu. Has anyone an idea?
Replies: 2
Views: 3323

DP and some binary searches.

sgu have their own forum, it's more appriopriate to ask there.
by Krzysztof Duleba
Fri Nov 03, 2006 8:41 am
Forum: C++
Topic: Help compiler Error!!!! invalid type argument of `unary *'
Replies: 1
Views: 2791

C standard says that putchar can be either a function or a macro. In gcc 2.95 it was a macro indeed and overloading it is a no-go.
by Krzysztof Duleba
Mon Oct 30, 2006 5:24 am
Forum: C++
Topic: Function call
Replies: 1
Views: 1669

int put(int a[][100]) { // ... } In order to evaluate expressions like a[x][y], the compiler has to do something like *(a + x * 100 + y). Note that it must know all dimensions of the array, perhaps except for the first one. However, if you just pass is a pointer (int **), the compiler will have no ...
by Krzysztof Duleba
Mon Oct 30, 2006 12:43 am
Forum: C++
Topic: moduler design with "extern keyword"
Replies: 2
Views: 1830

You have to link m1.o with main.o (no idea how to do it in VC, but it should be easy).
by Krzysztof Duleba
Sat Oct 21, 2006 12:14 pm
Forum: Volume 110 (11000-11099)
Topic: 11051 - Dihedral groups
Replies: 8
Views: 2497

Actually, scanf("%d%*c", &an_int_which_original_name_I_forgot_and_cannot_lookup_after_you_removed_the_code) will do the trick (again, you can find really amazing things in the manual :-) )

Go to advanced search