gostaria de tranformar essa matriz em vetor e não estou conseguindo.
 
	#include <iostream> 
	#include <stdlib.h> 
	#include <iomanip>
 
	using namespace std;
 
	main(){
 
	    int vetorS[12 * 4]; 
	    int i= 0; 
	    int j=0; 
	    float S[12][4] = { 
	        {5, 5, 5, 5}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0}, 
	        {0, 0, 0, 0} 
	        
	    }; 
	    int indice = 0; 
	    int x=0, y=0; 
	     
	for( x = 0; x < i; x++ ) 
	{ 
	    for( y = 0; y < j; y++ ) 
	    { 
	        vetorS[indice] = S[x][y]; 
	        indice = indice + 1; 
	    } 
	} 
	cout<<vetorS<<endl; 
	}