Problem | ballgame |
---|---|
User | nguyendinhanh1508 |
Submission Time | 2024-12-13 19:28:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballgame.cpp:3:1: error: ‘pair’ does not name a type
3 | pair<int, int> a[500007];
| ^~~~
ballgame.cpp: In function ‘int recur(int)’:
ballgame.cpp:7:5: error: ‘a’ was not declared in this scope
7 | if(a[pos].first == shortest) return 1;
| ^
ballgame.cpp:11:6: error: ‘a’ was not declared in this scope
11 | if(a[pos].first > a[i].first && abs(a[pos].second - a[i].second) <= d){
| ^
ballgame.cpp:11:35: error: ‘abs’ was not declared in this scope; did you mean ‘ans’?
11 | if(a[pos].first > a[i].first && abs(a[pos].second - a[i].second) <= d){
| ^~~
| ans
ballgame.cpp: In function ‘int ballgame(int, int, int, int*, int*)’:
ballgame.cpp:22:3: error: ‘a’ was not declared in this scope
22 | a[i].first = H[i];
| ^
ballgame.cpp:24:14: error: ‘min’ was not declared in this scope
24 |