Problem skyscraper_apio15
User shoryu386
Submission Time 2023-05-23 07:30:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skyscraper_apio15.cpp: In function ‘int main()’:
skyscraper_apio15.cpp:45:27: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
45 | int curnode = bfs.top().first, curpwr = bfs.top().second;
| ^~~
| pop
skyscraper_apio15.cpp:47:23: error: ‘curpwr’ was not declared in this scope
47 | if (curnode + curpwr < n) {
| ^~~~~~
skyscraper_apio15.cpp:51:45: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
51 | bfs.push({curnode+curpwr, i});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from skyscraper_apio15.cpp:1:
/usr/include/c++/