fork download
  1. #pragma indent
  2. using System.Console;
  3. using Nemerle.Collections;
  4.  
  5. def countLines=int.Parse(ReadLine());
  6.  
  7. foreach(countNumbersInLines in [1 .. countLines])
  8. def listOfIntegers = $[1..countNumbersInLines];
  9. def listOfIntegersReversedIfNeed =
  10. if( countNumbersInLines % 2 == 0 )
  11. List.Rev(listOfIntegers);
  12. else
  13. listOfIntegers;
  14. def listOfString=listOfIntegersReversedIfNeed.Map(_.ToString());
  15. def stringLine=string.Join("-", listOfString.ToArray());
  16. WriteLine(stringLine)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
error: internal compiler error: got ArgumentException (type is not TypeBuilder but System.MonoType
Parameter name: type)
  at System.Reflection.Emit.TypeBuilder.GetMethod (System.Type type, System.Reflection.MethodInfo method) [0x00000] 
  at Nemerle.Compiler.ILEmitter.FrameworkGetMethod (System.Type t, System.Reflection.MethodInfo m) [0x00000] 
  at Nemerle.Compiler.ILEmitter.GetMethodInfo (Nemerle.Compiler.TyVar from_type, IMethod meth, Nemerle.Core.list`1 typars) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.emit (Nemerle.Compiler.Typedtree.TExpr expr) [0x00000] 
  at Nemerle.Compiler.ILEmitter.Run () [0x00000] 
  at Nemerle.Compiler.MethodBuilder+_N__N_l28822_28957.apply_void () [0x00000] 
  at Nemerle.Compiler.TypeBuilder.FinalizeType () [0x00000] 
  at Nemerle.Compiler.TypeBuilder.EmitImplementation () [0x00000] 
  at Nemerle.Compiler.TypesManager+_N_emit_impl_23845.apply_void (Nemerle.Compiler.TypeBuilder _N_23844) [0x00000] 
  at Nemerle.Compiler.TypesManager+_N_maybe_f_24281.apply_void (Nemerle.Compiler.TypeBuilder _N_24280) [0x00000] 
  at Nemerle.Collections.List.Iter[TypeBuilder] (Nemerle.Core.list`1 l, Nemerle.Builtins.FunctionVoid`1 f) [0x00000] 
  at Nemerle.Core.list`1[Nemerle.Compiler.TypeBuilder].Iter (Nemerle.Builtins.FunctionVoid`1 f) [0x00000] 
  at Nemerle.Compiler.TypesManager.Iter (Nemerle.Core.list`1 builders, Nemerle.Builtins.FunctionVoid`1 f) [0x00000] 
  at Nemerle.Compiler.TypesManager.Iter (Nemerle.Builtins.FunctionVoid`1 f) [0x00000] 
  at Nemerle.Compiler.TypesManager.compile_all_tyinfos (Boolean aux_phase) [0x00000] 
  at Nemerle.Compiler.TypesManager+_N__N_l23429_23517.apply_void () [0x00000] 
  at Nemerle.Compiler.Solver.Enqueue (Nemerle.Builtins.FunctionVoid action) [0x00000] 
  at Nemerle.Compiler.TypesManager.EmitDecls () [0x00000] 
  at Nemerle.Compiler.Passes.Run () [0x00000] 
  at Nemerle.CommandlineCompiler.MainClass.main_with_catching () [0x00000] 

stdout
Standard output is empty