Looking for an inspiration? Below you will find public programs submitted by other users.

Filter by: All Bash C C# C++ 4.8.1 C++11 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET Ada Assembler Assembler AWK (gawk) AWK (mawk) bc Brainf**k C++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 Common Lisp (clisp) D (dmd) Erlang F# Factor Falcon Forth Fortran Go Groovy Icon Intercal JavaScript (rhino) JavaScript (spidermonkey) Lua Nemerle Nice Nimrod Node.js Ocaml Octave Oz PARI/GP Perl 6 Pike Prolog (gnu) Prolog (swi) R Scala Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#1JYPcB VB.NET 6 days ago
Success
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. 'Dim myYear as Integer = New Date().Year
  6. Console.WriteLine(Date.Now().Month)
  7. End Sub
  8. End Class
#7rKEDp VB.NET 6 days ago
Success
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim s as String = "Test Haus 34/3"
  6.  
  7. Dim firstpart As String = s.Substring(0, s.LastIndexOf(" "))
  8. Console.WriteLine(firstpart.toString)
  9.  
#Q9JlfV VB.NET 6 days ago
Compilation error
  1. // This program uses managed C++ code.
  2. #include "stdafx.h"
  3. #using <mscorlib.dll>
  4. using namespace System;
  5.  
  6. int _tmain()
  7. {
  8. // Create an array of integers.
  9. const int SIZE = 12;
#TZjxFH VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2. // generated using an Application Wizard.
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
  9.  
#w1PdoR VB.NET 6 days ago
Compilation error
  1. // This program usues managed C++ code.
  2.  
  3. #include "stdafx.h"
  4.  
  5. #using <macorlib.dll>
  6.  
  7. using namespace System;
  8.  
  9.  
#nFeQHm VB.NET 6 days ago
Compilation error
  1. Imports DotRas
  2.  
  3. Module MainModule
  4.  
  5. Sub Main()
  6. If Not My.Application.CommandLineArgs.Count = 3 Then
  7. ShowUsage()
  8. Else
  9. Dim VpnName As String = My.Application.CommandLineArgs(0)
#rVdKal VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2. // generated using an Application Wizard.
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
  9.  
#NDnWT7 VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2. // generated using an Application Wizard
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
#CrRiKC VB.NET 6 days ago
Compilation error
  1. Imports DotRas
  2.  
  3. Module MainModule
  4.  
  5. Sub Main()
  6. If Not My.Application.CommandLineArgs.Count = 3 Then
  7. ShowUsage()
  8. Else
  9. Dim VpnName As String = My.Application.CommandLineArgs(0)
#XAZYNf VB.NET 6 days ago
Compilation error
  1. Imports System
  2. Imports System.Data
  3. Imports System.Reflection
  4. Imports System.Runtime.InteropServices
  5. Imports System.IO
  6. Imports System.Windows
  7.  
  8. Public Class Test
  9. Public Shared Sub Main()
#w3H44n VB.NET 6 days ago
Success
  1. Imports System
  2. Imports System.Data
  3. Imports System.Reflection
  4. Imports System.Runtime.InteropServices
  5. Imports System.IO
  6. Imports System.Windows
  7.  
  8. Public Class Test
  9. Public Shared Sub Main()
#cIrDP7 VB.NET 6 days ago
Compilation error
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim test As String() = undefined
  6. End Sub
  7. End Class
#ipQsoL VB.NET 6 days ago
Success
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. ' your code goes here
  6. End Sub
  7. End Class
#Nr3qEe VB.NET 6 days ago
Compilation error
  1. // This program uses managed C++ code.
  2. #include "stdafx.h'
  3. #using <mscorlib.dll>
  4. using namespace System;
  5.  
  6. int _tmain()
  7. {
  8. // Create an array of integers.
  9. const int SIZE = 12;
#1vagNG VB.NET 6 days ago
Compilation error
  1. // This program uses managed C++ code.
  2. #include "stdafx.h"
  3. #using <mscorlib.dll>
  4. using namespace system;
  5.  
  6. int _tnain()
  7. {
  8. // Create an array of intergers.
  9. const int SIZE = 12;
#LeKobb VB.NET 6 days ago
Compilation error
  1. //This uses managed C++ code.
  2. #include "stdafx.h"
  3. #using <mscorlib.dll>
  4. using namespace System;
  5.  
  6. int _tmain()
  7. {
  8. //Create an array of integers.
  9. const int SIZE = 12;
#ujmIEj VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2. // generated using an Application Wizard.
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
#4rcp0c VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2. // generated using an Application Wizard.
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
#7mhc2I VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2.  
  3. // generated using an Application Wizard.
  4.  
  5.  
  6.  
  7. #include "stdafx.h"
  8.  
#Q4TAqp VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2. // generated using an Application Wizard.
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
#QC9SNN VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2.  
  3. // generated using an Application Wizard.
  4.  
  5.  
  6.  
  7. #include "stdafx.h"
  8.  
#Z9ypzB VB.NET 6 days ago
Compilation error
  1. // This the main project file for VC++ application project
  2. // generated using an Application Wizard.
  3.  
  4. #include "stdafx.h"
  5.  
  6. #using <mscorlib.dll>
  7.  
  8. using namespace System;
#SaX8OK VB.NET 6 days ago
Compilation error
  1. Private Sub start()
  2. Dim vTot As Integer = 2
  3. Dim vCount As Integer
  4. For vCount = 1 To 2
  5. vTot = MyFunc(vTot)
  6. Next
  7. messagebox.show("vTot: " & vTot.ToString)
  8. End Sub
  9. Private Function MyFunc (ByVal vNum As Integer) As Integer
#15FisI VB.NET 6 days ago
Compilation error
  1. Private Sub start()
  2. Dim vTot As Integer = 2
  3. Dim vCount As Integer
  4. For vCount = 1 To 2
  5. vTot = MyFunc(vTot)
  6. Next
  7. Debug.WriteLine("vTot: " & vTot.ToString)
  8. End Sub
  9. Private Function MyFunc (ByVal vNum As Integer) As Integer
#Pp9ikY VB.NET 6 days ago
Compilation error
  1. #include "stdafx.h"
  2. #using <mscorlib.dll>
  3. using namespace System;
  4.  
  5. int _tmain()
  6. {
  7. const int SIZE = 12;
  8. int numbers __gc[] = new int __gc[size];
  9.  
#Bni1qI VB.NET 6 days ago
Compilation error
  1. // This is the main project file for VC++ application project
  2.  
  3. // generated using an Application Wizard.
  4.  
  5.  
  6.  
  7. #include "stdafx.h"
  8.  
#lg2Fgb VB.NET 6 days ago
Compilation error
  1. Const HKEY_LOCAL_MACHINE = &H80000002
  2.  
  3. WinKey = GetWinKey
  4. strComputer="."
  5.  
  6.  
  7. OfficeKeys = GetOfficeKey("10.0") & GetOfficeKey("11.0") & GetOfficeKey("12.0") & GetOfficeKey("14.0") & GetOfficeKey("15.0")
  8.  
  9. If Msgbox(WinKey & vbnewline & vbnewline & OfficeKeys & vbnewline & "Save All Keys to ProductKeys.txt?", vbyesno, "GetProductKeys.VBS by Foolish IT") = vbyes then
#gvYRbN VB.NET 6 days ago
Compilation error
  1.  
  2.  
  3.  
  4. import java.util.*;
  5. impert java.dimLenght*;
  6.  
  7.  
  8. public class shippingCharges{
  9.  
#57Ev7P VB.NET 6 days ago
Compilation error
  1. /*Write the Java source code necessary to build a solution for the following problem:
  2. Changes in the economy have determined that for the EZ shipping company, a surcharge will be assessed on all packages that meet certain criteria. The surcharge is a function of the characteristics of the package and the zip code to which it is sent.
  3.  
  4.  
  5. If the first digit of the zip code is a "4," then there is an additional surcharge of 5% on the shipping cost. If the first digit of the zip code is a "6," then there is an additional shipping cost surcharge of 9% based on the weight of the package. For all other zip codes there is an additional shipping cost surcharge of 14%. Additionally, if the zip code is even, then there is an additional charge of 2% of the shipping cost.
  6.  
  7.  
  8. In addition to the surcharges, the regular charges for shipping are calculated as follows:
  9.  
#rjWPzp VB.NET 6 days ago
Success
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. ' your code goes here
  6. End Sub
  7. End Class