coreputer.cpp: In function 'std::vector<int> malfunctioning_cores(int)':
coreputer.cpp:11:48: error: could not convert '(int*)(& v)' from 'int*' to 'std::vector<int>'
11 | iota(v,v+m+1,0),run_diagnostic(v,m+1)<0?l=m+1:r=m;
| ^
| |
| int*
coreputer.cpp:17:27: error: could not convert '(int*)(& v)' from 'int*' to 'std::vector<int>'
17 | if(run_diagnostic(v,n-l)>0)a[i]=1,a[n-1]^=1;
| ^
| |
| int*
coreputer.cpp:22:27: error: could not convert '(int*)(& v)' from 'int*' to 'std::vector<int>'
22 | if(run_diagnostic(v,l+1)>=0)a[i]=1,a[n-1]^=1;
| ^
| |
| int*