circuit.cpp: In member function 'void _Node::print()':
circuit.cpp:63:9: error: 'cout' was not declared in this scope
63 | cout << "N" << index << " C=" << children.size() << " IC=" << internalNodeCount << " Ct=" << contribCount << endl;
| ^~~~
circuit.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <vector>
+++ |+#include <iostream>
3 |
circuit.cpp:63:118: error: 'endl' was not declared in this scope
63 | cout << "N" << index << " C=" << children.size() << " IC=" << internalNodeCount << " Ct=" << contribCount << endl;
| ^~~~
circuit.cpp:3:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
2 | #include <vector>
+++ |+#include <ostream>
3 |
circuit.cpp: In function 'void init(int, int, std::vector<int>, std::vector<int>)':
circuit.cpp:84:16: warning: ignoring return value of 'bool std::vector<_Tp, _Alloc>::empty() const [with _Tp = _Node; _Alloc = std::allocator<_Node>]', declared with attribute 'nodiscard' [-Wunused-result]
84 | nodes.empty();
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/10/vector:67,
from circuit.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:1007:7: note: declared here
1007 | empty() const _GLIBCXX_NOEXCEPT
| ^~~~~