UVa 498 - Polly the Polynomial

Summary
Evaluate a polynomial (first line) for all the values of the second line.

Explanation
http://en.wikipedia.org/wiki/Horner%27s_method

Implementations

 * If you use sscanf, you will have to do: bytes_read += bytes and sscanf(Str+bytes_read ...
 * Don't print a space at the end of a line.
 * Don't use doubles or power functions.

Input
-2 5 0 1 6 1 -1 7 6 -1 0 1 2 34 -10 -20 -600 34 2 4 3042

Output
-2 -2 -2 -2 6 5 -2 0 0 0 -1326 -3326 -281686401326