foo.cpp:5:6: error: variable or field 'match' declared void
foo.cpp:5:6: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
foo.cpp:6:2: error: expected primary-expression before 'int'
foo.cpp:6:2: error: expected '}' before 'int'
foo.cpp:7:2: error: 'a' does not name a type
foo.cpp:7:9: error: 'a' does not name a type
foo.cpp:7:16: error: 'a' does not name a type
foo.cpp:7:23: error: 'a' does not name a type
foo.cpp:7:30: error: 'a' does not name a type
foo.cpp:7:37: error: 'a' does not name a type
foo.cpp:7:44: error: 'a' does not name a type
foo.cpp:7:51: error: 'a' does not name a type
foo.cpp:7:58: error: 'a' does not name a type
foo.cpp:7:65: error: 'a' does not name a type
foo.cpp:8:2: error: expected unqualified-id before 'for'
foo.cpp:8:11: error: 'i' does not name a type
foo.cpp:8:18: error: 'i' does not name a type
foo.cpp:14:1: error: expected declaration before '}' token