Getting wrong output after simple subtraction
How is it possible to get given output with code below ?? #include <iostream> #include <vector> #include <future> #include <algorithm> #include <cmath> using namespace std; void solve() { int n = 1000000000; long long ans = n; ans = (ans * (ans + 1)) / 2; long i{0}; while(true) { const auto num = pow(2, […]