Problem duckhunt2
User popperoni
Submission Time 2024-12-14 11:17:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt2.cpp:25:1: error: ‘vpll’ does not name a type; did you mean ‘vll’?
25 | vpll a,b;
| ^~~~
| vll
duckhunt2.cpp: In function ‘long long int ans(bool, long long int)’:
duckhunt2.cpp:29:10: error: ‘a’ was not declared in this scope; did you mean ‘at’?
29 | pll at=a[i];
| ^
| at
duckhunt2.cpp:30:27: error: could not convert ‘{<expression error>, <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<long long int, long long int>’
30 | pll at2={a[i].se,a[i].fi};
| ^
| |
| <brace-enclosed initializer list>
duckhunt2.cpp:31:10: error: expected primary-expression before ‘{’ token
31 | if(at=={H,W})return 0;
| ^
duckhunt2.cpp:31:10: error: expected ‘)’ before ‘{’ token
31 | if(at=={H,W})return 0;
|