The compilation was successful
The multiplication should have been performed at compile time without any code being generated.
However, your solution generated the following code:
Java HotSpot(TM) 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
mov ax,5
mov ax,6
mul ax
[ the expected value was 30, but you calculated the result as 6 ]
Run Code Online (Sandbox Code Playgroud)
我在学校的系统中输入了一些代码,我收到了此错误消息.我不明白它所说的部分"乘法应该在编译时执行,而不会生成任何代码."
谁知道我可能做错了什么?
(我无法透露我输入的代码,因为我不希望它出现在搜索引擎中.有没有办法可以私下显示我输入的代码?)
chr*_*oon 14
在我的Ubuntu 10.04/64位系统上,java无法访问/proc文件系统.具体来说,我在chroot没有安装的情况下运行:
mount -t proc none /proc