|  |  |  | @ -13,9 +13,9 @@ void show_histogram_text(const vector<size_t>& bins) { | 
			
		
	
		
			
				
					|  |  |  |  |             max_count = count; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     for (size_t j = 0; j < bins.size(); j++) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (bins[j] < 100) cout << " "; | 
			
		
	
		
			
				
					|  |  |  |  |         if (bins[j] < 10) cout << " "; | 
			
		
	
		
			
				
					|  |  |  |  |         cout << bins[j] << "|"; | 
			
		
	
		
			
				
					|  |  |  |  |         if (bins[j] < 100) cerr << " "; | 
			
		
	
		
			
				
					|  |  |  |  |         if (bins[j] < 10)  cerr << " "; | 
			
		
	
		
			
				
					|  |  |  |  |         cerr << bins[j] << "|"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         size_t height = 0; | 
			
		
	
		
			
				
					|  |  |  |  |         if (max_count > MAX_ASTERISK) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -27,7 +27,7 @@ void show_histogram_text(const vector<size_t>& bins) { | 
			
		
	
		
			
				
					|  |  |  |  |             height = bins[j]; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         for (size_t i = 0; i < height; i++) | 
			
		
	
		
			
				
					|  |  |  |  |             cout << "*"; | 
			
		
	
		
			
				
					|  |  |  |  |         cout << endl; | 
			
		
	
		
			
				
					|  |  |  |  |             cerr << "*"; | 
			
		
	
		
			
				
					|  |  |  |  |         cerr << endl; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |