/ Vijos /

记录详情

Compile Error

/in/foo.cc:119:78: error: macro "assert" passed 2 arguments, but takes just 1
    assert(order.type == SET_SINGLE_VALUE, "other order is not available here");
                                                                              ^
/in/foo.cc:146:75: error: macro "assert" passed 2 arguments, but takes just 1
    assert(order.type == ADD_ALL_VALUE, "other order is not available here");
                                                                           ^
/in/foo.cc:160:75: error: macro "assert" passed 2 arguments, but takes just 1
    assert(order.type == MUL_ALL_VALUE, "other order is not available here");
                                                                           ^
/in/foo.cc: In member function 'void P2051::Node::setValue(P2051::Order)':
/in/foo.cc:119:4: error: 'assert' was not declared in this scope
    assert(order.type == SET_SINGLE_VALUE, "other order is not available here");
    ^~~~~~
/in/foo.cc: In member function 'void P2051::Node::add(P2051::Order)':
/in/foo.cc:146:4: error: 'assert' was not declared in this scope
    assert(order.type == ADD_ALL_VALUE, "other order is not available here");
    ^~~~~~
/in/foo.cc: In member function 'void P2051::Node::mul(P2051::Order)':
/in/foo.cc:160:4: error: 'assert' was not declared in this scope
    assert(order.type == MUL_ALL_VALUE, "other order is not available here");
    ^~~~~~
/in/foo.cc: In function 'void P2051::input()':
/in/foo.cc:259:11: warning: enumeration value '__PLACE_HOLDER__' not handled in switch [-Wswitch]
    switch (type)
           ^
/in/foo.cc: In function 'void P2051::algorithm()':
/in/foo.cc:367:12: warning: enumeration value '__PLACE_HOLDER__' not handled in switch [-Wswitch]
     switch (order.type)
            ^

信息

递交者
类型
递交
题目
P2051 快速查询
语言
C++
递交时间
2019-07-19 19:15:00
评测时间
2019-07-19 19:15:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes