Don't use "long long" with gcc 3.0's shipped library, because it does not define operator<<(ostream&, long long) overloads.