Borderou de evaluare (job #1497039)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 5 octombrie 2015 23:21:30
Problema Dtcsu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:38:24: error: no matching function for call to ‘std::unordered_set<long long int>::count()’ if(mySet.count()) ^ user.cpp:38:24: note: candidate is: In file included from /usr/include/c++/4.8/unordered_set:48:0, from user.cpp:5: /usr/include/c++/4.8/bits/unordered_set.h:534:7: note: std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type std::unordered_set<_Value, _Hash, _Pred, _Alloc>::count(const key_type&) const [with _Value = long long int; _Hash = std::hash<long long int>; _Pred = std::equal_to<long long int>; _Alloc = std::allocator<long long int>; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type = unsigned int; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_type = long long int] count(const key_type& __x) const ^ /usr/include/c++/4.8/bits/unordered_set.h:534:7: note: candidate expects 1 argument, 0 provided user.cpp:22:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld ", &val); ^ user.cpp:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &Q); ^ user.cpp:31:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &val); ^

Ceva nu functioneaza?