*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
demo.ipynb 2.19 KiB
Newer Older
Manstetten, Paul's avatar
Manstetten, Paul committed
{
 "cells": [
  {
   "cell_type": "code",
Manstetten, Paul's avatar
Manstetten, Paul committed
   "execution_count": 6,
Manstetten, Paul's avatar
Manstetten, Paul committed
   "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",
Manstetten, Paul's avatar
Manstetten, Paul committed
   "execution_count": 14,
Manstetten, Paul's avatar
Manstetten, Paul committed
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "hellO!"
     ]
    }
   ],
   "source": [
    "%main\n",
    "std::cout << \"hellO!\" << std::endl;"
   ]
  },
  {
   "cell_type": "code",
Manstetten, Paul's avatar
Manstetten, Paul committed
   "execution_count": null,
Manstetten, Paul's avatar
Manstetten, Paul committed
   "metadata": {},
Manstetten, Paul's avatar
Manstetten, Paul committed
   "outputs": [],
Manstetten, Paul's avatar
Manstetten, Paul committed
   "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",
Manstetten, Paul's avatar
Manstetten, Paul committed
   "name": "c++"
Manstetten, Paul's avatar
Manstetten, Paul committed
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}