Problem cups
User Phoubia01
Submission Time 2025-07-05 09:03:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cups.cpp: In function ‘int main()’:
cups.cpp:9:21: error: expected initializer before ‘>>’ token
9 | int no, cin >> no;
| ^~
cups.cpp:12:26: error: could not convert ‘cups.std::set<int>::find((a - add))’ from ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘bool’
12 | if (cups.find(a - add)){
| ~~~~~~~~~^~~~~~~~~
| |
| std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}