coreputer.cpp: In function 'std::vector<int> malfunctioning_cores(int)':
coreputer.cpp:17:24: error: could not convert '(int*)(& arr)' from 'int*' to 'std::vector<int>'
17 | ret = run_diagnostic(arr);
| ^~~
| |
| int*
coreputer.cpp:20:19: error: 'b' was not declared in this scope
20 | them.push_back(b);
| ^
coreputer.cpp:28:21: error: could not convert '(int*)(& ar)' from 'int*' to 'std::vector<int>'
28 | if(run_diagnostic(ar) != -1){
| ^~
| |
| int*
coreputer.cpp:48:21: error: could not convert '(int*)(& p)' from 'int*' to 'std::vector<int>'
48 | if(run_diagnostic(p) != -1){
| ^
| |
| int*