prog.cpp: In function ‘int main()’:
prog.cpp:3:14: error: ‘n’ was not declared in this scope
foreach (n; 1 .. 101)
^
prog.cpp:3:20: error: expected unqualified-id before ‘.’ token
foreach (n; 1 .. 101)
^
prog.cpp:3:22: error: expected unqualified-id before numeric constant
foreach (n; 1 .. 101)
^~~
prog.cpp:6:9: error: ‘else’ without a previous ‘if’
else
^~~~
prog.cpp:8:13: error: ‘console’ was not declared in this scope
console.log ("Buzz");
^~~~~~~
prog.cpp:11:13: error: ‘console’ was not declared in this scope
console.log ("Fizz");
^~~~~~~
prog.cpp:13:13: error: ‘console’ was not declared in this scope
console.log (n);
^~~~~~~