Problem collectmushrooms6
User thelusidian
Submission Time 2025-02-05 13:59:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:28:15: error: ‘else’ without a previous ‘if’
28 | } else if (map[i][j] = 'M'){
| ^~~~
collectmushrooms6.cpp:28:31: error: ‘j’ was not declared in this scope
28 | } else if (map[i][j] = 'M'){
| ^
collectmushrooms6.cpp:29:15: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘pushback’; did you mean ‘push_back’?
29 | mushrooms.pushback({i,j});
| ^~~~~~~~
| push_back