Last active
October 8, 2020 11:37
-
-
Save ampulhetadosaber/7eea56b90969ab670fcdbe264bf84d48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
priority_queue<int> fila; | |
fila.push(3); | |
fila.push(1); | |
fila.push(2); | |
cout << fila.top() << "\n"; | |
// O programa irá imprimir o número 3, que é o | |
// elemento que está na frente, no topo, da fila. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment