Problem milkweed
User Pyrros
Submission Time 2023-03-08 13:32:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘int main()’:
milkweed.cpp:58:31: error: expected ‘;’ before ‘}’ token
58 | grid[v.first+1][v.second-1]} = 'M';
| ^
| ;
milkweed.cpp:58:33: error: expected primary-expression before ‘=’ token
58 | grid[v.first+1][v.second-1]} = 'M';
| ^
milkweed.cpp:59:12: error: ‘v’ was not declared in this scope
59 | }if(grid[v.first+1][v.second] != '*'&&grid[v.first+1][v.second] != 'M' ** v.first+1 <= x)
| ^
milkweed.cpp:61:33: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
61 | q2.push({v.first+1, v.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,