Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

const int INF = 99999;

void p(vector<int> v){
	for(int i = 0; i < v.size(); i++){
		cout << (i?" ":"") << v[i];
	}
	cout << endl;
}

void p(vector<string> v){
	for(int i = 0; i < v.size(); i++){
		cout << (i?"\n":"") << v[i];
	}
	cout << endl;
}

void p(vector<vector<int>> v){
	for(int i = 0; i < v.size(); i++){
		p(v[i]);
	}
	cout << endl;
}

bool hasNoMark(string s, int left, int right, const char mark = '*'){
	for(int i = left; i <= right; i++){
		if(s[i] == '*') return false;
	}
	return true;
}

int main(){
	int h, w;
	while(cin >> h >> w){
		if( !h && !w ) break;

		vector<string> data;

		for(int i = 0; i < h; i++){
			string line;
			cin >> line;
			line += '*';
			data.push_back(line);
		}
		string line(w+1, '*');
		data.push_back(line);

		int recmax = 0;

		for(int i = 0; i < h; i++){
			for(int j = 0; j < w; j++){
				if(data[i][j] == '*') continue;
				int left = j;
				while(data[i][j] != '*') j++;
				int h = 1;
				while(hasNoMark(data[i+h], left, j-1)) h++;
				recmax = max((j-left)*h, recmax);
			}
		}

//		p(data);
		cout << recmax << endl;
	}

	return 0;
}#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

const int INF = 99999;

void p(vector<int> v){
	for(int i = 0; i < v.size(); i++){
		cout << (i?" ":"") << v[i];
	}
	cout << endl;
}

void p(vector<string> v){
	for(int i = 0; i < v.size(); i++){
		cout << (i?"\n":"") << v[i];
	}
	cout << endl;
}

void p(vector<vector<int>> v){
	for(int i = 0; i < v.size(); i++){
		p(v[i]);
	}
	cout << endl;
}

bool hasNoMark(string s, int left, int right, const char mark = '*'){
	for(int i = left; i <= right; i++){
		if(s[i] == '*') return false;
	}
	return true;
}

int main(){
	int h, w;
	while(cin >> h >> w){
		if( !h && !w ) break;

		vector<string> data;

		for(int i = 0; i < h; i++){
			string line;
			cin >> line;
			line += '*';
			data.push_back(line);
		}
		string line(w+1, '*');
		data.push_back(line);

		int recmax = 0;

		for(int i = 0; i < h; i++){
			for(int j = 0; j < w; j++){
				if(data[i][j] == '*') continue;
				int left = j;
				while(data[i][j] != '*') j++;
				int h = 1;
				while(hasNoMark(data[i+h], left, j-1)) h++;
				recmax = max((j-left)*h, recmax);
			}
		}

//		p(data);
		cout << recmax << endl;
	}

	return 0;
}

Compiler output:
a.cc:72:2: error: stray '#' in program
   72 | }#include <iostream>
      |  ^
a.cc:72:3: error: 'include' does not name a type
   72 | }#include <iostream>
      |   ^~~~~~~
a.cc:79:11: error: redefinition of 'const int INF'
   79 | const int INF = 99999;
      |           ^~~
a.cc:8:11: note: 'const int INF' previously defined here
    8 | const int INF = 99999;
      |           ^~~
a.cc:81:6: error: redefinition of 'void p(std::vector<int>)'
   81 | void p(vector<int> v){
      |      ^
a.cc:10:6: note: 'void p(std::vector<int>)' previously defined here
   10 | void p(vector<int> v){
      |      ^
a.cc:88:6: error: redefinition of 'void p(std::vector<std::__cxx11::basic_string<char> >)'
   88 | void p(vector<string> v){
      |      ^
a.cc:17:6: note: 'void p(std::vector<std::__cxx11::basic_string<char> >)' previously defined here
   17 | void p(vector<string> v){
      |      ^
a.cc:95:6: error: redefinition of 'void p(std::vector<std::vector<int> >)'
   95 | void p(vector<vector<int>> v){
      |      ^
a.cc:24:6: note: 'void p(std::vector<std::vector<int> >)' previously defined here
   24 | void p(vector<vector<int>> v){
      |      ^
a.cc:102:6: error: redefinition of 'bool hasNoMark(std::string, int, int, char)'
  102 | bool hasNoMark(string s, int left, int right, const char mark = '*'){
      |      ^~~~~~~~~
a.cc:31:6: note: 'bool hasNoMark(std::string, int, int, char)' previously defined here
   31 | bool hasNoMark(string s, int left, int right, const char mark = '*'){
      |      ^~~~~~~~~
a.cc:109:5: error: redefinition of 'int main()'
  109 | int main(){
      |     ^~~~
a.cc:38:5: note: 'int main()' previously defined here
   38 | int main(){
      |     ^~~~