27 lines
514 B
C++
27 lines
514 B
C++
#include "loops.hpp"
|
|||
|
|
|
||
|
|
namespace control_flow {
|
||
|
|
|
||
|
|
auto sum_range(int from, int to) -> int {
|
||
|
|
(void)from; (void)to;
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
auto factorial(int n) -> long long {
|
||
|
|
(void)n;
|
||
|
|
return 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
auto count_occurrences(const std::vector<int>& data, int target) -> int {
|
||
|
|
(void)data; (void)target;
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
auto first_index_of(const std::vector<int>& data, int target) -> int {
|
||
|
|
// TODO: Return index or -1 if not found
|
||
|
|
(void)data; (void)target;
|
||
|
|
return -1;
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace control_flow
|