/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)
~^~~