summaryrefslogtreecommitdiffstats
path: root/src/hwrld.h
blob: b0f7336c837fde331960b2823f6ef4263c62abc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <vector>


std::string concat(std::string &a, std::string &b) {
    return a + ' ' + b;
}

int sum_of_ints(std::vector<int> &v) {
    int sum = 0;
    for(auto elm : v) {
        sum += elm;
    }

    return sum;
}