0_0_37942679_10300.cpp:9:9: error: expected unqualified-id before 'int'
int ans,int n;
^
0_0_37942679_10300.cpp: In function 'void dfs(int, int, int, int)':
0_0_37942679_10300.cpp:14:11: error: 'n' was not declared in this scope
if (x == n && y == n) {
^
0_0_37942679_10300.cpp:19:10: error: 'n' was not declared in this scope
if (x < n && t * t > ans)dfs(x + 1, y, Sa + a[x + 1][y], Sb + b[x + 1][y]);
^
0_0_37942679_10300.cpp:21:10: error: 'n' was not declared in this scope
if (y < n && t * t > ans)dfs(x, y + 1, Sa + a[x][y + 1], Sb + b[x][y + 1]);
^
0_0_37942679_10300.cpp: In function 'void solve()':
0_0_37942679_10300.cpp:25:9: error: 'n' was not declared in this scope
cin >> n;
^
|