/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'node* move(node*, short int)':
/in/foo.cc:24:13: warning: unused variable 'k' [-Wunused-variable]
   24 |         int k,i,j;
      |             ^
/in/foo.cc: At global scope:
/in/foo.cc:156:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
  156 | main()
      | ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:159:38: warning: unused variable 'tail2' [-Wunused-variable]
  159 |         node *head1,*tail1, *head2, *tail2;
      |                                      ^~~~~
/in/foo.cc:162:34: warning: 'hash2' may be used uninitialized [-Wmaybe-uninitialized]
  162 |         node_search_tree *hash1,*hash2;
      |                                  ^~~~~
/in/foo.cc:247:16: warning: 'head2' is used uninitialized [-Wuninitialized]
  247 |         while(p!=NULL){
      |                ^
/in/foo.cc:159:30: note: 'head2' was declared here
  159 |         node *head1,*tail1, *head2, *tail2;
      |                              ^~~~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 528.0 KiB
#2 Runtime Error 2ms 536.0 KiB
#3 Runtime Error 2ms 532.0 KiB
#4 Runtime Error 2ms 552.0 KiB
#5 Runtime Error 2ms 532.0 KiB
#6 Runtime Error 2ms 536.0 KiB
#7 Runtime Error 3ms 700.0 KiB
#8 Runtime Error 2ms 544.0 KiB

信息

递交者
类型
递交
题目
P1360 八数码问题
语言
C++
递交时间
2025-10-10 10:11:22
评测时间
2025-10-10 10:11:22
评测机
分数
0
总耗时
20ms
峰值内存
700.0 KiB