| Problem | duckhunt29 |
|---|---|
| User | Mimikyu |
| Submission Time | 2026-02-07 18:03:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<bool> tt;
| ^~~~~~
duckhunt29.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include "duckhunt29.h"
+++ |+#include <vector>
2 | using namespace std;
duckhunt29.cpp:5:12: error: expected primary-expression before ‘bool’
5 | vector<bool> tt;
| ^~~~
duckhunt29.cpp:8:12: error: ‘tt’ was not declared in this scope
8 | if(k==-1)tt.push_back(true);
| ^~
duckhunt29.cpp:9:8: error: ‘tt’ was not declared in this scope
9 | else tt.push_back(false);
| ^~
duckhunt29.cpp:14:6: error: ‘tt’ was not declared in this scope
14 | if(tt[i]){
| ^~