i've passed all the testcases here but still got WA. :(
can somebody help me pls?
thanks
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int m, n, x, y, i, j, k;
int parent[10005];
char s[105][105];
int sum[10005];
int ans;
int dirx[] = {0,0 ...