fix compilation error

This commit is contained in:
2021-01-10 15:23:40 +01:00
parent 07a8b49373
commit d610ef690f
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
#ifndef ADT_Stack_H
#define ADT_Stack_H
#include <stack>
#include <vector>
#include <mutex>
@@ -31,3 +34,5 @@ class ADTOperationQueue{
operation dequeue();
size_t size();
};
#endif

View File

@@ -12,7 +12,7 @@ Stack::Stack(ADTOperationQueue * queue){
void Stack::push(int element) { return; }
int Stack::pop() { return 0; }
void Stack::size() { return 0; }
int Stack::size() { return 0; }
std::string Stack::print_stack(){
Node* c = this->first->next;

View File

@@ -41,6 +41,7 @@ std::vector<operation> generate_operations_uniform(){
break;
}
}
return operations;
}
void run_worker(std::vector<operation>* operations, Stack* stack) {