Online tools

C++ Online Runner

免费在线运行 C++ 代码:云端沙盒使用 C++20 标准自动编译执行,支持标准输入与 nlohmann/json、fmt 等常用库,无需安装编译器,浏览器中即可编写并运行 C++ 程序。

Code editor
Standard input
Load popular libraries

Includes the following libraries, ready to import when enabled

nlohmann/jsonfmtyaml-cpp
Result

Click Run and the output will appear here

FAQ

在线运行 C++ 支持什么标准?

使用 C++20 标准在云端自动编译执行,支持现代 C++ 特性。

可以使用 nlohmann/json 等库吗?

可以。开启加载常用库后即可使用 nlohmann/json、fmt、yaml-cpp 等常用 C++ 库。

算法竞赛代码可以在这里测试吗?

可以。支持标准输入输出与 30 秒内的执行时限,非常适合刷题时快速验证代码。