Answer:
#include <iostream>
using namespace std;
void findDuplicate(int arr[], int size) {
for(int i = 0; i < size; ++i) {
for(int j = i+1; j < size; ++j) {
if(arr[j] == arr[i]) {
cout << arr[j] << endl;
return;
}
}
}
cout << -1 << endl;
}
int main() {
int arr[] = {2, 3, 5, 6, 11, 20, 4, 8, 4, 9};
findDuplicate(arr, 20);
return 0;
}
Explanation:
The answer is a POST Diagnostic Card.
Although not a necessity, a POST card can help discover and report computer errors and conflicts that occur when you first turn on a computer and before the operating system. To be able to understand how a POST card works, one needs to be very familiar with the BIOS. The power-on self test (POST) is a series of various tests performed by a computer when you turn it on. If you have any issues that conflicts with the operating system and prevents the computer from booting, you can install a POST card in the available expansion slots. This card will monitor the entire boot process and report errors in coded numbers on a small LED panel on the card.
I don't see any error on your code, everything is well written and simple. Except trying putting PUBLIC on your Class displayer. If you encounter the same problem again try to rebuild your whole code and try to recompile the whole code. Even try restarting your personal computer.