foo.cpp: In function 'int main()':
foo.cpp:21:6: error: expected '(' before 'each'
for each (byte i in road)
^
foo.cpp:21:17: error: expected primary-expression before 'i'
for each (byte i in road)
^
foo.cpp:21:26: error: 'each' was not declared in this scope
for each (byte i in road)
^
foo.cpp:22:2: error: expected ';' before '{' token
{
^
foo.cpp:31:1: error: expected primary-expression at end of input
}
^
foo.cpp:31:1: error: expected ';' at end of input
foo.cpp:31:1: error: expected primary-expression at end of input
foo.cpp:31:1: error: expected ')' at end of input
foo.cpp:31:1: error: expected statement at end of input
foo.cpp:31:1: error: expected '}' at end of input