foo.cpp:5:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11
enum class Direction
^
foo.cpp:16:16: error: 'Direction' is not a class or namespace
Direction TD = Direction::North;
^
foo.cpp: In function 'void Solve()':
foo.cpp:112:10: error: 'Direction' is not a class or namespace
TD = Direction::North;
^
foo.cpp:117:10: error: 'Direction' is not a class or namespace
TD = Direction::East;
^
foo.cpp:122:10: error: 'Direction' is not a class or namespace
TD = Direction::West;
^
foo.cpp:127:10: error: 'Direction' is not a class or namespace
TD = Direction::South;
^
foo.cpp:137:9: error: 'Direction' is not a class or namespace
case Direction::North:
^
foo.cpp:142:9: error: 'Direction' is not a class or namespace
case Direction::East:
^
foo.cpp:147:9: error: 'Direction' is not a class or namespace
case Direction::West:
^
foo.cpp:152:9: error: 'Direction' is not a class or namespace
case Direction::South:
^
foo.cpp:135:9: warning: enumeration value 'North' not handled in switch [-Wswitch]
switch(TD)
^
foo.cpp:135:9: warning: enumeration value 'East' not handled in switch [-Wswitch]
foo.cpp:135:9: warning: enumeration value 'West' not handled in switch [-Wswitch]
foo.cpp:135:9: warning: enumeration value 'South' not handled in switch [-Wswitch]