Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <type_traits>
#include <cmath>
#include <functional>
#include <variant>
using namespace std;
struct Nothing {}; // tag
// Type your code here, or load an example.
#include <algorithm>
#include <string>
#include <iostream>
#include <memory>
#include <utility>
using namespace std;
void increment(unique_ptr<int>&& p)
#include <iostream>
#include <stdlib.h>
#include <math.h>
using namespace std;
float media(float Sommatotale, float n)
{
float media = Sommatotale / n;
return media;
@Lampo89
Lampo89 / sum.cpp
Last active August 27, 2020 07:53
C++ : var-args sum
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
template<typename T>
T sum(T&& s)
{
return s;