Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<map>
- #include<string>
- using namespace std;
- int main() {
- int n, i, j, x;
- cin >> n;
- string enq = "ENQUEUE", deq = "DEQUEUE", stop = "STOP", command;
- // enquanto nao der o comando de acabar
- while (n != 0) {
- map<int, int> team;
- // para cada time
- for (i = 0; i < n; i++) {
- // pega o valor do jogador;
- cout << "inserindo time " << i + 1 << ": ";
- cin >> x;
- // armazena-o no time
- team[x] = i;
- }
- cin >> command;
- if(!command.compare(enq)) {
- cout << "ALO CARAI" << endl;
- }
- cin >> n;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement