Problem | childsetter3 |
---|---|
User | WJR |
Submission Time | 2025-07-26 13:52:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
childsetter3.cpp: In function ‘int main()’:
childsetter3.cpp:14:9: error: ‘unordered_map’ was not declared in this scope
14 | unordered_map<int, int> freq;
| ^~~~~~~~~~~~~
childsetter3.cpp:3:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’?
2 | #include <array>
+++ |+#include <unordered_map>
3 | using namespace std;
childsetter3.cpp:14:23: error: expected primary-expression before ‘int’
14 | unordered_map<int, int> freq;
| ^~~
childsetter3.cpp:18:17: error: ‘freq’ was not declared in this scope; did you mean ‘free’?
18 | if (freq[difficulty] == 0) {
| ^~~~
| free
childsetter3.cpp:21:13: error: ‘freq’ was not declared in this scope; did you mean ‘free’?
21 | freq[difficulty]++;
|