vision.cpp: In function 'int add_and(std::vector<int>)':
vision.cpp:12:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i = 0; i < Ns.size(); ++i)
| ~~^~~~~~~~~~~
vision.cpp: In function 'int add_or(std::vector<int>)':
vision.cpp:21:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (int i = 0; i < Ns.size(); ++i)
| ~~^~~~~~~~~~~
vision.cpp: In function 'int add_xor(std::vector<int>)':
vision.cpp:30:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int i = 0; i < Ns.size(); ++i)
| ~~^~~~~~~~~~~
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:45:19: warning: variable 'wa' set but not used [-Wunused-but-set-variable]
45 | pair<int,int> wa={-1,-1};
| ^~
/usr/bin/ld: /tmp/ccvxrC1F.o: in function `add_and(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x150): multiple definition of `add_and(std::vector<int, std::allocator<int> >)'; /tmp/ccNSA91E.o:vision.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccvxrC1F.o: in function `add_or(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x170): multiple definition of `add_or(std::vector<int, std::allocator<int> >)'; /tmp/ccNSA91E.o:vision.cpp:(.text+0x50): first defined here
/usr/bin/ld: /tmp/ccvxrC1F.o: in function `add_xor(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x190): multiple definition of `add_xor(std::vector<int, std::allocator<int> >)'; /tmp/ccNSA91E.o:vision.cpp:(.text+0x90): first defined here
/usr/bin/ld: /tmp/ccvxrC1F.o: in function `add_not(int)':
grader.cpp:(.text+0x1b0): multiple definition of `add_not(int)'; /tmp/ccNSA91E.o:vision.cpp:(.text+0xd0): first defined here
collect2: error: ld returned 1 exit status