void main(){ beginsample() int x = 10; ..... ..... ..... beginsample() //错误,应放到mylogic函数中,因为放在这里会导致"beginsample()"的消耗也计入了main()的self消耗 mylogic() endsample() //错误,应放到mylogic函数中,因为放在这里会导致"endsample()"的消耗也计入了main()的self消耗
endsample() }