Borderou de evaluare (job #1317694)
Utilizator | Data | 15 ianuarie 2015 03:01:34 | |
---|---|---|---|
Problema | Criptare2 | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:22: error: wrong number of template arguments (1, should be 5)
unordered_map <string> M;
^
In file included from /usr/include/c++/4.8/unordered_map:48:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/unordered_map.h:97:11: error: provided for ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map’
class unordered_map : __check_copy_constructible<_Alloc>
^
user.cpp:6:25: error: invalid type in declaration before ‘;’ token
unordered_map <string> M;
^
user.cpp: In function ‘void citire()’:
user.cpp:25:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<sir.size();++j)
^
user.cpp:37:11: error: request for member ‘insert’ in ‘M’, which is of non-class type ‘int’
M.insert(cod);
^
user.cpp:47:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<sir.size();++j)
^
user.cpp:58:14: error: request for member ‘find’ in ‘M’, which is of non-class type ‘int’
if(M.find(cod)!= M.end())
^
user.cpp:58:28: error: request for member ‘end’ in ‘M’, which is of non-class type ‘int’
if(M.find(cod)!= M.end())
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !