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