Borderou de evaluare (job #1339395)
Utilizator | Data | 10 februarie 2015 21:12:30 | |
---|---|---|---|
Problema | Avarcolaci | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:1: error: reference to ‘unordered_map’ is ambiguous
unordered_map <int,int> hsh;
^
In file included from /usr/include/c++/4.8/tr1/unordered_map:42:0,
from user.cpp:2:
/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:1:
/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:13:1: error: ‘unordered_map’ does not name a type
unordered_map <int,int> hsh;
^
user.cpp: In function ‘int main()’:
user.cpp:26:17: error: ‘hsh’ was not declared in this scope
foor(it,hsh) it->second=0;
^
user.cpp:11:33: note: in definition of macro ‘foor’
#define foor(it,v) for(__typeof(v.begin()) it=v.begin();it!=v.end();++it)
^
user.cpp:11:46: error: invalid type in declaration before ‘=’ token
#define foor(it,v) for(__typeof(v.begin()) it=v.begin();it!=v.end();++it)
^
user.cpp:26:9: note: in expansion of macro ‘foor’
foor(it,hsh) it->second=0;
^
user.cpp:26:24: error: base operand of ‘->’ is not a pointer
foor(it,hsh) it->second=0;
^
user.cpp:32:19: error: ‘hsh’ was not declared in this scope
if(fr[hsh[x]]==0) hsh[x]=++l;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !