Run C++ programs online, without a build server
Write a normal C++ program with int main. Waiso compiles it with g++ 14, runs it in an isolated sandbox and keeps each run’s output and logs — then runs it on a schedule, over HTTP or in a flow.
Inputs through waiso.hpp
Declare each input with a // @param name type = default line, read it with waiso::argStr, argInt, argDouble or argBool, and return JSON text with waiso::setResult.
Learn more →// @param word string = hello
// @param times int = 3
#include <iostream>
#include <string>
#include "waiso.hpp"
int main(int argc, char *argv[]) {
std::string word = waiso::argStr("word", "hello");
int times = waiso::argInt("times", 3);
std::string out;
for (int i = 0; i < times; i++) out += word;
std::cout << "length " << out.size() << std::endl;
waiso::setResult("{\"text\":\"" + out + "\"}");
return 0;
}
The standard library, nothing to install
C++ scripts use the standard library and waiso.hpp; no packages are installed. To share code, import another C++ script of the same project — it must not define main.
Learn more →Run it without you
Publish once and the program can run on a cron schedule in your time zone, answer an HTTP endpoint protected by a token, or be a step in a flow.
Learn more →Questions
Can I also read inputs from argv?
Yes. The same values arrive in argv, in the order they are declared.
How does a C++ run fail?
A non-zero exit code fails the run, and stderr shows in its logs next to stdout.
Can I add Boost or other libraries?
No. C++ scripts are compiled with the standard library and the Waiso SDK only.