/ Vijos /

记录详情

Compile Error

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]

信息

递交者
类型
递交
题目
P1365 偷看漫画(1)
语言
C++
递交时间
2015-08-02 20:57:28
评测时间
2015-08-02 20:57:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes