QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#188592 | #4037. Absolute Pairwise Distance | alch07 | Compile Error | / | / | C++14 | 4.3kb | 2023-09-26 03:20:30 | 2023-09-26 03:20:30 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:103:21: error: ‘struct SqrtStruct’ has no member named ‘query’ 103 | fxx[i] = sq.query(a[i]); | ^~~~~ answer.code:104:12: error: ‘struct SqrtStruct’ has no member named ‘add’ 104 | sq.add(a[i]); | ^~~ answer.code:105:23: error: ‘struct SqrtStruct’ has no member named ‘query’ 105 | fxp1x[i] = sq.query(a[i]-1); | ^~~~~ answer.code:115:18: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘l’ 115 | if(qv[i].l < curL){ | ^ answer.code:116:31: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘l’ 116 | for(int j = qv[i].l; j <= curL-1; j++){ | ^ answer.code:119:43: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘l’ 119 | movs[curR+1].push_back({qv[i].l, curL-1, true, i, 1}); | ^ answer.code:119:35: error: no matching function for call to ‘std::vector<Move>::push_back(<brace-enclosed initializer list>)’ 119 | movs[curR+1].push_back({qv[i].l, curL-1, true, i, 1}); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/vector:67, from answer.code:2: /usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Move; _Alloc = std::allocator<Move>; std::vector<_Tp, _Alloc>::value_type = Move]’ 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const Move&’} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Move; _Alloc = std::allocator<Move>; std::vector<_Tp, _Alloc>::value_type = Move]’ 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Move>::value_type&&’ {aka ‘Move&&’} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ answer.code:120:26: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘l’ 120 | curL = qv[i].l; | ^ answer.code:122:25: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘r’ 122 | if(curR < qv[i].r){ | ^ answer.code:123:44: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘r’ 123 | for(int j = curR+1; j <= qv[i].r; j++){ | ^ answer.code:126:49: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Query>, Query>::value_type’ {aka ‘struct Query’} has no member named ‘r’ 126 | movs[curL].push_back({curR+1, qv[i].r, false, i, 1}); | ^ answer.code:126:33: error: no matching function for call to ‘std::vector<Move>::push_back(<brace-enclosed initializer list>)’ 126 | movs[curL].push_back({curR+1, qv[i].r, false, i, 1}); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/vector:67, from answer.code:2: /usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Move; _Alloc = std::allocator<Move>; std::vector<_Tp, _Alloc>::value_type = Move]’ 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const Move&’} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Move; _Alloc = std::allocator<Move>; std::vector<_Tp, _Alloc>::value_type = Move]’ 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std:...