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...

#t8DZ2D C++ 5.1 3 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7.  
  8. {
  9. int lamp=1;
#DRWChY C 29 seconds ago
Compilation error
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. struct node
  4. {
  5. float coef;
  6. int expo;
  7. struct node *next;
  8. };
  9. struct node *insert(struct node *start3,float coef,int expo);
#neJcft Pascal (fpc) 1 minute ago
Compilation error
  1. var
  2. xyz : string;
  3. begin
  4. readln(abcdef);
  5. writeln(abcdef);
  6. end.
#qStTTn SQL 4 minutes ago
Success
  1. select datediff(day,'2014-06-05','2014-08-05') as diffdate;-- your code goes here
#C5YiXC C++ 5.1 4 minutes ago
Success
  1. #include "iostream"
  2. #include "stdio.h"
  3. #include "string.h"
  4. using namespace std;
  5. int mx, my, dx, dy, n, m;
  6. int output, front, rear;
  7. bool visited[1000][1000];
  8. struct q{
  9. int x;
#E9s5jd Java 3 minutes ago
Runtime 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. public class Main
  9. {
#FnwMxU C 4 minutes ago
Time limit exceeded
  1. #include <stdio.h>
  2.  
  3. void main() {
  4. int i,j,x,y,p=0;
  5. scanf("%d%d",&x,&y);
  6. for(i=x;i<=y;x++)
  7. {
  8. if(x%2==0)
  9. {
#sG05Nk C 1 minute ago
Runtime error
  1. #include <stdio.h>
  2. void main()
  3. {
  4. int i=9;
  5. for(i--;i--;i--)
  6. printf("%d",i);
  7. }
#o6u8jK R 4 minutes ago
Success
  1. # if you see KRAKOZYABRY then do
  2. # File-Reopen with encoding - UTF-8 - (Set as default) - OK
  3.  
  4. # задаём векторы:
  5. x <- c(23,15,46,NA)
  6. z <- c(5,6,NA,8)
  7.  
  8. # NA --- пропущенное значение
#3TMAqB C 18 seconds ago
Success
  1. #include<stdio.h>
  2. int swap(int *,int *);
  3. int search(int , int *, int );
  4. void main()
  5. {
  6. int n,i,j;
  7. printf("enter num of elements");
  8. scanf("%d",&n);
  9. int arr1[n];
#xYqwpY C++ 4.3.2 27 seconds ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define mp make_pair
  5. #define pb push_back
  6. //#pragma comment (linker, "/STACK:256000000")
  7. #define fileio freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);
  8. #define boost ios_base::sync_with_stdio(false);
#skzVsu Java 4 minutes ago
Success
  1. import java.util.Comparator;
  2. import java.util.InputMismatchException;
  3. import java.util.PriorityQueue;
  4. import java.util.Scanner;
  5. class BestFirstSearch
  6. {
  7. private PriorityQueue<Vertex> priorityQueue;
  8. private int heuristicvalues[];
  9. private int numberOfNodes;
#iIMiVT Pascal (fpc) 4 minutes ago
Success
  1. program ideone;
  2. var a,b:integer;
  3. begin
  4. read(a,b);
  5. writeln(a+b);
  6. end.
#mzO53Y C++14 4 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. typedef long long int ll;
  5. typedef vector<int> vi;
  6. typedef pair<int,int> ii;
  7. typedef vector<ii> vii;
  8. #define F(i,a,b) for(int i = (int)(a); i <= (int)(b); i++)
  9. #define RF(i,a,b) for(int i = (int)(a); i >= (int)(b); i--)
#IDmCz3 C 4 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
#0hhmOW Java 4 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. {
#a5YXGw PHP 4 minutes ago
Success
  1. <?php
  2. echo '<h2><a href="blog_post.html">Aliquam lorem ante dapibus</a></h2><br>Публикация: 28 Декабря 2015 | <strong>Автор:</strong> Admin | <strong>Категория:</strong> <a href="#">Freebies</a><br><img src="images/templatemo_image_01.jpg" alt="image 1"/><br><p>Clean Blog is a Free HTML-CSS Template provided by <a href="#">templatemo.com</a> for everyone. Validate XHTML and CSS. Donec enim enim, imperdiet quis, mollis a, elementum a, diam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et nunc commodo ante ornare imperdiet.</p>';
#WAUj2Z C 4 minutes ago
Success
  1. #include <stdio.h>
  2. #define abc 1
  3.  
  4.  
  5. int main(void) {
  6. // your code goes here
  7.  
  8.  
  9. #if abc==0
#SIEsNx C 4 minutes ago
Success
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char s1[7] = "1234", *p;
  5. p = s1 + 2;
  6. *p = '0';
  7. printf("%s", s1);
  8. }
#ZhATcI PHP 4 minutes ago
Success
  1. <?php
  2. for($j = 60 , $i = 1; $j >=0 ;$j-=5 , $i+= 3 ){
  3. echo "I=".$i." J=".$j."\n";
  4. }
  5.  
  6. // your code goes here
#mTeVBr Objective-C 4 minutes ago
Success
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3. #import <Foundation/Foundation.h>
  4.  
  5. @implementation TestObj
  6. int main()
  7. {
  8. NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  9. const char bytes[] = "\x00\x12\x45\xAB";
#1ok3jL Pascal (fpc) 4 minutes ago
Success
  1. program ideone;
  2. var a,b:integer;
  3. begin
  4. read(a,b);
  5. writeln(a+b);
  6. end.
#BUdYnO C# 2 minutes ago
Success
  1. using System;
  2. using System.Collections;
  3.  
  4. public class GetSortRange
  5. {
  6. public static void Main()
  7. {
  8. string line;
#U8oPKS Pascal (fpc) 4 minutes ago
Compilation error
  1. var :
  2. a,b : string;
  3. begin :
  4. readln(a,b);
  5. writelm(a+b);
  6. end;
#zsf7jB Java 5 minutes ago
Compilation error
  1. import java.io.BufferedReader;
  2. import java.io.BufferedWriter;
  3. import java.io.File;
  4. import java.io.FileReader;
  5. import java.io.FileWriter;
  6. import java.io.IOException;
  7. import java.io.PrintWriter;
  8. import java.util.HashMap;
#75Ulhg Java 1 minute 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. {
#pn3KJG C 2 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3.  
  4. int main() {
  5. setvbuf(stdout, NULL, _IONBF, 0);
  6. int t, h, m ,s;
  7.  
  8.  
#JFd2lp Java 5 minutes ago
Success
  1. import java.util.Comparator;
  2. import java.util.InputMismatchException;
  3. import java.util.PriorityQueue;
  4. import java.util.Scanner;
  5. class BestFirstSearch
  6. {
  7. private PriorityQueue<Vertex> priorityQueue;
  8. private int heuristicvalues[];
  9. private int numberOfNodes;
#5fXTOK PHP 5 minutes ago
Runtime error
  1. <?php
  2. $username = $_POST["username"];
  3. $password = $_POST["password"];
  4. $connect = mysqli_connect("localhost","root","","admin");
  5. $result = mysqli_query($connect,"SELECT * FROM admin WHERE username='$username' AND password='$password'");
  6. $check = mysqli_fetch_array($result);
  7. if (isset($check)) {
  8. echo "Login Berhasil";
  9. }
#LdFzBi C++ 5.1 5 minutes ago
Success
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <climits>
  4. #include <cstring>
  5. #include <cmath>
  6. #include <algorithm>
  7.  
  8. using namespace std;