#include <iostream>
#include <string>

using namespace std;

int main(void) 
{ 
	const int SIZE = 6;
	
	int a[SIZE] = {7, 1, 12, 3, 4, 6};
	int b[SIZE] = {7, 1, 12, 3, 4, 5};
	
	bool same = true;
	int totalComparison = 0;
	for(int i=0; i<SIZE; i++) {
		
		totalComparison++;
		if (a[i] != b[i]) {
			same = false;
			break;
		}
	}
	
	if (same)
		cout << "Array a and b has same value in all element index" << endl;
	else
		cout << "Array a and b not have same value in all element index" << endl;
	
	cout << "Total comparison: " << totalComparison;
	
    return 0;
} 
