Borderou de evaluare (job #1495406)
Utilizator | Data | 3 octombrie 2015 00:41:36 | |
---|---|---|---|
Problema | Dtcsu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:29: error: wrong number of template arguments (1, should be 5)
unordered_map <long long int> elem;
^
In file included from /usr/include/c++/4.8/unordered_map:48:0,
from user.cpp:2:
/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:10:35: error: invalid type in declaration before ‘;’ token
unordered_map <long long int> elem;
^
user.cpp: In function ‘void Read()’:
user.cpp:19:18: error: request for member ‘insert’ in ‘elem’, which is of non-class type ‘int’
elem.insert(X);
^
user.cpp: In function ‘void Write()’:
user.cpp:41:17: error: request for member ‘find’ in ‘elem’, which is of non-class type ‘int’
if(elem.find(X) != elem.end())
^
user.cpp:41:33: error: request for member ‘end’ in ‘elem’, which is of non-class type ‘int’
if(elem.find(X) != elem.end())
^
user.cpp: In function ‘void Read()’:
user.cpp:16:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &X);
^
user.cpp: In function ‘void Write()’:
user.cpp:33:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &Q);
^
user.cpp:35:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &X);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !