Problem topical
User haydendoo
Submission Time 2023-12-08 12:14:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In member function ‘int Module::difficulty() const’:
topical.cpp:25:16: error: ‘accumulate’ was not declared in this scope
25 | return accumulate(requirements.begin(), requirements.end(), 0);
| ^~~~~~~~~~
topical.cpp: In member function ‘int Module::totalGain() const’:
topical.cpp:33:16: error: ‘accumulate’ was not declared in this scope
33 | return accumulate(gains.begin(), gains.end(), 0);
| ^~~~~~~~~~