Countries and provinces (2) P34438


Statement
 

pdf   zip   main.cc

html

Using the definitions of problem P90532, implement the function

int population(const Countries& p, double x);

that returns the sum of the population of the countries in p that have at least 2 provinces with gross domestic product less or equal to x

Observation You only need to submit the required classes; your main program will be ignored. Strictly obey the type definitions of the statement.

Information
Author
Jordi Petit
Language
English
Translator
Carlos Molina
Original language
Catalan
Other languages
Catalan
Official solutions
C++
User solutions
C++