- 分享
啊?
- 2024-10-22 15:41:08 @
Compile Error 0ms 0KiB foo.cc: In function 'int main()': foo.cc:22:69: error: no matching function for call to 'std::set::find()' 22 | if(s2.find(i)==s2.end()&&s3.find(i)==s3.find()) | ^~ In file included from /nix/store/7vc88ixc6yca2hwgszjk51dh23j3g2nr-gcc-13.2.0/include/c++/13.2.0/set:63, from /nix/store/7vc88ixc6yca2hwgszjk51dh23j3g2nr-gcc-13.2.0/include/c++/13.2.0/x86_64-unknown-linux-gnu/bits/stdc++.h:158, from foo.cc:1: /nix/store/7vc88ixc6yca2hwgszjk51dh23j3g2nr-gcc-13.2.0/include/c++/13.2.0/bits/stl_set.h:796:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = long long int; _Compare = std::less; _Alloc = std::allocator; iterator = std::_Rb_tree<long long int, long long int, std::_Identity, std::less, std::allocator >::const_iterator; key_type = long long int]' 796 | find(const key_type& __x) | ^~~~ /nix/store/7vc88ixc6yca2hwgszjk51dh23j3g2nr-gcc-13.2.0/include/c++/13.2.0/bits/stl_set.h:796:7: note: candidate expects 1 argument, 0 provided /nix/store/7vc88ixc6yca2hwgszjk51dh23j3g2nr-gcc-13.2.0/include/c++/13.2.0/bits/stl_set.h:800:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::const_iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) const [with _Key = long long int; _Compare = std::less; _Alloc = std::allocator; const_iterator = std::_Rb_tree<long long int, long long int, std::_Identity, std::less, std::allocator >::const_iterator; key_type = long long int]' 800 | find(const key_type& __x) const | ^~~~ /nix/store/7vc88ixc6yca2hwgszjk51dh23j3g2nr-gcc-13.2.0/include/c++/13.2.0/bits/stl_set.h:800:7: note: candidate expects 1 argument, 0 provided