結果

問題 No.244 ★1のグラフの問題
ユーザー noriocnorioc
提出日時 2015-08-16 21:07:31
言語 Scala(Beta)
(3.4.0)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 283 bytes
コンパイル時間 5,709 ms
コンパイル使用メモリ 230,740 KB
最終ジャッジ日時 2024-04-27 02:09:35
合計ジャッジ時間 6,050 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
-- [E040] Syntax Error: Main.scala:7:32 ----------------------------------------
7 |  def main(args: Array[String]) {
  |                                ^
  |                                '=' expected, but '{' found
1 error found

ソースコード

diff #

object Main {
  val sc = new java.util.Scanner(System.in)
  def readLine(): String = sc.nextLine
  def readInts(): Array[Int] = sc.nextLine.split(' ').map(_.toInt)
  def readInt(): Int = sc.nextLine.toInt

  def main(args: Array[String]) {
    val n = readInt
    println(n-1)
  }
}
0