Problem collectmushrooms6
User wahjsodhowasd
Submission Time 2026-02-18 17:12:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In member function ‘size_t PairHash::operator()(const std::pair<int, int>&) const’:
collectmushrooms6.cpp:9:8: error: expected primary-expression before ‘)’ token
9 | )(p.first) ^ hash<int>()(p.second);
| ^
collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:19:50: error: template argument 1 is invalid
19 | unordered_map<pair<int,int>, char, PairHash> m;
| ^
collectmushrooms6.cpp:19:50: error: template argument 2 is invalid
collectmushrooms6.cpp:29:17: error: ‘m’ was not declared in this scope
29 | m[{i, j}] = x;
| ^
collectmushrooms6.cpp:45:21: error: ‘m’ was not declared in this scope
45 | if (m[{i, j}] == 'S') {
| ^