记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:17: error: no match for 'operator&&' (operand types are 'bool' and 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}')
    if(vis[i]==0 && s.find(a[i]))vis[i]=1;
       ~~~~~~~~~~^~~~~~~~~~~~~~~
/in/foo.cc:29:17: note: candidate: operator&&(bool, bool) <built-in>
/in/foo.cc:29:17: note:   no known conversion for argument 2 from 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' to 'bool'

信息

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