/ Vijos /

记录详情

Wrong Answer

In file included from /usr/include/c++/12/vector:64,
                 from /usr/include/c++/12/queue:61,
                 from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:86,
                 from /in/foo.cc:1:
In member function 'void std::vector<_Tp, _Alloc>::clear() [with _Tp = int; _Alloc = std::allocator<int>]',
    inlined from 'int main()' at /in/foo.cc:38:23:
/usr/include/c++/12/bits/stl_vector.h:1601:24: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
 1601 |       { _M_erase_at_end(this->_M_impl._M_start); }
      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:2:33: note: within this loop
    2 | #define rep(i,a,b) for(int i=a;i<=b;i++)
      |                                 ^
/in/foo.cc:37:9: note: in expansion of macro 'rep'
   37 |         rep(i,1,maxn)
      |         ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 159ms 4.566 MiB
#2 Wrong Answer 159ms 4.57 MiB
#3 Wrong Answer 179ms 4.574 MiB
#4 Accepted 1ms 576.0 KiB
#5 Wrong Answer 9ms 1.773 MiB
#6 Wrong Answer 148ms 2.578 MiB
#7 Wrong Answer 143ms 4.555 MiB

信息

递交者
类型
递交
题目
P1212 Way Selection
语言
C++
递交时间
2025-02-21 13:17:21
评测时间
2025-02-21 13:17:21
评测机
分数
10
总耗时
800ms
峰值内存
4.574 MiB