QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#72629 | #13. Router | dolt | Compile Error | / | / | C++14 | 6.0kb | 2023-01-17 09:28:04 | 2023-01-17 09:28:11 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void ins(int, int)’: answer.code:15:29: error: reference to ‘next’ is ambiguous 15 | void ins(int x, int y){e++; next[e] = node[x]; node[x] = e; to[e] = y;}//epsilon | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:3: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: ‘template<class _InputIterator> _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)’ 213 | next(_InputIterator __x, typename | ^~~~ answer.code:13:15: note: ‘int next [20000000]’ 13 | int node[sz], next[sz * 2], to[sz * 2]; | ^~~~ answer.code: In function ‘void gao(std::string)’: answer.code:161:32: error: reference to ‘next’ is ambiguous 161 | for (j = node[k]; j; j = next[j]){ | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:3: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: ‘template<class _InputIterator> _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)’ 213 | next(_InputIterator __x, typename | ^~~~ answer.code:13:15: note: ‘int next [20000000]’ 13 | int node[sz], next[sz * 2], to[sz * 2]; | ^~~~ answer.code: In function ‘void doit()’: answer.code:221:28: error: reference to ‘next’ is ambiguous 221 | for (i = 1; i <= e; i++) next[i] = to[i] = 0; | ^~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:66, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/string:40, from answer.code:3: /usr/include/c++/11/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: ‘template<class _InputIterator> _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)’ 213 | next(_InputIterator __x, typename | ^~~~ answer.code:13:15: note: ‘int next [20000000]’ 13 | int node[sz], next[sz * 2], to[sz * 2]; | ^~~~