| Problem | littlejohnny4 |
|---|---|
| User | DaPeter |
| Submission Time | 2025-12-15 12:17:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
littlejohnny4.cpp: In function ‘int main()’:
littlejohnny4.cpp:10:44: error: no match for ‘operator=’ (operand types are ‘std::set<long long int>’ and ‘int’)
10 | set<int> a[n+5];for(int i=0;i<n;i++) a[i]=0;
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from littlejohnny4.cpp:1:
/usr/include/c++/9/bits/stl_set.h:298:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(const std::set<_Key, _Compare, _Alloc>&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>]’
298 | operator=(const set&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_set.h:298:17: note: no known conversion for argument 1 from ‘int’ to ‘const std::set<long long int>&’<