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);
}