Search found 286 matches

by sumankar
Fri May 16, 2008 12:58 pm
Forum: C++
Topic: void main on-line judge compiler error?
Replies: 2
Views: 2355

Re: void main on-line judge compiler error?

This has come up so often that this should probably go into a coding styles FAQ (if its not already there).
mf wrote:Current C++ standard requires that you use 'int main()'.
More meat to mf's statement -- void main() *never was* C++; read this.
by sumankar
Tue Nov 06, 2007 8:30 am
Forum: Off topic (General chit-chat)
Topic: Where is little joey?
Replies: 2
Views: 33838

Netherlands, I presume :D

He was solving problems even after August at least, though. From little joey's stats:

Code: Select all

Last submission:	2007-09-06 09:44:28
But seriously, send him an IM if you want.
by sumankar
Tue Nov 06, 2007 8:22 am
Forum: Bugs and suggestions
Topic: Latest submissions missing from Author's Ranklist
Replies: 1
Views: 1778

Latest submissions missing from Author's Ranklist

I submitted a few problems in the last 5 days or so. I don't see them in the Author's Ranklist though. Basically, I see a difference in the number of Tries/Accpeted problems as found in the new web interface (for submission) and the Author's Ranklist. Am I missing something here? Regards, Suman PS: ...
by sumankar
Sun Oct 21, 2007 2:16 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 62648

WR wrote:Your result is really

Code: Select all

...

6692                 < ---- ????
?
What is wrong with this answer?
by sumankar
Wed Jun 06, 2007 6:51 am
Forum: Off topic (General chit-chat)
Topic: Joachim Wulff has got 2000 problems solved!!!
Replies: 16
Views: 42814

Congratulations little joey! <let's keep this thread as it's called ;) >

Regards from a big fan!
by sumankar
Wed Oct 18, 2006 8:53 am
Forum: C++
Topic: Is a class implicitly a friend class of itself?
Replies: 5
Views: 3528

Nice example. When you come to think about it, assuming that the restrictions were on a per object basis, we wouldn't be able go beyond: ... // warning: not tested class foo { public: int doit(const foo *f) const { return x + f->x; ... The compiler would never ever compile this!
by sumankar
Tue Oct 17, 2006 8:55 am
Forum: C++
Topic: Is a class implicitly a friend class of itself?
Replies: 5
Views: 3528

You have aptly demonstrated what Krzysztof claimed! Think of a problem where you have a class called Complex with two members of arithmetic type called real and img. Also, assume that an object of class Complex cannot access the private member(s) of another object of the same class. Can you still go...
by sumankar
Fri Sep 22, 2006 5:10 am
Forum: Other words
Topic: data security
Replies: 3
Views: 2968

Someone can take the hard disk out and copy all your data. Use disk
encryption. Apart from that latest IBM laptops come with fingerprint
identification. If you can afford it ... well go ahead!
by sumankar
Wed Sep 20, 2006 5:51 am
Forum: Bugs and suggestions
Topic: CAPTCHA: To catch board miscreants
Replies: 4
Views: 2652

CAPTCHA: To catch board miscreants

I was dumbstruck when I checked in on the board today to see a certain margaretkokgsmash on rampage. This has been going on for some time (not the same id, others maybe) ie. abuse of the board. We need to do something about this. And this brings to mind CAPTCHA. This would definitely put all members...
by sumankar
Fri Jul 21, 2006 3:11 pm
Forum: Algorithms
Topic: O(log n) Fibonacci
Replies: 4
Views: 3447

Q-Matrix. GIYF.
by sumankar
Wed Jul 19, 2006 2:14 pm
Forum: C
Topic: Compile Error
Replies: 2
Views: 4912

Fix the syntax errors first.
1. assign: function declaration/definition doesn't match.
check # of parameters in prototype declaration and usage.
2. C doesn't have references: so no *& stuff
3. abs is predefined in stdlib.h -- can't do that.
by sumankar
Wed Jul 19, 2006 12:40 pm
Forum: C++
Topic: CE
Replies: 1
Views: 2049

cout.precision/cout << fixed ... is giving you the CE. Exercise for the reader: find out which one and how to fix it ;) Also, delete the other post.
by sumankar
Wed Jul 19, 2006 10:35 am
Forum: C++
Topic: How use STL?
Replies: 2
Views: 2487

0. Post in the right place. [Help On Languages -> C++] 1. What are you trying to do? Your code is declaring/defining an array of vectors (roughly a 2D array) of integers. Is that what you want? Or, is it that you want a 1D array in which case the following suffices: #include <vector> int main() { st...
by sumankar
Tue Jul 18, 2006 10:25 am
Forum: C++
Topic: flush
Replies: 8
Views: 4336

[...]Confused... :-? it's just looping forever, isn't it? or anything else? I really don't understand... Don't miss the wood for the trees. The loop is not important in itself. Take out the `flush' from the cout statement and then try to run the program. Can you see any difference? Here's the relev...
by sumankar
Tue Jul 11, 2006 4:30 pm
Forum: C++
Topic: Code (don't understand)
Replies: 12
Views: 5738

[...]and I guess my library doesn't have stroustrop (this just my guess). Does Deitel C++ How To Program a good book? I've seen those a lot in my college library. Never read that one. So no comments.However, do have a look here . Also check out amazon etc for reviews. It'd be the very strange if yo...

Go to advanced search