/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:20: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
   32 |         for (auto &[s, t]: paths) {
      |                    ^
/in/foo.cc:43:28: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
   43 |                 for (auto &[s, t]: paths) {
      |                            ^
In lambda function,
    inlined from 'constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = void; _Fn = main()::<lambda(int, int)>&; _Args = {int, int}]' at /usr/include/c++/12/bits/invoke.h:61:36,
    inlined from 'std::__can_invoke_as_void<_Res, _Callable, _Args ...> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = main()::<lambda(int, int)>&; _Args = {int, int}]' at /usr/include/c++/12/bits/invoke.h:154:33,
    inlined from 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = main()::<lambda(int, int)>; _ArgTypes = {int, int}]' at /usr/include/c++/12/bits/std_function.h:290:30:
/in/foo.cc:96:65: warning: 'before' may be used uninitialized [-Wmaybe-uninitialized]
   96 |                                 subtree_cnt[cur] = depth_cnt[d] - before;
/in/foo.cc: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = main()::<lambda(int, int)>; _ArgTypes = {int, int}]':
/in/foo.cc:82:29: note: 'before' was declared here
   82 |                         int before;
      |                             ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 556.0 KiB
#2 Accepted 2ms 552.0 KiB
#3 Accepted 2ms 480.0 KiB
#4 Accepted 2ms 556.0 KiB
#5 Runtime Error 2ms 660.0 KiB
#6 Runtime Error 58ms 9.125 MiB
#7 Runtime Error 57ms 9.129 MiB
#8 Runtime Error 53ms 9.129 MiB
#9 Accepted 59ms 13.273 MiB
#10 Accepted 58ms 13.273 MiB
#11 Accepted 59ms 13.242 MiB
#12 Accepted 58ms 13.242 MiB
#13 Wrong Answer 97ms 16.789 MiB
#14 Wrong Answer 98ms 16.766 MiB
#15 Wrong Answer 97ms 16.781 MiB
#16 Wrong Answer 96ms 16.773 MiB
#17 Runtime Error 70ms 10.02 MiB
#18 Runtime Error 70ms 10.016 MiB
#19 Runtime Error 69ms 10.016 MiB
#20 Runtime Error 257ms 28.812 MiB

信息

递交者
类型
递交
题目
P2004 天天爱跑步
语言
C++
递交时间
2025-02-17 08:53:49
评测时间
2025-02-17 08:53:50
评测机
分数
40
总耗时
1277ms
峰值内存
28.812 MiB