记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:32: error: no matching function for call to 'std::set<int>::find()'
    if(vis[i]==0 && a[i]=s.find())vis[i]=1;
                                ^
In file included from /usr/include/c++/6/set:61:0,
                 from /in/foo.cc:6:
/usr/include/c++/6/bits/stl_set.h:692:7: note: candidate: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::key_type = int]
       find(const key_type& __x)
       ^~~~
/usr/include/c++/6/bits/stl_set.h:692:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/6/bits/stl_set.h:696:7: note: candidate: std::set<_Key, _Compare, _Alloc>::const_iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::key_type = int]
       find(const key_type& __x) const
       ^~~~
/usr/include/c++/6/bits/stl_set.h:696:7: note:   candidate expects 1 argument, 0 provided

信息

递交者
类型
自测
题目
P1204 水滴
语言
C++
递交时间
2020-12-09 16:57:26
评测时间
2020-12-09 16:57:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes