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

#lUXUKo C 8 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. #include <stdio.h>
  6. #include<math.h>
  7.  
  8. int main() {
#Lst5Gz PHP 16 minutes ago
Runtime error
  1. <?php
  2.  
  3. function encrypt($pure_string, $encryption_key) {
  4. $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);
  5. $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
  6. $encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);
  7. return $encrypted_string;
  8. }
#eILJBR C++14 16 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. int y;
  7. int z;
  8.  
  9. cin >> x >> y;
#Mb6VGW C++ 5.1 17 minutes ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. int main()
  5. {
  6. int m[3][50], s[3][3], a=2, b=2, c=23, i=0, j=0, l=0, q=0, ucp=0, dep=0, p=0, k=0, r=0, t=0, w=0, soglia=100, dim=30;
  7. for(i=0;i<3;i++) //riempio di zeri la matrice m
  8. {
  9. for(j=0;j<50;j++)
#0ogjmA Python 16 minutes ago
Success
  1. for t in xrange(int(raw_input())):
  2. r = int(raw_input())
  3. r = r - 1
  4. array = map(int, raw_input().split())
  5. flag = 0
  6. result = 1
  7. array.sort()
  8. while r >= 0:
  9. if array[r] <= r:
#f0gSzc Java 6 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. {
#8d67ga C++14 16 minutes ago
Success
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. double x;
  8. double y;
  9. cin >> x >> y;
#gy5MTn C++ 4.3.2 8 minutes ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std ;
  4.  
  5. int n , a[41] , t[41] ;
  6. long long kq = 0 , sum = 0 , s , p ;
  7.  
  8. void thu( int i )
  9. {
#K5W6Ox C 17 minutes ago
Success
  1. #include<stdio.h>
  2. int main(void)
  3. {int i=1,N ,sq;
  4. scanf("%d", &N);
  5. while(i<=N)
  6. {sq=i*i;
  7. printf("%d \t %d\n",i,sq);
  8. i++;
  9. }
#Y9LRUq C++ 5.1 15 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int p;
  6. bool a = true;
  7. bool b = false;
  8. int x = 10;
  9. int y = 5;
#NlcpjD C 17 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int a, h, b, m = 5, p;
  5. int i, j, k;
  6.  
  7. void funcionNumeros(void);
  8.  
  9. void funcionNumeros(){
#yH0SO5 C++14 17 minutes ago
Compilation error
  1. #include <iostream>
  2. #include<cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int x=0;
  7. int y=0;
  8. int z=0;
  9. cin>>x>>y;
#UCyqET C++ 14 minutes ago
Compilation error
  1. #include <vector>
  2.  
  3. using namespace std;
  4.  
  5. class foo {};
  6. template <class C>
  7. class myfoo: public foo {};
  8.  
  9. foo& f() { return foo; }
#i9Kgh1 C 13 minutes ago
Success
  1. #include <stdio.h>
  2. #define PERIOD 10
  3. #define PRINCIPAL 5000.00
  4. main(void)
  5. {
  6. int year;
  7. float amount, value, inrate;
  8. amount = PRINCIPAL;
  9. inrate= 0.11;
#tsOssS Java 16 minutes ago
Compilation error
  1. Main.java:1: error: class, interface, or enum expected
  2. <?php
  3. ^
  4. Main.java:2: error: unclosed character literal
  5. $input = '<div class="release_title"> <a href="/movie/114623/American-Heist-Der-Coup-des-Lebens.html">American Heist - Der Coup des Lebens</a> <img src="//static.xrel.to/static/img/release_state/new.png" alt="" /> <br /> <a href="/movie-nfo/1013166/American-Heist-Der-Coup-des-Lebens-German-2014-DL-PAL-DVDR-CiA.html" class="sub_link"><span class="truncd" title="American.Heist.Der.Coup.des.Lebens.German.2014.DL.PAL.DVDR-CiA" id="_title1013166">American.He...des.Lebens.German.2014.DL.PAL.DVDR-CiA</span></a> </div> <div class="release_options"> <a href="javascript:updateReleaseSidebar(1013166,'fdbf5d98',0)"><img src="//static.xrel.to/static/img/icons/search.png" alt="" /></a> </div> <div class="release_type"> DVD-R<br /> <span class="sub">DolbyDigital</span> </div> <div class="release_grp"> <a href="/group-CiA-release-list.html">CiA</a><br /> <span class="sub">1 DVD5</span> </div> <div class="release_comments"> <a href="/comments/1013166/American-Heist-Der-Coup-des-Lebens-German-2014-DL-PAL-DVDR-CiA.html">Kommentare (0)</a><br /> <span class="sub"> - / - / <span class="rating_5">5,0</span> </span> </div> </div> <div class="horiz_line"></div> <div class="release_item release_even"> <div class="release_cat" style="background-image: url('//static.xrel.to/static/img/icons/cat/dvdr.png');"> <br /><a href="/dvdr-release-list.html" class="sub_link"><span>DVD-R</span></a> </div> <div class="release_date"> 28.08.15<br /><span class="sub">15:13 Uhr</span> </div> <div class="release_title"> <a href="/movie/152710/Der-Boxer-von-Auschwitz-Victor-Young-Perez.html" title="Der Boxer von Auschwitz - Victor &quot;Young&quot; Perez">Der Boxer von Auschwitz - Victor &quot;Young&quot; Pe...</a> <img src="//static.xrel.to/static/img/release_state/new.png" alt="" /> <br /> <a href="/movie-nfo/1013160/Der-Boxer-von-Auschwitz-German-2013-DL-PAL-DVDR-CiA.html" class="sub_link"><span id="_title1013160">Der.Boxer.von.Auschwitz.German.2013.DL.PAL.DVDR-CiA</span></a> </div> <div class="release_options"> <a href="javascript:updateReleaseSidebar(1013160,'120c49ac',0)"><img src="//static.xrel.to/static/img/icons/search.png" alt="" /></a> </div> <div class="release_type"> DVD-R<br /> <span class="sub">DolbyDigital</span> </div> <div class="release_grp"> <a href="/group-CiA-release-list.html">CiA</a><br /> <span class="sub">1 DVD5</span> </div> <div class="release_comments"> <a href="/comments/1013160/Der-Boxer-von-Auschwitz-German-2013-DL-PAL-DVDR-CiA.html">Kommentare (0)</a><br /> <span class="sub"> - / - / <span class="rating_7">6,0</span> </span> </div> </div>';
  6. ^
  7. Main.java:2: error: <identifier> expected
  8. $input = '<div class="release_title"> <a href="/movie/114623/American-Heist-Der-Coup-des-Lebens.html">American Heist - Der Coup des Lebens</a> <img src="//static.xrel.to/static/img/release_state/new.png" alt="" /> <br /> <a href="/movie-nfo/1013166/American-Heist-Der-Coup-des-Lebens-German-2014-DL-PAL-DVDR-CiA.html" class="sub_link"><span class="truncd" title="American.Heist.Der.Coup.des.Lebens.German.2014.DL.PAL.DVDR-CiA" id="_title1013166">American.He...des.Lebens.German.2014.DL.PAL.DVDR-CiA</span></a> </div> <div class="release_options"> <a href="javascript:updateReleaseSidebar(1013166,'fdbf5d98',0)"><img src="//static.xrel.to/static/img/icons/search.png" alt="" /></a> </div> <div class="release_type"> DVD-R<br /> <span class="sub">DolbyDigital</span> </div> <div class="release_grp"> <a href="/group-CiA-release-list.html">CiA</a><br /> <span class="sub">1 DVD5</span> </div> <div class="release_comments"> <a href="/comments/1013166/American-Heist-Der-Coup-des-Lebens-German-2014-DL-PAL-DVDR-CiA.html">Kommentare (0)</a><br /> <span class="sub"> - / - / <span class="rating_5">5,0</span> </span> </div> </div> <div class="horiz_line"></div> <div class="release_item release_even"> <div class="release_cat" style="background-image: url('//static.xrel.to/static/img/icons/cat/dvdr.png');"> <br /><a href="/dvdr-release-list.html" class="sub_link"><span>DVD-R</span></a> </div> <div class="release_date"> 28.08.15<br /><span class="sub">15:13 Uhr</span> </div> <div class="release_title"> <a href="/movie/152710/Der-Boxer-von-Auschwitz-Victor-Young-Perez.html" title="Der Boxer von Auschwitz - Victor &quot;Young&quot; Perez">Der Boxer von Auschwitz - Victor &quot;Young&quot; Pe...</a> <img src="//static.xrel.to/static/img/release_state/new.png" alt="" /> <br /> <a href="/movie-nfo/1013160/Der-Boxer-von-Auschwitz-German-2013-DL-PAL-DVDR-CiA.html" class="sub_link"><span id="_title1013160">Der.Boxer.von.Auschwitz.German.2013.DL.PAL.DVDR-CiA</span></a> </div> <div class="release_options"> <a href="javascript:updateReleaseSidebar(1013160,'120c49ac',0)"><img src="//static.xrel.to/static/img/icons/search.png" alt="" /></a> </div> <div class="release_type"> DVD-R<br /> <span class="sub">DolbyDigital</span> </div> <div class="release_grp"> <a href="/group-CiA-release-list.html">CiA</a><br /> <span class="sub">1 DVD5</span> </div> <div class="release_comments"> <a href="/comments/1013160/Der-Boxer-von-Auschwitz-German-2013-DL-PAL-DVDR-CiA.html">Kommentare (0)</a><br /> <span class="sub"> - / - / <span class="rating_7">6,0</span> </span> </div> </div>';
  9. ^
#8MyqWr PHP 17 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
  4. $item = 5;
  5.  
  6. $list = array(2,3,4);
  7.  
  8. foreach($list as $item){
  9. $item++;
#aXesUq PHP 17 minutes ago
Runtime error
  1. <?php
  2.  
  3. function encrypt($pure_string, $encryption_key) {
  4. $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);
  5. $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
  6. $encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);
  7. return $encrypted_string;
  8. }
#LZ6R3g C 16 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. int x,y,m,i,j,res,temp1,temp2,temp3,new_x,ctr;
  6. scanf("%d %d %d",&x,&y,&m);
  7.  
  8. temp1=x%m;
  9. if(temp1 != 0)
#JdOx1A Java 17 minutes ago
Success
  1. // Blessy Kuriakose
  2. // Modulus.java
  3.  
  4. class Modulus
  5. {
  6. public static void main(String args[])
  7. {
  8. int num1 = 7,
  9. num2 = 10;
#nqsxPI C 17 minutes 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. {
#kRNRrK C 15 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. long long int t,i,n,x,y;
  5. scanf("%lld",&t);
  6. while(t--)
  7. {
  8. n=-1;
  9. scanf("%lld%lld",&x,&y);
#alP1Dx C 17 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. long long int gcd(long long int a,long long int b)
  4. {
  5. if(b>a)
  6. return gcd(b,a);
  7. if(b==0)
  8. return a;
  9. return gcd(b,a%b);
#A3F2mR PHP 18 minutes ago
Runtime error
  1. <?php
  2.  
  3. $query = $this->db->prepare("INSERT INTO feedbackUsers (idUser,typeQuestion,questionDate,)
  4. VALUES (:idUser, :typeQuestion, :questionDate)");
  5.  
  6. $query->bindValue(":idUser","136", PDO::PARAM_STR);
  7. $query->bindValue(":typeQuestion","1", PDO::PARAM_STR);
  8. $query->bindValue(":questionDate","OLA", PDO::PARAM_STR);
  9.  
#hLohF2 C++14 18 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. int ser (){
  4. int a, b ,s, sum = 0;
  5. a = sizeof(a[]);
  6. b = sizeof(a[0]);
  7. s = a/b;
  8.  
  9. for (int i=0; i<s; i++){
#KHxIyz Python 18 minutes ago
Runtime error
  1. for _ in xrange(input()):
  2. n=input()
  3. count=0
  4. lst=map(int, raw_input().split(" "))
  5. i=0
  6. while 1:
  7. if lst[i]*2 in lst:
  8. count+=1
  9. del(lst[lst.index(lst[i]*2)])
#yfb8F9 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. {
#x1ZBsM PHP 18 minutes ago
Success
  1. <?php
  2.  
  3. echo 08 * 15E-1; //your code goes here
  4.  
  5. ?>
#tsEsCm PHP 18 minutes ago
Success
  1. <?php
  2.  
  3. echo 08 * 15E-1; //your code goes here
  4.  
  5. ?>
#xoWtGi C++14 9 minutes ago
Compilation error
  1. #include <vector>
  2.  
  3. template<class ...Ts>
  4. class GenericNode {
  5. public:
  6. GenericNode(Ts... inputs)
  7. :inputs_{inputs...} {}
  8. private:
  9. std::vector<GenericNode*> inputs_;
#cInkd2 Java 17 minutes 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.  
  9. public class Ideone