18 lines
307 B
C++
18 lines
307 B
C++
#include <modern/lib.hpp>
|
|
|
|
#include <fmt/format.h>
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <tuple>
|
|
|
|
int main() {
|
|
std::vector<double> input = {1.2, 2.3, 3.4, 4.5};
|
|
|
|
auto [mean, moment] = accumulate_vector(input);
|
|
|
|
fmt::print("Mean: {}, Moment: {}\n", mean, moment);
|
|
|
|
return 0;
|
|
}
|