fork download
  1. using System;
  2. using System.Console;
  3. /*using Nemerle.Imperative;
  4. using Nemerle.Utility;*/
  5.  
  6. def count=int.Parse(ReadLine());
  7.  
  8. foreach(max in [1..count])
  9. {
  10. def items=[1..max];
  11. if(max%2=0)
  12. items.reverse();
  13. WriteLine(String.Join("-", items))
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.nem:12:14:12:16: error: parse error near separator or closing bracket: expected `else' keyword
prog.nem:12:14:12:16: error: parse error near `(...)' group: unexpected end of token sequence
prog.nem:12:14:12:16: error: parse error near separator or closing bracket: expecting expression
stdout
Standard output is empty