fork download
  1. # 代入文が一つなので、インデントは必要ない
  2. if x: x = false
  3.  
  4. # 入れ子構造のif文にはインデントが必要である
  5. if x:
  6. if y:
  7. y = false
  8. else:
  9. y = true
  10.  
  11. # 条件の後に文が二つ続くため、インデントが必要である。
  12. if x:
  13. x = false
  14. y = false
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(2, 4) Error: undeclared identifier: 'x'
stdout
Standard output is empty