| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1203982 | MuhammadSaram | Broken Device (JOI17_broken_device) | C++20 | Compilation error | 0 ms | 0 KiB |
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;
void Anna(int n, long long x, int k, int p[] )
{
bool off[n]={};
for (int i=0;i<k;i++)
off[p[i]]=off[max(0,p[i]-1)]=1;
int p=59;
for (int i=0;i<n;i++)
if (!off[i] && p>=0)
set(i,1),set(i+1,(x>>p)%2),i++,p--;
else
set(i,0);
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno( int n, int a[] )
{
int p=63;
long long ans=0;
for (int i=0;i<n;i++)
if (a[i])
ans+=(1ll<<p)*a[i+1],i++,p--;
return ans;
}
Compilation message (stderr)
# 1번째 컴파일 단계
Anna.cpp: In function 'void Anna(int, long long int, int, int*)':
Anna.cpp:11:13: error: declaration of 'int p' shadows a parameter
11 | int p=59;
| ^
Anna.cpp:6:42: note: 'int* p' previously declared here
6 | void Anna(int n, long long x, int k, int p[] )
| ~~~~^~~
Anna.cpp:14:32: error: class template argument deduction failed:
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
Anna.cpp:14:32: error: no matching function for call to 'set(int&, int)'
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:271:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
271 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/11/bits/stl_set.h:271:9: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: candidate expects 3 arguments, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:265:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
265 | set(initializer_list<value_type> __l, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:265:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:259:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
259 | set(set&& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:259:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:255:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
255 | set(const set& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:255:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'const std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:251:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
251 | set(const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:251:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: candidate expects 1 argument, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:243:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
243 | set(initializer_list<value_type> __l,
| ^~~
/usr/include/c++/11/bits/stl_set.h:243:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:231:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&)-> std::set<_Key, _Compare, _Alloc>'
231 | set(set&&) = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:231:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:223:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&)-> std::set<_Key, _Compare, _Alloc>'
223 | set(const set&) = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:223:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'const std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:208:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
208 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/11/bits/stl_set.h:208:9: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: candidate expects 4 arguments, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:191:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator)-> std::set<_Key, _Compare, _Alloc>'
191 | set(_InputIterator __first, _InputIterator __last)
| ^~~
/usr/include/c++/11/bits/stl_set.h:191:9: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: couldn't deduce template parameter '_Key'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:176:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
176 | set(const _Compare& __comp,
| ^~~
/usr/include/c++/11/bits/stl_set.h:176:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: couldn't deduce template parameter '_Key'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:167:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set()-> std::set<_Key, _Compare, _Alloc>'
167 | set() = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:167:7: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: candidate expects 0 arguments, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:94:11: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Alloc>)-> std::set<_Key, _Compare, _Alloc>'
94 | class set
| ^~~
/usr/include/c++/11/bits/stl_set.h:94:11: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::set<_Key, _Compare, _Alloc>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:968:5: note: candidate: 'template<class _Key, class _Allocator, class> std::set(std::initializer_list<_Tp>, _Allocator)-> std::set<_Key, std::less<_Key>, _Allocator>'
968 | set(initializer_list<_Key>, _Allocator)
| ^~~
/usr/include/c++/11/bits/stl_set.h:968:5: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:961:5: note: candidate: 'template<class _InputIterator, class _Allocator, class, class> std::set(_InputIterator, _InputIterator, _Allocator)-> std::set<typename std::iterator_traits<_Iter>::value_type, std::less<typename std::iterator_traits< <template-parameter-1-1> >::value_type>, _Allocator>'
961 | set(_InputIterator, _InputIterator, _Allocator)
| ^~~
/usr/include/c++/11/bits/stl_set.h:961:5: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: candidate expects 3 arguments, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:954:5: note: candidate: 'template<class _Key, class _Compare, class _Allocator, class, class> std::set(std::initializer_list<_Tp>, _Compare, _Allocator)-> std::set<_Key, _Compare, _Allocator>'
954 | set(initializer_list<_Key>,
| ^~~
/usr/include/c++/11/bits/stl_set.h:954:5: note: template argument deduction/substitution failed:
Anna.cpp:14:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:945:5: note: candidate: 'template<class _InputIterator, class _Compare, class _Allocator, class, class, class> std::set(_InputIterator, _InputIterator, _Compare, _Allocator)-> std::set<typename std::iterator_traits<_Iter>::value_type, _Compare, _Allocator>'
945 | set(_InputIterator, _InputIterator,
| ^~~
/usr/include/c++/11/bits/stl_set.h:945:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/stl_set.h:938:12: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
938 | typename _Compare =
| ^~~~~~~~
Anna.cpp:14:50: error: class template argument deduction failed:
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
Anna.cpp:14:50: error: no matching function for call to 'set(int, long long int)'
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:271:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
271 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/11/bits/stl_set.h:271:9: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'long long int')
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:265:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
265 | set(initializer_list<value_type> __l, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:265:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:259:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
259 | set(set&& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:259:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:255:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
255 | set(const set& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:255:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'const std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:251:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
251 | set(const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:251:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: candidate expects 1 argument, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:243:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
243 | set(initializer_list<value_type> __l,
| ^~~
/usr/include/c++/11/bits/stl_set.h:243:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:231:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&)-> std::set<_Key, _Compare, _Alloc>'
231 | set(set&&) = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:231:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:223:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&)-> std::set<_Key, _Compare, _Alloc>'
223 | set(const set&) = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:223:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'const std::set<_Key, _Compare, _Allocator>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:208:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
208 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/11/bits/stl_set.h:208:9: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'long long int')
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:191:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator)-> std::set<_Key, _Compare, _Alloc>'
191 | set(_InputIterator __first, _InputIterator __last)
| ^~~
/usr/include/c++/11/bits/stl_set.h:191:9: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'long long int')
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:176:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
176 | set(const _Compare& __comp,
| ^~~
/usr/include/c++/11/bits/stl_set.h:176:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: couldn't deduce template parameter '_Key'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:167:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set()-> std::set<_Key, _Compare, _Alloc>'
167 | set() = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:167:7: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: candidate expects 0 arguments, 2 provided
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:94:11: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Alloc>)-> std::set<_Key, _Compare, _Alloc>'
94 | class set
| ^~~
/usr/include/c++/11/bits/stl_set.h:94:11: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::set<_Key, _Compare, _Alloc>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:968:5: note: candidate: 'template<class _Key, class _Allocator, class> std::set(std::initializer_list<_Tp>, _Allocator)-> std::set<_Key, std::less<_Key>, _Allocator>'
968 | set(initializer_list<_Key>, _Allocator)
| ^~~
/usr/include/c++/11/bits/stl_set.h:968:5: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:961:5: note: candidate: 'template<class _InputIterator, class _Allocator, class, class> std::set(_InputIterator, _InputIterator, _Allocator)-> std::set<typename std::iterator_traits<_Iter>::value_type, std::less<typename std::iterator_traits< <template-parameter-1-1> >::value_type>, _Allocator>'
961 | set(_InputIterator, _InputIterator, _Allocator)
| ^~~
/usr/include/c++/11/bits/stl_set.h:961:5: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'long long int')
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:954:5: note: candidate: 'template<class _Key, class _Compare, class _Allocator, class, class> std::set(std::initializer_list<_Tp>, _Compare, _Allocator)-> std::set<_Key, _Compare, _Allocator>'
954 | set(initializer_list<_Key>,
| ^~~
/usr/include/c++/11/bits/stl_set.h:954:5: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:945:5: note: candidate: 'template<class _InputIterator, class _Compare, class _Allocator, class, class, class> std::set(_InputIterator, _InputIterator, _Compare, _Allocator)-> std::set<typename std::iterator_traits<_Iter>::value_type, _Compare, _Allocator>'
945 | set(_InputIterator, _InputIterator,
| ^~~
/usr/include/c++/11/bits/stl_set.h:945:5: note: template argument deduction/substitution failed:
Anna.cpp:14:50: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'long long int')
14 | set(i,1),set(i+1,(x>>p)%2),i++,p--;
| ^
Anna.cpp:16:32: error: class template argument deduction failed:
16 | set(i,0);
| ^
Anna.cpp:16:32: error: no matching function for call to 'set(int&, int)'
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:271:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
271 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/11/bits/stl_set.h:271:9: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: candidate expects 3 arguments, 2 provided
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:265:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
265 | set(initializer_list<value_type> __l, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:265:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:259:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
259 | set(set&& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:259:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::set<_Key, _Compare, _Allocator>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:255:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
255 | set(const set& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:255:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'const std::set<_Key, _Compare, _Allocator>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:251:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
251 | set(const allocator_type& __a)
| ^~~
/usr/include/c++/11/bits/stl_set.h:251:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: candidate expects 1 argument, 2 provided
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:243:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
243 | set(initializer_list<value_type> __l,
| ^~~
/usr/include/c++/11/bits/stl_set.h:243:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:231:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&)-> std::set<_Key, _Compare, _Alloc>'
231 | set(set&&) = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:231:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::set<_Key, _Compare, _Allocator>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:223:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&)-> std::set<_Key, _Compare, _Alloc>'
223 | set(const set&) = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:223:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'const std::set<_Key, _Compare, _Allocator>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:208:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
208 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/11/bits/stl_set.h:208:9: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: candidate expects 4 arguments, 2 provided
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:191:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator)-> std::set<_Key, _Compare, _Alloc>'
191 | set(_InputIterator __first, _InputIterator __last)
| ^~~
/usr/include/c++/11/bits/stl_set.h:191:9: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: couldn't deduce template parameter '_Key'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:176:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
176 | set(const _Compare& __comp,
| ^~~
/usr/include/c++/11/bits/stl_set.h:176:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: couldn't deduce template parameter '_Key'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:167:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set()-> std::set<_Key, _Compare, _Alloc>'
167 | set() = default;
| ^~~
/usr/include/c++/11/bits/stl_set.h:167:7: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: candidate expects 0 arguments, 2 provided
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:94:11: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Alloc>)-> std::set<_Key, _Compare, _Alloc>'
94 | class set
| ^~~
/usr/include/c++/11/bits/stl_set.h:94:11: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::set<_Key, _Compare, _Alloc>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:968:5: note: candidate: 'template<class _Key, class _Allocator, class> std::set(std::initializer_list<_Tp>, _Allocator)-> std::set<_Key, std::less<_Key>, _Allocator>'
968 | set(initializer_list<_Key>, _Allocator)
| ^~~
/usr/include/c++/11/bits/stl_set.h:968:5: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:961:5: note: candidate: 'template<class _InputIterator, class _Allocator, class, class> std::set(_InputIterator, _InputIterator, _Allocator)-> std::set<typename std::iterator_traits<_Iter>::value_type, std::less<typename std::iterator_traits< <template-parameter-1-1> >::value_type>, _Allocator>'
961 | set(_InputIterator, _InputIterator, _Allocator)
| ^~~
/usr/include/c++/11/bits/stl_set.h:961:5: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: candidate expects 3 arguments, 2 provided
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:954:5: note: candidate: 'template<class _Key, class _Compare, class _Allocator, class, class> std::set(std::initializer_list<_Tp>, _Compare, _Allocator)-> std::set<_Key, _Compare, _Allocator>'
954 | set(initializer_list<_Key>,
| ^~~
/usr/include/c++/11/bits/stl_set.h:954:5: note: template argument deduction/substitution failed:
Anna.cpp:16:32: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
16 | set(i,0);
| ^
In file included from /usr/include/c++/11/set:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
from Anna.cpp:2:
/usr/include/c++/11/bits/stl_set.h:945:5: note: candidate: 'template<class _InputIterator, class _Compare, class _Allocator, class, class, class> std::set(_InputIterator, _InputIterator, _Compare, _Allocator)-> std::set<typename std::iterator_traits<_Iter>::value_type, _Compare, _Allocator>'
945 | set(_InputIterator, _InputIterator,
| ^~~
/usr/include/c++/11/bits/stl_set.h:945:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/stl_set.h:938:12: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
938 | typename _Compare =
| ^~~~~~~~