From 15b79495593a4120d18cf0fb631b7f1bf25df3bb Mon Sep 17 00:00:00 2001 From: Tomasz Golinski Date: Sun, 6 Sep 2020 19:51:14 +0200 Subject: [PATCH] Not-found caches: add powiaty --- geostat.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/geostat.cpp b/geostat.cpp index ecde0d5..166319e 100644 --- a/geostat.cpp +++ b/geostat.cpp @@ -321,6 +321,7 @@ int main(int argc, char** argv) { for (auto& i : cc) { if (i.type != "Moving" && i.type != "Own" && (!exclude_quiz || i.type != "Quiz")) { fcc.push_back(&i); + poland.locate(i); } } } @@ -771,12 +772,13 @@ int main(int argc, char** argv) { std::cout << "Still " << cc.size() << " caches to be found...
\n"; std::cout << "\n"; + show_nested_histogram(fcc, &Cache::region, &Cache::subregion, "Regions", 1); + std::map region_found_count; - for (auto el : cc) - region_found_count[el.region]++; + for (auto el : fcc) + region_found_count[el->region]++; for (auto& i : region_count) i.second = region_found_count[i.first] * 100 / i.second; - show_histogram(region_found_count, "Regions", 1); show_histogram(region_count, "Percentage", 1); }