vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:3:9: error: 'vector' was not declared in this scope
3 | vector<int> dig1,dig2;
| ^~~~~~
vision.cpp:3:16: error: expected primary-expression before 'int'
3 | vector<int> dig1,dig2;
| ^~~
vision.cpp:4:9: error: 'map' was not declared in this scope
4 | map<int,vector<int>> sm,sb;
| ^~~
vision.cpp:4:13: error: expected primary-expression before 'int'
4 | map<int,vector<int>> sm,sb;
| ^~~
vision.cpp:9:25: error: 'sm' was not declared in this scope
9 | sm[i+j].push_back(i*w+j);
| ^~
vision.cpp:13:21: error: 'sm' was not declared in this scope
13 | for(auto tt:sm)
| ^~
vision.cpp:15:17: error: 'dig1' was not declared in this scope
15 | dig1.push_back(add_xor(tt.second));
| ^~~~
vision.cpp:15:32: error: 'add_xor' was not declared in this scope
15 | dig1.push_back(add_xor(tt.second));
| ^~~~~~~
vision.cpp:17:21: error: 'sb' was not declared in this scope
17 | for(auto tt:sb)
| ^~
vision.cpp:19:17: error: 'dig2' was not declared in this scope
19 | dig2.push_back(add_xor(tt.second));
| ^~~~
vision.cpp:19:32: error: 'add_xor' was not declared in this scope
19 | dig2.push_back(add_xor(tt.second));
| ^~~~~~~
vision.cpp:21:19: error: 'dig1' was not declared in this scope
21 | for(int i=dig1.size()-2;i>=0;i--)
| ^~~~
vision.cpp:22:25: error: 'add_or' was not declared in this scope
22 | dig1[i]=add_or({dig1[i],dig1[i+1]});
| ^~~~~~
vision.cpp:23:19: error: 'dig2' was not declared in this scope
23 | for(int i=dig2.size()-2;i>=0;i--)
| ^~~~
vision.cpp:24:25: error: 'add_or' was not declared in this scope
24 | dig2[i]=add_or({dig2[i],dig2[i+1]});
| ^~~~~~
vision.cpp:26:23: error: 'dig1' was not declared in this scope
26 | for(int i=0;i<dig1.size();i++)
| ^~~~
vision.cpp:31:33: error: 'add_or' was not declared in this scope
31 | else gk=add_or({dig1[i+k],gk});
| ^~~~~~
vision.cpp:34:23: error: 'dig2' was not declared in this scope
34 | for(int i=0;i<dig2.size();i++)
| ^~~~
vision.cpp:39:33: error: 'add_or' was not declared in this scope
39 | else gk=add_or({dig2[i+k],gk});
| ^~~~~~
vision.cpp:44:23: error: 'dig1' was not declared in this scope
44 | for(int i=0;i<dig1.size();i++)
| ^~~~
vision.cpp:49:35: error: 'add_or' was not declared in this scope
49 | else gkmo=add_or({dig1[i+k],gkmo});
| ^~~~~~
vision.cpp:52:23: error: 'dig2' was not declared in this scope
52 | for(int i=0;i<dig2.size();i++)
| ^~~~
vision.cpp:57:35: error: 'add_or' was not declared in this scope
57 | else gkmo=add_or({dig2[i+k],gkmo});
| ^~~~~~
vision.cpp:60:23: error: 'add_not' was not declared in this scope
60 | add_and({gkmo,add_not(gk)});
| ^~~~~~~
vision.cpp:60:9: error: 'add_and' was not declared in this scope
60 | add_and({gkmo,add_not(gk)});
| ^~~~~~~