Problem volcanic
User haydendoo
Submission Time 2023-01-27 18:50:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

volcanic.cpp: In function ‘void solve()’:
volcanic.cpp:256:5: error: ‘p8’ was not declared in this scope; did you mean ‘pi’?
256 | vt<p8> buckets[lim];
| ^~
| pi
volcanic.cpp:256:7: error: template argument 1 is invalid
256 | vt<p8> buckets[lim];
| ^
volcanic.cpp:256:7: error: template argument 2 is invalid
volcanic.cpp:48:12: error: request for member ‘push_back’ in ‘buckets[dist[sy][sx]]’, which is of non-class type ‘int’
48 | #define pb push_back
| ^~~~~~~~~
volcanic.cpp:257:24: note: in expansion of macro ‘pb’
257 | buckets[dist[sy][sx]].pb({sx,sy});
| ^~
volcanic.cpp:261:20: error: request for member ‘empty’ in ‘buckets[curr]’, which is of non-class type ‘int’
261 | if(buckets[curr].empty()) {
| ^~~~~
volcanic.cpp:264:26: error: request for member ‘back’ in ‘buckets[curr]’, which is of non-class typ