Shawn-Smith/Project-Euler — Issue #2: Solution 8.c wont compile
Author: Shawn-Smith
Created: 2011-12-26 00:43:35+00:00
State: open
Labels: Error

>Solution 8.c:4:18: error: string: No such file or directory
>Solution 8.c:7: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before ânamespaceâ
>Solution 8.c: In function âmainâ:
>Solution 8.c:13: error: âstringâ undeclared (first use in this function)
>Solution 8.c:13: error: (Each undeclared identifier is reported only once
>Solution 8.c:13: error: for each function it appears in.)
>Solution 8.c:13: error: expected â;â before ânumberâ
>Solution 8.c:16: error: âforâ loop initial declarations are only allowed in C99 mode
>Solution 8.c:16: note: use option -std=c99 or -std=gnu99 to compile your code
>Solution 8.c:16: error: ânumberâ undeclared (first use in this function)

------
Compiles fine under g++, however.