This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <type_traits> | |
#include <cmath> | |
#include <functional> | |
#include <variant> | |
using namespace std; | |
struct Nothing {}; // tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdlib.h> | |
#include <math.h> | |
using namespace std; | |
float media(float Sommatotale, float n) | |
{ | |
float media = Sommatotale / n; | |
return media; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <utility> | |
#include <vector> | |
using namespace std; | |
template<typename T> | |
T sum(T&& s) | |
{ | |
return s; |