/ Vijos /

记录详情

Runtime Error

/in/foo.cc:161:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:188:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
    scanf("%d",&t[i]);
                    ^
/in/foo.cc:163:10: warning: unused variable 'k' [-Wunused-variable]
  int i,j,k;
          ^
/in/foo.cc:168:9: warning: unused variable 'y' [-Wunused-variable]
  node x,y;//x正在被搜索的点,y用于交换的点 
         ^
/in/foo.cc: In function 'void heap_delete(node*, int)':
/in/foo.cc:136:9: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  while(i<=l)
        ~^~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 216.0 KiB
#2 Runtime Error 1ms 216.0 KiB
#3 Runtime Error 1ms 216.0 KiB
#4 Runtime Error 2ms 216.0 KiB
#5 Runtime Error 2ms 216.0 KiB
#6 Runtime Error 2ms 208.0 KiB
#7 Runtime Error 2ms 208.0 KiB
#8 Runtime Error 2ms 216.0 KiB
#9 Runtime Error 2ms 216.0 KiB
#10 Runtime Error 2ms 216.0 KiB

信息

递交者
类型
递交
题目
P1019 补丁VS错误
语言
C++
递交时间
2019-01-18 13:16:47
评测时间
2019-01-18 13:16:47
评测机
分数
0
总耗时
22ms
峰值内存
216.0 KiB