Problem collectmushrooms6
User PlayVoltz
Submission Time 2023-07-18 13:49:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:11:2: error: expected initializer before ‘for’
11 | for (int i=0; i<r; ++i){
| ^~~
collectmushrooms6.cpp:11:16: error: ‘i’ was not declared in this scope
11 | for (int i=0; i<r; ++i){
| ^
collectmushrooms6.cpp:23:39: error: expected ‘;’ before ‘)’ token
23 | for (int i=0; i<mushrooms.size(), ++i){
| ^
| ;
collectmushrooms6.cpp:25:19: error: ‘sprinklers’ was not declared in this scope
25 | for (int j=0; j<sprinklers.size(); ++j){
| ^~~~~~~~~~