Problem milkweed
User Pyrros
Submission Time 2023-03-08 14:12:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘int main()’:
milkweed.cpp:20:4: error: expected primary-expression before ‘,’ token
20 | },
| ^
milkweed.cpp:21:2: error: expected primary-expression before ‘}’ token
21 | }
| ^
milkweed.cpp:61:31: error: expected ‘;’ before ‘}’ token
61 | grid[v.first+1][v.second-1]} = 'M';
| ^
| ;
milkweed.cpp:61:33: error: expected primary-expression before ‘=’ token
61 | grid[v.first+1][v.second-1]} = 'M';
| ^
milkweed.cpp:62:12: error: ‘v’ was not declared in this scope
62 | }if(grid[v.first+1][v.second] != '*'&&grid[v.first+1][v.second] != 'M' ** v.first+1 <= x)
| ^
milkweed.cpp:64:33: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
64 | q2.push({v.first+1,