记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
public static void main(String[] args) {  
              ^
/in/Main.java:3: error: class, interface, or enum expected
   Scanner scan=new Scanner(System.in);     
   ^
/in/Main.java:4: error: class, interface, or enum expected
   n=scan.nextInt();     
   ^
/in/Main.java:5: error: class, interface, or enum expected
   while(n>1) {       
   ^
/in/Main.java:8: error: class, interface, or enum expected
  }else {           
  ^
/in/Main.java:10: error: class, interface, or enum expected
      }        
      ^
/in/Main.java:13: error: class, interface, or enum expected
   }       
   ^
/in/Main.java:15: error: class, interface, or enum expected
  }
  ^
8 errors

信息

递交者
类型
递交
题目
2-1 单个数的3N+1猜想
语言
Java
递交时间
2019-04-26 13:55:39
评测时间
2019-04-26 13:55:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes