| Problem | duckhunt29 |
|---|---|
| User | bachnguyen123 |
| Submission Time | 2025-12-28 10:49:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:4:2: error: ‘vector’ was not declared in this scope
4 | vector<int> p(N+5);
| ^~~~~~
duckhunt29.cpp:4:9: error: expected primary-expression before ‘int’
4 | vector<int> p(N+5);
| ^~~
duckhunt29.cpp:8:3: error: ‘cin’ was not declared in this scope
8 | cin>>p[i];
| ^~~
duckhunt29.cpp:8:8: error: ‘p’ was not declared in this scope
8 | cin>>p[i];
| ^
duckhunt29.cpp:15:6: error: ‘qry’ was not declared in this scope; did you mean ‘query’?
15 | if(qry(x) * p[i] == 1) mi = x+1;
| ^~~
| query
duckhunt29.cpp:15:15: error: ‘p’ was not declared in this scope
15 | if(qry(x) * p[i] == 1) mi = x+1;
| ^
duckhunt29.cpp:15:26: error: ‘mi’ was not declared in this scope; did you mean ‘i’?
15 | if(qry(x) * p[i] == 1) mi = x+1;