Borderou de evaluare (job #1495395)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 3 octombrie 2015 00:26:17
Problema Dtcsu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Write()’: user.cpp:36:23: error: no matching function for call to ‘std::unordered_set<long long int>::find()’ if(mySet.find() != mySet.end()) ^ user.cpp:36:23: note: candidates are: In file included from /usr/include/c++/4.8/unordered_set:48:0, from user.cpp:2: /usr/include/c++/4.8/bits/unordered_set.h:516:7: note: std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find(const key_type&) [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>::iterator = std::__detail::_Node_iterator<long long int, true, false>; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_type = long long int] find(const key_type& __x) ^ /usr/include/c++/4.8/bits/unordered_set.h:516:7: note: candidate expects 1 argument, 0 provided /usr/include/c++/4.8/bits/unordered_set.h:520:7: note: std::unordered_set<_Value, _Hash, _Pred, _Alloc>::const_iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find(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>::const_iterator = std::__detail::_Node_const_iterator<long long int, true, false>; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_type = long long int] find(const key_type& __x) const ^ /usr/include/c++/4.8/bits/unordered_set.h:520:7: note: candidate expects 1 argument, 0 provided user.cpp: In function ‘void Read()’: user.cpp:15: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:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &Q); ^ user.cpp:30:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &X); ^

Ceva nu functioneaza?