omni compilerGet the app

C++ · Android 7.0+ · free

A C++ compiler app for Android

Compile C++ on your phone and run it the way an online judge does: against input and expected output, with a verdict and timing for every test. The editor has a symbol row for braces, brackets and arrows above the keyboard, compile errors you can tap to jump to the line, and projects that live on your device.

C++ on a phone, done properly

  • Compile errors that jump to the line

    A Compile Error verdict shows the compiler's message; tap it to land on the offending line. No scrolling through a log on a phone screen.

  • Judge verdicts with timing

    Up to 100 test cases per run, each graded AC, WA, TLE, MLE, RE, CE, with the run time beside each result so you can spot a solution that is correct but too slow.

  • Several compiler versions

    Choose the C++ runtime per run, so you can compile with the standard your contest or course expects.

  • Multi-file projects and GitHub

    Headers and sources in folders, project-wide search, and a one-tap import from a GitHub or GitLab repository, with commit, push and pull.

Try it with a test case

Paste this into main.cpp, add a test case with the input below, and run. Prints 15.

#include <iostream>
#include <vector>
using namespace std;

int main() {
    int n; cin >> n;
    vector<long long> a(n);
    long long sum = 0;
    for (auto& x : a) { cin >> x; sum += x; }
    cout << sum << "\n";
}
Test input
3 4 5 6

Questions

Can I use bits/stdc++.h and the STL?

The C++ runtimes are standard toolchains, so the STL and the usual competitive-programming headers compile as they do on a desktop. If a header is missing, the Compile Error verdict says so.

Is this a C++ IDE for Android or just a compiler?

Both. The editor has syntax highlighting, autocomplete, find and replace, a file tree and tabs; the compiler and judge run your code and grade it. Projects are plain folders you can open in any other app.

Is the C++ compiler free?

Yes. omni compiler is free to download and use, with ads, and you can start as a guest without an account.

Can I run C++ offline on my phone?

You can write and edit offline: projects are stored on your phone. Running needs a connection because the code executes in an isolated sandbox on our servers; runs you start offline are queued and sent when you reconnect.

Which Android versions does the C++ compiler support?

Android 7.0 and newer, on phones and tablets. Tablets get a split view to edit two files side by side.

Other languages

65 languages in all; see every language page.

Start coding on your phone.

Download omni compiler and run your first program in seconds.