Problem collectmushrooms6
User wahjsodhowasd
Submission Time 2026-02-18 16:42:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:10:1: error: expected initializer before ‘unordered_map’
10 | unordered_map <pair<int,int>,char> m;
| ^~~~~~~~~~~~~
collectmushrooms6.cpp:16:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if(x=="M"){v.emplace_back({i,j})}
| ^~~
collectmushrooms6.cpp:16:12: error: ‘v’ was not declared in this scope
16 | if(x=="M"){v.emplace_back({i,j})}
| ^
collectmushrooms6.cpp:18:1: error: ‘m’ was not declared in this scope
18 | m[p]=x;
| ^
collectmushrooms6.cpp:24:4: error: ‘v’ was not declared in this scope
24 | y= v.size();
| ^
collectmushrooms6.cpp:28:1: error: expected ‘,’ or ‘;’ before ‘int’
28 | int z=max(D,R-1-p.first)
| ^~~
collectmushrooms6.cpp:45:1: error: ‘Cout’ was not declared in this scope
45 | Cout<<Ans;
| ^~~~