QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#44356 | #4564. Digital Circuit | xyfaknoitwentytwenty# | Compile Error | / | / | C++11 | 3.7kb | 2022-08-16 12:08:08 | 2024-05-26 01:06:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:6:19: warning: multi-character character constant [-Wmultichar] 6 | const int kMod = 1'000'002'022; | ^~~~~ answer.code:6:27: warning: missing terminating ' character 6 | const int kMod = 1'000'002'022; | ^ answer.code:6:27: error: missing terminating ' character 6 | const int kMod = 1'000'002'022; | ^~~~~ answer.code:6:19: error: expected ‘,’ or ‘;’ before '\x303030' 6 | const int kMod = 1'000'002'022; | ^~~~~ answer.code:33:10: error: ‘Node’ was not declared in this scope 33 | vector<Node> tree; | ^~~~ answer.code:33:14: error: template argument 1 is invalid 33 | vector<Node> tree; | ^ answer.code:33:14: error: template argument 2 is invalid answer.code: In constructor ‘SegmentTree::SegmentTree(std::vector<std::pair<int, int> >)’: answer.code:39:10: error: request for member ‘resize’ in ‘((SegmentTree*)this)->SegmentTree::tree’, which is of non-class type ‘int’ 39 | tree.resize(4 * n + 5); | ^~~~~~ answer.code: In member function ‘void SegmentTree::build(int, int, int, std::vector<std::pair<int, int> >&)’: answer.code:46:11: error: invalid types ‘int[int]’ for array subscript 46 | tree[id] = Node(val.first, val.second); | ^ answer.code:46:18: error: ‘Node’ was not declared in this scope 46 | tree[id] = Node(val.first, val.second); | ^~~~ answer.code:53:11: error: invalid types ‘int[int]’ for array subscript 53 | tree[id] = tree[chld] + tree[chld+1]; | ^ answer.code:53:22: error: invalid types ‘int[int]’ for array subscript 53 | tree[id] = tree[chld] + tree[chld+1]; | ^ answer.code:53:35: error: invalid types ‘int[int]’ for array subscript 53 | tree[id] = tree[chld] + tree[chld+1]; | ^ answer.code: In member function ‘void SegmentTree::propagate(int)’: answer.code:58:14: error: invalid types ‘int[int]’ for array subscript 58 | if (!tree[id].lazy) return; | ^ answer.code:60:11: error: invalid types ‘int[int]’ for array subscript 60 | tree[2*id + i].flip(); | ^ answer.code:62:9: error: invalid types ‘int[int]’ for array subscript 62 | tree[id].lazy = false; | ^ answer.code: In member function ‘void SegmentTree::update(int, int, int, int, int)’: answer.code:71:11: error: invalid types ‘int[int]’ for array subscript 71 | tree[id].flip(); | ^ answer.code:79:11: error: invalid types ‘int[int]’ for array subscript 79 | tree[id] = tree[chld] + tree[chld+1]; | ^ answer.code:79:22: error: invalid types ‘int[int]’ for array subscript 79 | tree[id] = tree[chld] + tree[chld+1]; | ^ answer.code:79:35: error: invalid types ‘int[int]’ for array subscript 79 | tree[id] = tree[chld] + tree[chld+1]; | ^ answer.code: In member function ‘int SegmentTree::query()’: answer.code:84:16: error: invalid types ‘int[int]’ for array subscript 84 | return tree[1].val[1]; | ^