- Visual Studio 2022
- Select Desktop development with C++
- Ninja
- Install chocolatey
- From an admin shell run
choco install ninja
git clone https://github.com/sayansil/Ecosystem -b realtime-plot
choco install ninja
git clone https://github.com/sayansil/Ecosystem -b realtime-plot
#include <iostream> | |
#include <type_traits> | |
struct tag1{}; | |
struct tag2{}; | |
enum class Tags { | |
type1, | |
type2, | |
}; |
#include <fmt/core.h> | |
#include <fmt/color.h> | |
#include <chrono> | |
#include <thread> | |
void update_bar(int percent) | |
{ | |
int total = 100; | |
int done = (percent / 100.0) * total; | |
fmt::print("\r["); |
#include <iostream> | |
#include <vector> | |
#include <memory> | |
#include <algorithm> | |
void* operator new(std::size_t size) | |
{ | |
std::cout << "Allocating " << size << " bytes\n"; | |
return malloc(size); | |
} |
Architecture: x86_64 | |
CPU op-mode(s): 32-bit, 64-bit | |
Byte Order: Little Endian | |
CPU(s): 8 | |
On-line CPU(s) list: 0-7 | |
Thread(s) per core: 2 | |
Core(s) per socket: 4 | |
Socket(s): 1 | |
NUMA node(s): 1 | |
Vendor ID: GenuineIntel |
#include <iostream> | |
#include <gmpxx.h> | |
#include <chrono> | |
using namespace std; | |
int main() | |
{ | |
int n; cin>>n; | |
auto start=chrono::high_resolution_clock::now(); | |
mpz_class a=1; | |
for(int i=2; i<=n; i++) |