실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:15:5: warning: built-in function \u2018index\u2019 declared as non-function [-Wbuiltin-declaration-mismatch]\n 15 | int index[100001];\n | ^~~~~\nMain.cpp: In function \u2018void dijkstra(const int&, int*)\u2019:\nMain.cpp:25:26: error: \u2018N\u2019 was not declared in this scope\n 25 | for (i = 1; i <= N; ++i) tree[i] = MAX;\n | ^\nMain.cpp:27:9: error: \u2018mns\u2019 was not declared in this scope\n 27 | mns[s] = p = i = 0;\n | ^~~\nMain.cpp: In function \u2018void calc()\u2019:\nMain.cpp:121:29: error: request for member \u2018rank\u2019 in \u2018dist[i]\u2019, which is of non-class type \u2018int [100001]\u2019\n 121 | if (dist[i].rank[0] != p) {\n | ^~~~\nMain.cpp:123:48: error: request for member \u2018rank\u2019 in \u2018dist[j]\u2019, which is of non-class type \u2018int [100001]\u2019\n 123 | update(dist[j].rank[1], dist[j].rank[2]);\n | ^~~~\nMain.cpp:123:65: error: request for member \u2018rank\u2019 in \u2018dist[j]\u2019, which is of non-class type \u2018int [100001]\u2019\n 123 | update(dist[j].rank[1], dist[j].rank[2]);\n | ^~~~\nMain.cpp:126:37: error: request for member \u2018rank\u2019 in \u2018dist[i]\u2019, which is of non-class type \u2018int [100001]\u2019\n 126 | p = dist[i].rank[0];\n | ^~~~\nMain.cpp:129:34: error: request for member \u2018index\u2019 in \u2018dist[i]\u2019, which is of non-class type \u2018int [100001]\u2019\n 129 | possible[dist[i].index] = (query(0, dist[i].rank[1] - 1) >= dist[i].rank[2]);\n | ^~~~~\nMain.cpp:129:61: error: request for member \u2018rank\u2019 in \u2018dist[i]\u2019, which is of non-class type \u2018int [100001]\u2019\n 129 | possible[dist[i].index] = (query(0, dist[i].rank[1] - 1) >= dist[i].rank[2]);\n | ^~~~\nMain.cpp:129:85: error: request for member \u2018rank\u2019 in \u2018dist[i]\u2019, which is of non-class type \u2018int [100001]\u2019\n 129 | possible[dist[i].index] = (query(0, dist[i].rank[1] - 1) >= dist[i].rank[2]);\n | ^~~~\nMain.cpp: In function \u2018int main()\u2019:\nMain.cpp:137:25: error: request for member \u2018index\u2019 in \u2018dist[i]\u2019, which is of non-class type \u2018int [100001]\u2019\n 137 | dist[i].index = i;\n | ^~~~~\nMain.cpp:134:23: warning: unused variable \u2018previ\u2019 [-Wunused-variable]\n 134 | int m,t,u,v,c,previ;\n | ^~~~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:71,\n from /usr/include/c++/11/vector:60,\n from Main.cpp:2:\n/usr/include/c++/11/bits/predefined_ops.h: In instantiation of \u2018constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = int (*)[100001]; _Iterator2 = int (*)[100001]; _Compare = bool (*)(const int&, const int&)]\u2019:\n/usr/include/c++/11/bits/stl_algo.h:1884:17: required from \u2018constexpr _RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)[100001]; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const int&, const int&)>]\u2019\n/usr/include/c++/11/bits/stl_algo.h:1906:40: required from \u2018constexpr _RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int(...truncated, total 31523 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.