Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++2a
no pedantic
#include <iostream>
using namespace std;
int main()
{
double e = 2.0000000000 * 10^10;
double r = 2.00000035 * 10^10;
double c = 6.685 * 10^8;
double v = c * (r - e) / (r + e);
cout << v << endl;
return 0;
}
$ g++ prog.cc -Wall -Wextra -std=c++2a
Exit Code:
1