Problem | duckhunt6 |
---|---|
User | jmuzhen |
Submission Time | 2024-12-23 11:34:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckhunt6.cpp: In function ‘void computeSubtreeSizes(int, int)’:
duckhunt6.cpp:21:29: error: ‘class std::set<int>’ has no member named ‘contains’
21 | #define VALIDATE if (!nodes.contains(v)) continue;
| ^~~~~~~~
duckhunt6.cpp:26:9: note: in expansion of macro ‘VALIDATE’
26 | VALIDATE
| ^~~~~~~~
duckhunt6.cpp: In function ‘int findCentroid(int, int, int)’:
duckhunt6.cpp:21:29: error: ‘class std::set<int>’ has no member named ‘contains’
21 | #define VALIDATE if (!nodes.contains(v)) continue;
| ^~~~~~~~
duckhunt6.cpp:36:9: note: in expansion of macro ‘VALIDATE’
36 | VALIDATE
| ^~~~~~~~
duckhunt6.cpp: In function ‘void computeDistances(int, int, int, int)’:
duckhunt6.cpp:21:29: error: ‘class std::set<int>’ has no member named ‘contains’
21 | #define VALIDATE if (!nodes.contains(v)) continue;