Borderou de evaluare (job #1715313)

Utilizator AlexandruValeanuAlexandru Valeanu AlexandruValeanu Data 10 iunie 2016 12:08:19
Problema Oite Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In constructor ‘HashTable<T, V>::HashTable()’: user.cpp:108:23: error: ‘make_unique’ is not a member of ‘std’ this->table = std::make_unique<std::pair<T,V>[]>(MAX_SIZE); ^ user.cpp:108:54: error: expected primary-expression before ‘[’ token this->table = std::make_unique<std::pair<T,V>[]>(MAX_SIZE); ^ user.cpp:108:55: error: expected primary-expression before ‘]’ token this->table = std::make_unique<std::pair<T,V>[]>(MAX_SIZE); ^ user.cpp: In copy constructor ‘HashTable<T, V>::HashTable(const HashTable<T, V>&)’: user.cpp:114:23: error: ‘make_unique’ is not a member of ‘std’ this->table = std::make_unique<std::pair<T,V>[]>(MAX_SIZE); ^ user.cpp:114:54: error: expected primary-expression before ‘[’ token this->table = std::make_unique<std::pair<T,V>[]>(MAX_SIZE); ^ user.cpp:114:55: error: expected primary-expression before ‘]’ token this->table = std::make_unique<std::pair<T,V>[]>(MAX_SIZE); ^ user.cpp: In function ‘int main()’: user.cpp:194:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("oite.in", "r", stdin); ^ user.cpp:195:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("oite.out", "w", stdout); ^ user.cpp:197:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &L); ^ user.cpp:200:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &A[i]); ^

Ceva nu functioneaza?