Borderou de evaluare (job #1284821)
Utilizator | Data | 6 decembrie 2014 20:36:49 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int secvente(int)’:
user.cpp:23:5: error: reference to ‘unordered_map’ is ambiguous
unordered_map <int, int> h;
^
In file included from /usr/include/c++/4.8/tr1/unordered_map:42:0,
from user.cpp:3:
/usr/include/c++/4.8/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map
class unordered_map
^
In file included from /usr/include/c++/4.8/unordered_map:48:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:115,
from user.cpp:4:
/usr/include/c++/4.8/bits/unordered_map.h:97:11: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map
class unordered_map : __check_copy_constructible<_Alloc>
^
user.cpp:23:20: error: expected primary-expression before ‘int’
unordered_map <int, int> h;
^
user.cpp:23:20: error: expected ‘;’ before ‘int’
user.cpp:27:9: error: ‘h’ was not declared in this scope
h[v[i]]++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !