Problem duckhunt29
User popperoni
Submission Time 2025-12-12 01:32:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:72:10: error: ‘n’ was not declared in this scope
72 | ll p[n];
| ^
duckhunt29.cpp:73:12: error: ‘p’ was not declared in this scope
73 | fori(n)p[i]=query(i+1)>0;
| ^
duckhunt29.cpp:74:13: error: ‘hi’ was not declared in this scope; did you mean ‘fi’?
74 | ll lo=1;hi=(ll)1e9+1;
| ^~
| fi
duckhunt29.cpp:77:18: error: ‘x’ was not declared in this scope
77 | if(query(x)^p[cc]<0){
| ^
duckhunt29.cpp:77:21: error: ‘p’ was not declared in this scope
77 | if(query(x)^p[cc]<0){
| ^