Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Math1
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//clang 6.0.0 #include <cmath> #include <iostream> #include <iomanip> int main() { const float PI = 3.141'592'653'589'793'238; const float v = 20; const float h = 10; const float g = 9.806'651; const float theta = 45 * PI / 180; std::cout << std::setprecision(17) << std::sqrt(std::pow(20, 2) + std::pow(std::sin(theta), 2) + 2 * g * h) << '\n'; }
clang++
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 0.93 sec, absolute running time: 0.16 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 1,24 sec
edit mode
|
history
|
discussion
24.426072670528367