triples.cpp: In function 'long long int count_triples(std::vector<int>)':
triples.cpp:13:32: error: 'h' was not declared in this scope
13 | vector<int> heights = {h[i], h[j], h[k]};
| ^
triples.cpp:13:48: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
13 | vector<int> heights = {h[i], h[j], h[k]};
| ^
| |
| <brace-enclosed initializer list>
triples.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
20 | }
| ^