0_0_30874098_24857\Main.java:9: 错误: 需要';' for(int i=0;i sum=2*(sum+1); ^ 0_0_30874098_24857\Main.java:9: 错误: 需要')' for(int i=0;i sum=2*(sum+1); ^ 0_0_30874098_24857\Main.java:16: 错误: 需要class, interface或enum } ^ 3 个错误