QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#122253 | #6660. 택시 여행 | van_Dijk# | Compile Error | / | / | C++14 | 3.5kb | 2023-07-09 21:28:40 | 2024-07-04 00:35:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:11:14: warning: overflow in conversion from ‘double’ to ‘long long int’ changes value from ‘3.0e+19’ to ‘9223372036854775807’ [-Woverflow] 11 | const ll inf=3e19; | ^~~~ answer.code: In function ‘void getsiz(int, int)’: answer.code:68:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 68 | for (auto [u,w]:G[k]) | ^ answer.code: In function ‘void getrt(int, int)’: answer.code:79:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 79 | for (auto [u,w]:G[k]) | ^ answer.code: In function ‘void dfs1(int, int)’: answer.code:95:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 95 | for (auto [u,w]:G[k]) | ^ answer.code: In function ‘int dfs(int)’: answer.code:110:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 110 | for (auto [u,w]:G[rt]) | ^ In file included from /usr/include/c++/13/cassert:44, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106, from answer.code:1: answer.code: In function ‘void ers(int, int)’: answer.code:127:35: error: no match for ‘operator[]’ (operand types are ‘std::map<int, long long int>’ and ‘std::pair<long long int, long long int>’) 127 | assert(100000000000>=ds[k][u]); | ^ In file included from /usr/include/c++/13/map:63, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:152: /usr/include/c++/13/bits/stl_map.h:504:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = long long int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, long long int> >; mapped_type = long long int; key_type = int]’ 504 | operator[](const key_type& __k) | ^~~~~~~~ /usr/include/c++/13/bits/stl_map.h:504:34: note: no known conversion for argument 1 from ‘std::pair<long long int, long long int>’ to ‘const std::map<int, long long int>::key_type&’ {aka ‘const int&’} 504 | operator[](const key_type& __k) | ~~~~~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/stl_map.h:524:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = long long int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, long long int> >; mapped_type = long long int; key_type = int]’ 524 | operator[](key_type&& __k) | ^~~~~~~~ /usr/include/c++/13/bits/stl_map.h:524:29: note: no known conversion for argument 1 from ‘std::pair<long long int, long long int>’ to ‘std::map<int, long long int>::key_type&&’ {aka ‘int&&’} 524 | operator[](key_type&& __k) | ~~~~~~~~~~~^~~ answer.code:128:47: error: no match for ‘operator[]’ (operand types are ‘std::map<int, long long int>’ and ‘std::pair<long long int, long long int>’) 128 | ll w=query(Rt[k],0,1000000000000,ds[k][u]); | ^ /usr/include/c++/13/bits/stl_map.h:504:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = long long int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, long long int> >; mapped_type = long long int; key_type = int]’ 504 | operator[](const key_type& __k) | ^~~~~~~~ /usr/include/c++/13/bits/stl_map.h:504:34: note: no known conversion for argument 1 from ‘std::pair<long long int, long long int>’ to ‘const std::map<int, long long int>::key_type&’ {aka ‘const int&’} 504 | operator[](const key_type& __k) | ~~~~~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/stl_map.h:524:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = long long int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, long long int> >; mapped_type = long long int; key_type = int]’ 524 | operator[](key_type&& __k) | ^~~~~~~~ /usr/include/c++/13/bits/stl_map.h:524:29: note: no known conversion for argument 1 from ‘std::pair<long long int, long long int>’ to ‘std::map<int, long long int>::key_type&&’ {aka ‘int&&’} 524 | operator[](key_type&& __k) | ~~~~~~~~~~~^~~ answer.code:129:18: error: no match for ‘operator[]’ (operand types are ‘long long int [100005]’ and ‘std::pair<long long int, long long int>’) 129 | if (w<dis[u]) | ^ answer.code:131:16: error: no mat...