/opt/scala/bin/scalac: line 50: /dev/null: Permission denied
Main.scala:1: error: value class needs to have a publicly accessible val parameter
class Knowledge(private val formula: Long) extends AnyVal {
^
Main.scala:101: error: not found: type KarelSemantics
class Detective(semantics: KarelSemantics) {
^
Main.scala:103: error: not found: type HashSet
private val visited = new HashSet[Def]
^
Main.scala:104: error: not found: type HashMap
private val postcondition = new HashMap[Def, Knowledge]
^
Main.scala:106: error: not found: type ArrayBuffer
private var hints = new ArrayBuffer[Diagnostic]
^
Main.scala:108: error: not found: type Node
private def warnAbout(msg: String, node: Node) {
^
Main.scala:112: error: not found: type Node
private def stopWithBug(msg: String, node: Node): Knowledge = {
^
Main.scala:114: error: not found: value CONTRADICTION
CONTRADICTION
^
Main.scala:117: error: not found: type Diagnostic
val result: Seq[Diagnostic] = {
^
Main.scala:122: error: not found: type Def
private def check(deF: Def): Knowledge = postcondition.getOrElseUpdate(deF, {
^
Main.scala:131: error: not found: type Block
private def check(block: Block, initial: Knowledge): Knowledge = {
^
Main.scala:143: error: not found: type Statement
private def check(statement: Statement, above: Knowledge): Knowledge = statement match {
^
Main.scala:145: error: not found: value Call
case x @ Call("moveForward") =>
^
Main.scala:146: error: not found: value FRONT_IS_BLOCKED
if (above implies FRONT_IS_BLOCKED) stopWithBug("cannot move through wall", x)
^
Main.scala:149: error: not found: value Call
case Call("turnLeft") =>
^
Main.scala:151: error: not found: value Call
case Call("turnAround") =>
^
Main.scala:153: error: not found: value Call
case Call("turnRight") =>
^
Main.scala:156: error: not found: value Call
case x @ Call("pickBeeper") =>
^
Main.scala:157: error: not found: value NO_BEEPER
if (above implies NO_BEEPER) stopWithBug("there is no beeper to pick", x)
^
Main.scala:160: error: not found: value Call
case x @ Call("dropBeeper") =>
^
Main.scala:161: error: not found: value ON_BEEPER
if (above implies ON_BEEPER) stopWithBug("cannot drop another beeper", x)
^
Main.scala:169: error: not found: value Call
case Call(target) => check(semantics.defs(target))
^
Main.scala:171: error: not found: value IfThen
case x @ IfThen(condition, th3n) =>
^
Main.scala:209: error: not found: type Condition
private def learn(condition: Condition): Knowledge = condition match {
^
Main.scala:172: error: not found: value condition
val p = learn(condition)
^
Main.scala:175: error: not found: value th3n
check(th3n, above)
^
Main.scala:180: error: not found: value th3n
check(th3n, above && p) || (above && !p)
^
Main.scala:183: error: not found: value IfThenElse
case x @ IfThenElse(condition, th3n, e1se) =>
^
Main.scala:184: error: not found: value condition
val p = learn(condition)
^
Main.scala:187: error: not found: value th3n
check(th3n, above)
^
Main.scala:190: error: not found: value e1se
check(e1se, above)
^
Main.scala:192: error: not found: value th3n
check(th3n, above && p) || check(e1se, above && !p)
^
Main.scala:195: error: not found: value While
case x @ While(condition, body) =>
^
Main.scala:196: error: not found: value condition
val p = learn(condition)
^
Main.scala:201: error: not found: value body
if (check(body, p) implies p) stopWithBug("infinite loop", x)
^
Main.scala:205: error: not found: value Repeat
case Repeat(times, body) =>
^
Main.scala:206: error: not found: value body
Stream.iterate(above)(check(body, _)).drop(times).head
^
Main.scala:211: error: not found: value False
case False() => CONTRADICTION
^
Main.scala:211: error: not found: value CONTRADICTION
case False() => CONTRADICTION
^
Main.scala:212: error: not found: value True
case True() => TAUTOLOGY
^
Main.scala:212: error: not found: value TAUTOLOGY
case True() => TAUTOLOGY
^
Main.scala:214: error: not found: value OnBeeper
case OnBeeper() => ON_BEEPER
^
Main.scala:214: error: not found: value ON_BEEPER
case OnBeeper() => ON_BEEPER
^
Main.scala:215: error: not found: value BeeperAhead
case BeeperAhead() => BEEPER_AHEAD
^
Main.scala:215: error: not found: value BEEPER_AHEAD
case BeeperAhead() => BEEPER_AHEAD
^
Main.scala:216: error: not found: value FrontIsClear
case FrontIsClear() => FRONT_IS_CLEAR
^
Main.scala:216: error: not found: value FRONT_IS_CLEAR
case FrontIsClear() => FRONT_IS_CLEAR
^
Main.scala:217: error: not found: value LeftIsClear
case LeftIsClear() => LEFT_IS_CLEAR
^
Main.scala:217: error: not found: value LEFT_IS_CLEAR
case LeftIsClear() => LEFT_IS_CLEAR
^
Main.scala:218: error: not found: value RightIsClear
case RightIsClear() => RIGHT_IS_CLEAR
^
Main.scala:218: error: not found: value RIGHT_IS_CLEAR
case RightIsClear() => RIGHT_IS_CLEAR
^
Main.scala:220: error: not found: value Not
case Not(_, p) => !learn(p)
^
Main.scala:220: error: not found: value p
case Not(_, p) => !learn(p)
^
Main.scala:221: error: not found: value Conjunction
case Conjunction(p, _, q) => learn(p) && learn(q)
^
Main.scala:221: error: not found: value p
case Conjunction(p, _, q) => learn(p) && learn(q)
^
Main.scala:222: error: not found: value Disjunction
case Disjunction(p, _, q) => learn(p) || learn(q)
^
Main.scala:222: error: not found: value p
case Disjunction(p, _, q) => learn(p) || learn(q)
^
Main.scala:223: error: not found: value Parenthesized
case Parenthesized(p) => learn(p)
^
Main.scala:223: error: not found: value p
case Parenthesized(p) => learn(p)
^
59 errors found
spoj: The program compiled successfully, but Main.class was not found.
Class Main should contain method: def main(args: Array[String]).