robots.cpp: In function 'void ka()':
robots.cpp:37:18: error: expected primary-expression before '{' token
37 | if (first == {0, 0}) first = {i, j};
| ^
robots.cpp:37:17: error: expected ')' before '{' token
37 | if (first == {0, 0}) first = {i, j};
| ~ ^~
| )
robots.cpp: At global scope:
robots.cpp:51:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
51 | main() {
| ^~~~
robots.cpp: In function 'int main()':
robots.cpp:52:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | freopen("haircut.in" , "r", stdin); freopen("haircut.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
robots.cpp:52:46: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | freopen("haircut.in" , "r", stdin); freopen("haircut.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~