记录详情

Compile Error

/in/Main.java:1: error: illegal character: '#'
#include<iostream>
^
/in/Main.java:1: error: class, interface, or enum expected
#include<iostream>
        ^
/in/Main.java:4: error: class, interface, or enum expected
int GetDepth(int x)
^
/in/Main.java:8: error: class, interface, or enum expected
while(x!=1)
^
/in/Main.java:12: error: class, interface, or enum expected
else
^
/in/Main.java:14: error: class, interface, or enum expected
Depth++;
^
/in/Main.java:16: error: class, interface, or enum expected
}
^
/in/Main.java:18: error: class, interface, or enum expected
}
^
/in/Main.java:22: error: class, interface, or enum expected
int x; cin>>x;
       ^
/in/Main.java:23: error: class, interface, or enum expected
int depth=GetDepth(x);
^
/in/Main.java:24: error: class, interface, or enum expected
cout<<depth<<endl;
^
/in/Main.java:25: error: class, interface, or enum expected
return 0;
^
/in/Main.java:26: error: class, interface, or enum expected
}
^
13 errors

信息

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