vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:95:5: error: 'n' was not declared in this scope
95 | n=H,m=W,k=K;
| ^
vision.cpp:95:9: error: 'm' was not declared in this scope
95 | n=H,m=W,k=K;
| ^
vision.cpp:95:13: error: 'k' was not declared in this scope
95 | n=H,m=W,k=K;
| ^
vision.cpp:96:5: error: 'ind' was not declared in this scope; did you mean 'inf'?
96 | ind = n*m;
| ^~~
| inf
vision.cpp:112:36: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
112 | int x = add_and({i*n+j});
| ^
| |
| <brace-enclosed initializer list>
vision.cpp:120:38: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
120 | int x = add_and({a.ff*n+a.ss});
| ^
| |
| <brace-enclosed initializer list>
vision.cpp:120:13: warning: unused variable 'x' [-Wunused-variable]
120 | int x = add_and({a.ff*n+a.ss});
| ^
vision.cpp:123:51: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
123 | int x = add_xor({a.ff*n+a.ss, b.ff*n+b.ss});
| ^
| |
| <brace-enclosed initializer list>
vision.cpp:123:13: warning: unused variable 'x' [-Wunused-variable]
123 | int x = add_xor({a.ff*n+a.ss, b.ff*n+b.ss});
| ^
vision.cpp: In function 'void usaco_problem()':
vision.cpp:36:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | freopen("milkvisits.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vision.cpp:37:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | freopen("milkvisits.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vision.cpp: In function 'void init()':
vision.cpp:43:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
vision.cpp:45:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | freopen("output.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~