fork download
  1. Imports System
  2. imports system.numerics
  3. 'What is the 10001 st prime number?
  4. Public Class Euler_7
  5. Public Shared Sub Main()
  6. Console.Writeline("Project Euler #6")
  7. Console.Writeline()
  8. Console.Writeline("Generating...")
  9. Console.Writeline()
  10. dim answer as biginteger = 1
  11. for i as integer = 40 to 1 step -1
  12. answer *= i
  13. next
  14. console.writeline("Answer is: " & answer)
  15. End Sub
  16. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/xO0qNa/prog.vb (2,16) : Error VBNC30456: 'numerics' is not a member of 'Global.System'.
/home/xO0qNa/prog.vb (2,16) : Warning VBNC40056: The import 'system.numerics' could not be found.
1 errors, but compilation succeeded? Resolve
/home/xO0qNa/<MyGenerator> (1,1) : Error VBNC99999: Unexpected error: There has been an internal error in the compiler: Consistency check failed
  at vbnc.Compiler.VerifyConsistency (Boolean result, System.String Location) [0x000a3] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:132 
  at vbnc.Compiler.Compile_Resolve () [0x00070] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:403 
  at vbnc.Compiler.Compile () [0x0028a] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:561 
Compilation took 00:00:00.6809170
stdout
Standard output is empty