Borderou de evaluare (job #1495341)
Utilizator | Data | 2 octombrie 2015 22:41:59 | |
---|---|---|---|
Problema | Dtcsu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:25: error: wrong number of template arguments (1, should be 5)
unordered_map <long long> mySet;
^
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:5:32: error: invalid type in declaration before ‘;’ token
unordered_map <long long> mySet;
^
user.cpp: In function ‘int main()’:
user.cpp:19:19: error: request for member ‘insert’ in ‘mySet’, which is of non-class type ‘int’
mySet.insert(X);
^
user.cpp:29:18: error: request for member ‘count’ in ‘mySet’, which is of non-class type ‘int’
if(mySet.count(X))
^
user.cpp:33:24: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%lld\n", nr);
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.in" ,"r", stdin );
^
user.cpp:13:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.out","w", stdout);
^
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:22:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &Q);
^
user.cpp:24: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 !