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