-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.cpp
49 lines (41 loc) · 647 Bytes
/
template.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
*/
#include <iostream>
#include <algorithm>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <numeric> //std::accumulate
#include <climits> //X_MAX
using namespace std;
template <class T>
void printv(int A)
{
cout << A << endl;
}
template <class... Args>
void printv(int A, Args... args)
{
cout << A << " ";
printv(args...);
}
template <class Container>
void printv(Container A)
{
for (auto v : A)
{
cout << v << " ";
}
cout << endl;
}
int solution(vector<int> &A)
{
int sol = 0;
return sol;
}
int main()
{
vector<int> array({});
printv(array);
cout << solution(array) << endl;
}