QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#122253#6660. 택시 여행van_Dijk#Compile Error//C++143.5kb2023-07-09 21:28:402024-07-04 00:35:07

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...