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

Filter by: Bash C C# C++ 5.1 C++14 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET more...

#aPQBcE C++14 17 seconds ago
Success
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<float> v(10, 0);
  8.  
  9. for (auto el : v) {
#acuN3H C 22 seconds ago
Compilation error
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. /*const int INF=99999;
  5. char maze[MAX_Y][MAX_X+1];
  6. int sx,sy;
  7. int gx,gy;
  8. int sizex,sizey;
  9. int d[MAX_Y][MAX_X];
#7Kouzn Java 24 seconds ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Test {
  8. public static void main(String[] args) {
  9. for(int i = 0; 0; i++)
#G09N4t Java 30 seconds ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#YrHAX6 C 56 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int t,s;
  5. scanf("%d",&t); scanf("%ld", &s);
  6. int i,j;
  7. long int moments[s],cookingtime[s],comparison[s];
  8. for(i=0;i<t;i++) {
  9. for(j=0;j<1;j++) {
#fFtI5Z SQL 12 seconds ago
Success
  1. CREATE TABLE Persons(
  2. I INTEGER NOT NULL,
  3. CONSTRAINT see CHECK (I > 0)
  4. );
  5.  
  6. INSERT INTO Persons
  7. (I)
  8. VALUES
  9. (1),
#0Txvps Java 1 minute ago
Compilation error
  1. public class CodeTester{
  2. enum Month{
  3. JAN,FEB,MAR
  4. };
  5. public static void main(String[] args){
  6. Month m1=Month.JAN;
  7. Month m2=Month.JAN;
  8. Month m3=Month.FEB;
  9. System.out.println(m1==m2);
#QyLWB8 Java 1 minute ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#n9jfja Python 1 minute ago
Success
  1. def func(x=5):
  2. """c"""
  3. return x
  4. print func(x=4)
#ioTp5B Java7 42 seconds ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#3oTkdw C 1 minute ago
Runtime error
  1. #include<stdio.h>
  2. main()
  3. {
  4. int a;
  5. int sum=0;
  6. scanf("%d",&a);
  7. printf("\n%d",a);
  8. for(int i=0;i<a;i++)
  9. {
#Lfp607 Java 2 minutes ago
Compilation error
  1. import java.util.Scanner;
  2. public class HelloWorld
  3. {
  4. public static void main(String args[] )
  5. {
  6. int balance = 5000, withdraw, deposit;
  7. Scanner s = new Scanner(System.in);
  8. while(true)
  9. {
#rWyIJk C 2 minutes ago
Success
  1. #include <stdio.h>
  2. #include<limits.h>
  3. #include<stdlib.h>
  4. int main(void) {
  5. // your code goes here
  6. int i,t,j,n;
  7.  
  8. scanf("%d",&t);
  9. while(t--){
#qx9WOh C 2 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int input(int a[], int max_n)
  4. {
  5. int i,n;
  6.  
  7. scanf("%d", &n);
  8. if(n>max_n)
  9. n=max_n;
#xuNexe Java 2 minutes ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#dtuvVB C++14 2 minutes ago
Success
  1. #include <iostream> //for taking input as in cstdio
  2. #include <string> //for reading strings directly
  3. #include <vector> //just an array
  4. using namespace std;
  5.  
  6. int main() {
  7. int t;
  8. cin>>t;
  9. for(int i=0;i<t;++i) {
#yNSwmA PHP 2 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
  4. echo 'Hello,world'
  5.  
  6. ?>
#9hTXNr Python 2 minutes ago
Success
  1. def func(x):
  2. return x*x;
#OWyB61 C 2 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int input(int a[], int max_n)
  4. {
  5. int i,n;
  6.  
  7. scanf("%d", &n);
  8. if(n>max_n)
  9. n=max_n;
#WHtizk C 2 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int t,s;
  5. scanf("%d",&t); scanf("%ld", &s);
  6. int i,j;
  7. long int moments[s],cookingtime[s],comparison[s];
  8. for(i=0;i<t;i++) {
  9. for(j=0;j<1;j++) {
#InfT55 C 3 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #define ile 5
  5.  
  6. struct all
  7. {
  8. double tab[ile];
  9. };
#3NmJvY C 3 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int input(int a[], int max_n)
  4. {
  5. int i,n;
  6.  
  7. scanf("%d", &n);
  8. if(n>max_n)
  9. n=max_n;
#EmrUAl C++14 3 minutes ago
Success
  1. /*
  2. https://w...content-available-to-author-only...f.com/problems/MMSUM
  3. */
  4.  
  5. #include<iostream>
  6. #include<cstdio>
  7. #include<vector>
  8. #include<climits>
#3HE0MI Java 2 minutes ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#tFYhbN C++14 3 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for(int x=3; x<=2; x++){
  6. printf("X");
  7. }
  8. return 0;
  9. }
#6OUxSS C 3 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int input(int a[], int max_n)
  4. {
  5. int i,n;
  6.  
  7. scanf("%d", &n);
  8. if(n>max_n)
  9. n=max_n;
#9aIv5P VB.NET 3 minutes ago
Compilation error
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim n As Integer
  6. n = Console.ReadLine
  7. Do While n &lt;&gt; 42
  8. System.Console.WriteLine(n)
  9. n = Console.ReadLine
#KT7YiR C 3 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int input(int a[], int max_n)
  4. {
  5. int i,n;
  6.  
  7. scanf("%d", &n);
  8. if(n>max_n)
  9. n=max_n;
#6fh6mk C++ 4.3.2 8 seconds ago
Compilation error
  1. jhhjk
#CFF5yZ PHP 3 minutes ago
Success
  1. <?php
  2. echo "hellp world";
  3. ?>
  4.  
  5. // your code goes here