运行 ID | 作者 | 题号 | 测评结果 | 分数 | 时间 | 内存 | 语言 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
544929 | Sorrymaker | 1562 - [算法课分治] 寻找多数 | 编译错误 | 0 | 0 MS | 0 KB | Java | 575 | 10个月前 |
Main.java:14: error: incompatible types: int cannot be converted to boolean
if(count = 0){
^
Main.java:15: error: cannot find symbol
candidate = nums[i];
^
symbol: variable i
location: class Main
Main.java:17: error: cannot find symbol
}if(candidate = nums[i]){
^
symbol: variable i
location: class Main
Main.java:17: error: incompatible types: int cannot be converted to boolean
}if(candidate = nums[i]){
^
Main.java:22: error: incompatible types: unexpected return value
return candidate;
^
5 errors