Newer
Older
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"clang-repl found: clang-repl LLVM (http://llvm.org/):\n",
" LLVM version 19.1.6\n",
" Optimized build.\n",
"\n",
"-- repl in ---------------------------\n",
"#include <vector>\n",
"-- repl out begin --------------------\n",
"#include <vector>\n",
"\n",
"-- repl out end ----------------------\n",
"alive: True\n",
"timed_out: False\n",
"error: False\n",
"--------------------------------------\n",
"\n",
"-- repl in ---------------------------\n",
"#include <iostream>\n",
"-- repl out begin --------------------\n",
"#include <iostream>\n",
"\n",
"-- repl out end ----------------------\n",
"alive: True\n",
"timed_out: False\n",
"error: False\n",
"--------------------------------------\n",
"\n",
"-- repl in ---------------------------\n",
"%lib libomp.so\n",
"-- repl out begin --------------------\n",
"%lib libomp.so\n",
"\n",
"-- repl out end ----------------------\n",
"alive: True\n",
"timed_out: False\n",
"error: False\n",
"--------------------------------------\n"
]
}
],
"source": [
"%status"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"hellO!"
]
}
],
"source": [
"%main\n",
"std::cout << \"hellO!\" << std::endl;"
]
},
{
"cell_type": "code",
"source": [
"%main\n",
"int a;\n",
"std::cin >> a; // not supported this will timeout"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "clang_repl",
"language": "c++",
"name": "clang_repl"
},
"language_info": {
"codemirror_mode": "text/x-c++src",
"file_extension": ".cpp",
"mimetype": "text/x-c++src",