/ TYWZ /

记录详情

Accepted

/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:21:17: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(biao[zbl[i]]<ans)f=i;
                 ^
/in/foo.cc:22:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   ans=min(ans,biao[zbl[i]]);
                          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:35: warning: array subscript has type 'char' [-Wchar-subscripts]
  for(int i=1;i<=lg;i++)biao[cng[i]]=i;
                                   ^
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:25:5: warning: 'f' may be used uninitialized in this function [-Wmaybe-uninitialized]
  dfs(l,f-1);
  ~~~^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 200.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 1ms 200.0 KiB
#5 Accepted 1ms 200.0 KiB

信息

递交者
类型
递交
题目
P1016 二叉树遍历(flist)
比赛
二叉树与堆的基础练习
语言
C++
递交时间
2019-04-04 17:37:34
评测时间
2019-04-04 17:37:34
评测机
分数
50
总耗时
7ms
峰值内存
204.0 KiB