/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:64:11: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
   64 |     cout<<ans<<endl;
      |           ^~~
/in/foo.cc:17:13: note: 'ans' was declared here
   17 |     int i,j,ans,now,next;
      |             ^~~
/in/foo.cc:29:14: warning: 'next' may be used uninitialized [-Wmaybe-uninitialized]
   29 |     while(now!=n)
      |           ~~~^~~
/in/foo.cc:17:21: note: 'next' was declared here
   17 |     int i,j,ans,now,next;
      |                     ^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 432.0 KiB
#2 Wrong Answer 2ms 532.0 KiB
#3 Wrong Answer 2ms 480.0 KiB
#4 Runtime Error 64ms 568.0 KiB
#5 Runtime Error 65ms 560.0 KiB
#6 Runtime Error 66ms 548.0 KiB
#7 Runtime Error 66ms 560.0 KiB
#8 Runtime Error 65ms 556.0 KiB
#9 Runtime Error 65ms 556.0 KiB
#10 Runtime Error 65ms 556.0 KiB

信息

递交者
类型
递交
题目
P1648 NightElf
语言
C++
递交时间
2025-10-09 20:21:15
评测时间
2025-10-09 20:21:15
评测机
分数
0
总耗时
467ms
峰值内存
568.0 KiB