foo.cc: In function 'int main()':
foo.cc:18:25: error: 'cin' was not declared in this scope
18 | cin >> jz[i][j];
| ^~~
foo.cc:24:34: error: 'check_x' was not declared in this scope; did you mean 'check_y'?
24 | out_d += check_x(jz, i, 0);
| ^~~~~~~
| check_y
foo.cc:39:17: error: 'cout' was not declared in this scope; did you mean 'out'?
39 | cout << -1;
| ^~~~
| out
foo.cc:41:17: error: 'cout' was not declared in this scope; did you mean 'out'?
41 | cout << out;
| ^~~~
| out
[Hydro](https://hydro.ac)提供评测服务