Re: [gcj] Round 1 C -B in c++

2010-03-08 Thread Ken Corbin
Hello, There are several reasons why the same code C/C++ might execute differently on different processors. The most probable is that the size of int variables can vary from 16, 32, or 64 bits. I'd try declaring all of your int variables as long and see if that makes a difference. Good luck,

Re: [gcj] Round 1 C -B in c++

2010-03-09 Thread Luke Pebody
Can you send through some sample input and output? On Sun, Mar 7, 2010 at 8:31 PM, Stephan09 wrote: > Hello! > > I was practicing with some old problems and tried to solve the Center > of Mass Problem of Round 1C - B in 2009. > I correctly understand the solution and the winning c++ codes. But >

Re: [gcj] Round 1 C -B in c++

2010-03-09 Thread AKHIL SH
better make it double On Tue, Mar 9, 2010 at 1:49 AM, Ken Corbin wrote: > Hello, > > There are several reasons why the same code C/C++ might execute differently > on > different processors. The most probable is that the size of int variables > can vary from 16, 32, or 64 bits. I'd try decl

Re: [gcj] Round 1 C -B in c++

2010-03-09 Thread Bartholomew Furrow
Whose solution was it? One round we had a contestant who used an unusual compiler, and had a solution that didn't work in gcc. Maybe this is that one? On Mar 8, 2010 7:02 AM, "Stephan09" wrote: Hello! I was practicing with some old problems and tried to solve the Center of Mass Problem of Rou

Re: [gcj] Round 1 C -B in c++

2010-03-09 Thread Ted Sotero
I also do not know the answer it just happened and i really don't anything about breaking codes coz i am just a browser & not a programmer nor involve or a member of any group.. i just use the mouse to solve thing i really wanted to see.. 2010/3/8 Stephan09 > Hello! > > I was practicing with som