User profile: gameprogrammer

User info
User name:gameprogrammer
History
Joined:
Number of posts:24
Latest posts:

Can't find the error (related to % ?)
Thanks, changing it to [code]int(pow(3,i))[/code] gets rid of the problem.

Can't find the error (related to % ?)
[code] int a[21],i; a[0]=0; a[1]=1; for (i=2;i<=20;i++) a[i]=(7*a[i-1])%1000-(10*a[i-2])...

Checking if variables are pairwise distinct
Duoas' method is very simple and it is the one I'll use, the other ones are a bit more complicated a...

Checking if variables are pairwise distinct
Duoas, I hadn't heard of std::set before and I'm not sure how should I go about using it. The compil...

Checking if variables are pairwise distinct
Stewbond, your given functions is not exactly what I need. Both the following codes output 0: [code...