#include <string>
#include <vector>
using namespace std;
struct coordinate{
int x;
int y;
coordinate() : x(0), y(0) {}
};
typedef struct coordinate coordinate;
long long solution(vector<string> grid) {
long long answer = 0;
coordinate p;
for(int i=0; 0!=grid[i][0]; i++){
for(int j=0; 0!=grid[0][i]; j++){
if(grid[i][j]=='o'){
p.x=j;
p.y=i;
break;
}
}
}
return p.x;
return answer;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: