-
运行时出现的警告:‘st’ may be used uninitialized in this function
st 为结构体 struct node *st
struct node
{
int data;
struct node *l,*r;
};
*原因为:使用时 st 没有创建空间
缺少 st=(struct node *)malloc(sizeof(struct node)); -
提交显示 Output Limit Exceeded
原题链接:oj2135 数据结构实验之队列一:排队买饭
重复使用一个变量(变量的值发生变化) -
提交显示 Time Limit Exceeded
错误:while(scanf("%s",afc)) { }
正确: while(~scanf("%s",afc)) { }
错误情况汇总
最新推荐文章于 2023-03-26 11:15:11 发布