不通过 您的代码已保存 编译错误:您提交的代码无法完成编译 ./TreeLevel.java:37: error: cannot find symbol node.next=new ListNode(

今天真是太SB了,在牛客网上做一道入门级的BFS题,结果出现不通过:
您的代码已保存
编译错误:您提交的代码无法完成编译
./TreeLevel.java:37: error: cannot find symbol
node.next=new ListNode(tn.data);
^
symbol: variable data
location: variable tn of type TreeNode

1 error

即:

调试了1个小时都没出结果,在eclipse单步完全正确。最后发现是我自己定义的ListNode类和TreeNode类有问题。将链表的节点元素值val变量写成data变量了,然后我直接从IDE上复制到牛客编辑器上运行,所以就报错了。

引用\[1\]:在安装软件时,如果出现configure报错"cannot find install-sh, install.sh, or shtool in ac-aux",可以尝试以下解决方法:首先,在Ubuntu系统上执行以下命令安装必要的软件包:sudo apt-get install automake autoconf libtool。然后,执行./configure, make all, make install命令进行编译和安装。另外,也可以尝试执行以下命令:$ autoreconf -vif $ ./configure --prefix=/usr/lib/erlang/lib $ make $ sudo make install。你可以参考以下链接获取更多信息:https://github.com/plashchynski/libdssl/issues/4 https://askubuntu.com/questions/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux \[1\]。 问题:configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."的解决方法是什么? 回答: 当出现configure报错"cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."时,可以尝试以下解决方法:首先,确保已经安装了必要的软件包,可以使用sudo apt-get install automake autoconf libtool命令进行安装。然后,执行./configure, make all, make install命令进行编译和安装。另外,也可以尝试执行$ autoreconf -vif $ ./configure --prefix=/usr/lib/erlang/lib $ make $ sudo make install命令。更多信息可以参考以下链接:https://github.com/plashchynski/libdssl/issues/4 https://askubuntu.com/questions/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux \[1\]。 #### 引用[.reference_title] - *1* [configure时,Cannot find install-sh, install.sh, or shtool in ac-aux解决办法](https://blog.csdn.net/hubinbin595959/article/details/104838350)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [./configure时,error: cannot find install-sh, install.sh, or shtool解决方法](https://blog.csdn.net/houwenbin1986/article/details/78644990)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值