2020-08-13 07:07:32 +08:00
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
extern int regression_1008();
|
2020-09-26 18:47:20 +08:00
|
|
|
extern int regression_1000();
|
2020-08-13 07:07:32 +08:00
|
|
|
|
|
|
|
int main(int, char*[]) {
|
|
|
|
using f_ptr = int (*)();
|
2020-09-26 18:47:20 +08:00
|
|
|
const f_ptr regressions[] = { ®ression_1008, ®ression_1000 };
|
2020-08-13 07:07:32 +08:00
|
|
|
const int sizeof_regressions = sizeof(regressions) / sizeof(regressions[0]);
|
|
|
|
int r = 0;
|
|
|
|
for (std::size_t i = 0; i < sizeof_regressions; ++i) {
|
|
|
|
f_ptr f = regressions[0];
|
|
|
|
r += static_cast<int>(f() != 0);
|
|
|
|
}
|
|
|
|
return r;
|
|
|
|
}
|