#include <iostream>
#include <string>
#include <vector>
using namespace std;
main()
{
const int wangs_size = 18;
int arrays_wangs [wangs_size];
cout<<"wangs_size = "<<wangs_size<<endl;
vector <int> arrays_kings (wangs_size);
arrays_wangs [0] = 1;
arrays_kings [0] = 00;
arrays_wangs [1] = 2;
arrays_kings [1] = 11;
cout<<"arrays_wangs.[0] = "<<arrays_wangs [0]<<endl;
cout<<"arrays_kings.[0] = "<<arrays_kings [0]<<endl;
cout<<"arrays_wangs.[1] = "<<arrays_wangs [1]<<endl;
cout<<"arrays_kings.[1] = "<<arrays_kings [1]<<endl;
cout<<"====================================="<<endl;
int x=2;
for(;x<wangs_size;x++)
{
if (x==2) //the same mistake...GOD
{
cout<<"*arrays_wangs ["<<x-2<<"] = "<<arrays_wangs [0]<<" , "<<endl;
cout<<"*arrays_wangs ["<<x-1<<"] = "<<arrays_wangs [1]<<" , "<<endl;
arrays_wangs [x] = arrays_wangs [x-2] + 2 * arrays_wangs [x-1]; // pell array...
cout<<"arrays_wangs ["<<x<<"] = "<<arrays_wangs [x]<<" , "<<endl;
}
else
{
arrays_wangs [x] = arrays_wangs [x-2] + 2 * arrays_wangs [x-1]; // pell array...
cout<<"arrays_wangs ["<<x<<"] = "<<arrays_wangs [x]<<" , "<<endl;
}
}
return 0;
}