fork(1) download
  1. ' VB6 Form1.frm
  2.  
  3. Option Explicit
  4.  
  5. Private Declare Function GetTickCount Lib "kernel32" () As Long
  6.  
  7. Private Sub Command1_Click()
  8. Const MAXDIM As Integer = 30000
  9. Dim sum As Double
  10. sum = 0#
  11.  
  12. Dim dm(MAXDIM - 1) As Double
  13.  
  14. Dim i As Integer, j As Integer
  15. Dim temp As Double
  16.  
  17. For i = 0 To MAXDIM - 1
  18. dm(i) = Rnd
  19. Next
  20.  
  21. Dim tstart As Long
  22. tstart = GetTickCount
  23.  
  24. For i = 0 To MAXDIM - 1
  25. j = MAXDIM - i - 1
  26. dm(i) = dm(i) * dm(j) + 1
  27. Next
  28.  
  29. For i = 0 To MAXDIM - 1
  30. j = MAXDIM - 1
  31. Do While j > i
  32. If dm(i) > dm(j) Then
  33. temp = dm(i)
  34. dm(i) = dm(j)
  35. dm(j) = temp
  36. End If
  37. j = j - 1
  38. Loop
  39. Next
  40.  
  41. For i = 0 To MAXDIM - 1
  42. j = MAXDIM - i - 1
  43. dm(i) = dm(i) * dm(j) - 1
  44. Next
  45.  
  46. For i = 0 To MAXDIM - 1
  47. sum = sum + dm(i)
  48. Next
  49.  
  50. Dim tend As Long
  51. tend = GetTickCount
  52.  
  53. Dim result As String
  54. result = "VB6" & vbCrLf & "SUM = " & sum & " : elpased = " & tend - tstart
  55. Text1.Text = result
  56.  
  57. End Sub
  58.  
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/AkXDk6/prog.vb (5,16) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (7,12) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (8,10) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (9,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (10,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (12,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (14,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (15,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (17,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (18,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (19,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (21,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (22,11) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (24,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (25,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (26,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (27,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (29,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (30,10) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (31,11) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (32,15) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (33,21) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (34,19) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (35,19) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (36,19) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (37,14) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (38,13) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (39,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (41,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (42,10) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (43,11) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (44,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (46,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (47,12) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (48,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (50,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (51,9) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (53,8) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (54,11) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (55,10) : Error VBNC30203: Not valid as identifier.
/home/AkXDk6/prog.vb (57,8) : Error VBNC30203: Not valid as identifier.
There were 41 errors and 0 warnings.
Compilation took 00:00:00.7034800
stdout
Standard output is empty