13 lines
365 B
C++
13 lines
365 B
C++
#pragma once
|
|||
|
|
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace control_flow {
|
||
|
|
|
||
|
|
[[nodiscard]] auto sum_range(int from, int to) -> int;
|
||
|
|
[[nodiscard]] auto factorial(int n) -> long long;
|
||
|
|
[[nodiscard]] auto count_occurrences(const std::vector<int>& data, int target) -> int;
|
||
|
|
[[nodiscard]] auto first_index_of(const std::vector<int>& data, int target) -> int;
|
||
|
|
|
||
|
|
} // namespace control_flow
|