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

#yZIYPU C++14 39 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, m;
  6. cin >> n >> m;
  7. int a = n / 5;
  8. int b = m / 5;
  9. long long ans = 5 * a * b;
#IBoSan Java 5 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. import java.nio.charset.StandardCharsets;
  7.  
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
#kIGXTm C 6 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float jo = 100.7896;
  5. printf("%2f", jo)
  6. return 0;
  7. }
#wniIFL C++14 6 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. const long long Mod = 1000000007;
  6.  
  7. long long mod(long long a, long long mod){
  8. return a%mod;
  9. }
#jr4Ajw Java 6 minutes ago
Compilation error
  1. function varargout = gbelll(varargin)
  2. % GBELLL MATLAB code for gbelll.fig
  3. % GBELLL, by itself, creates a new GBELLL or raises the existing
  4. % singleton*.
  5. %
  6. % H = GBELLL returns the handle to a new GBELLL or the handle to
  7. % the existing singleton*.
  8. %
  9. % GBELLL('CALLBACK',hObject,eventData,handles,...) calls the local
#uKh2n7 C++ 4.3.2 6 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int T,i,time;
  6. long long n,m,k,loc;
  7. for(i=0;i<T;i++)
  8. {
  9. cin>>n>>m>>k;
#d7ZxZs C++14 6 minutes ago
Success
  1. //size of tree
  2. #include<iostream>
  3. #include<queue>
  4. using namespace std;
  5. class node
  6. {
  7. public:
  8. int data;
  9. node *left;
#g0nAFo Java 6 minutes ago
Success
  1. class MyMethod
  2. {
  3. static int func1()
  4. {
  5. System.out.println("Inside Func1");
  6. return 10;
  7. }
  8. static int func2()
  9. {
#aOyaua Java 6 minutes ago
Compilation error
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. class Thread1 extends Thread{
  5. void run(){
  6. try {
  7. System.out.println("Thread1 is called...");
  8. } catch(Exception e) {
  9. }
#cyAAUL PHP 6 minutes ago
Success
<?php $answer = array( 1 => 'Da', 2 => 'Net', ); $quest = "Смогу ли я познакомится с ней?"; $random = array_rand($answer, 1); $b1 = $answer[$random]; echo "Вопpос: $quest\n";
#9v5nTp PHP 6 minutes ago
Success
<?php $answer = array( 1 => 'Da', 2 => 'Net', ); $quest = "Смогу ли я познакомится с ней?"; $random = array_rand($answer, 1); $b1 = $answer[$random]; echo "Вопpос: $quest\n";
#k67m6R C++14 10 seconds ago
Compilation error
  1. #include <iostream>
  2. #include <string>
  3. #include <functional>
  4.  
  5. using namespace std;
  6.  
  7. class Foo
  8. {
  9. public:
#gFnCdc C++ 5.1 7 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here\
  6. int x = 10;
  7. int &ref = x;
  8.  
  9. ++ref;
#2eVFsi Java 7 minutes ago
Success
  1. import java.util.*;
  2. class mul
  3. {
  4. public static void main(String args[])
  5. {
  6.  
  7. Scanner sc=new Scanner(System.in);
  8. String s=sc.nextLine();
  9. char p[]=s.toCharArray();
#oTw43J Java 7 minutes ago
Success
  1. class MyMethod
  2. {
  3. static int func1()
  4. {
  5. System.out.println("Inside Func1");
  6. return 10;
  7. }
  8. static int func2()
  9. {
#pVx3eK C++ 5.1 3 minutes ago
Compilation error
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long int
  4. #define fast() ios::sync_with_stdio(0)
  5. ll zero[105],one[105];
  6. long long int do_it(int n,string p)
  7. {
  8. if(p.size()==1)
  9. {
#7qCYVl C# 7 minutes ago
Compilation error
  1. using System;
  2.  
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7.  
  8. namespace ConsoleApplication6
  9. {
#WSRd2d C++ 4.3.2 7 minutes ago
Compilation error
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int T,i,time;
  6. long long n,m,k,loc;
  7. for(i=0;i<T;i++)
  8. {
  9. cin>>n>>m>>k;
#3RzweV PHP 7 minutes ago
Success
<?php $answer = array( 1 => 'Da', 2 => 'Net', ); $quest = "Смогу ли я познакомится с ней?"; $random = array_rand($answer, 1); $b1 = $answer[$random]; echo "Вопpос: $quest\n";
#Yo5z6J C++14 7 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. const long long Mod = 1000000007;
  6.  
  7. long long mod(long long a, long long mod){
  8. return a%mod;
  9. }
#FJYnlq Python 7 minutes ago
Runtime error
  1. def checkio(grid):
  2. inputArray = [];
  3. [inputArray.append([]) for y in range(9)]
  4. for y in range(9):
  5. inputArray[y] = grid[y]
  6. i, y = 0, 0
  7. def isValid(current):
  8. for row in current:
  9. test = []
#UhR3n8 C# 7 minutes ago
Success
using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) {
#p4Dcgq C++ 5.1 7 minutes ago
Compilation error
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class A
  5. {
  6. virtual void func(int a)
  7. {
  8. cout<<"base";
  9. }
#6aLWGG PHP 7 minutes ago
Success
  1. <?php
  2. $credit=40000;
  3. for ($month = 1;$credit >=0;$month++) {
  4. $credit*=1.03;
  5. $credit-=4000;
  6. }
  7. echo "$month месяцев выплачивал";
  8. // your code goes here
#sg4mkv C 7 minutes ago
Runtime error
  1. #include<stdio.h>
  2.  
  3. int month[15]={0,31,31,31,31,31,30,30,30,30,30,30,30};///11-th month 31 in leap year
  4.  
  5. int isleap(int n)
  6. {
  7. if(n%400==0) return 1;
  8. if(n%100==0) return 0;
  9. if(n%4==0) return 1;
#KE6hbR C++ 3 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. float n1, n2, n3;
  7. cout << "Enter three numbers: ";
  8. cin >> n1 >> n2 >> n3;
  9. if (n1 >= n2) {
#IlAgqG C++ 4.3.2 7 minutes ago
Compilation error
  1. #define _CRT_SECURE_NO_WARNINGS
  2.  
  3. #include <stdio.h>
  4. #include <string>
  5. #include <vector>
  6.  
  7. using namespace std;
  8.  
  9. const int MOD = 1000003;
#ctZXkF C++ 4.3.2 58 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int fact(int);
  4.  
  5. int func(int n)
  6. {
  7. int z=0;
  8. if(n==0)
  9. return 0;
#2TlTz3 C 7 minutes ago
Success
  1. /* Histogram of Frequency of Different Characters in Input */
  2.  
  3. #include<stdio.h>
  4. #define TNOCHAR 128 /* Total Number of characters is 128: 0 - 127 */
  5.  
  6. int main(void)
  7. {
  8. int c,i,j;
#Y5DTqJ Java 7 minutes ago
Compilation error
  1. import java.util.*;
  2. class mul
  3. {
  4. public static void main(String args[])
  5. {
  6.  
  7. Scanner sc=new Scanner(System.in);
  8. String s=sc.nextLine();
  9. char p[]=s.toCharArray();