triples.cpp: In function 'long long int count_triples(std::vector<int>)':
triples.cpp:35:3: error: 'map' was not declared in this scope
35 | map<int, int> mp;
| ^~~
triples.cpp:2:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
1 | #include "triples.h"
+++ |+#include <map>
2 |
triples.cpp:35:7: error: expected primary-expression before 'int'
35 | map<int, int> mp;
| ^~~
triples.cpp:37:9: error: 'mp' was not declared in this scope
37 | if (mp[h[j]] != 0) {
| ^~
triples.cpp:39:14: error: 'k' was not declared in this scope
39 | if (In(k) && k - h[k] == j) {
| ^
triples.cpp:43:5: error: 'mp' was not declared in this scope
43 | mp[h[j] + j] = j + 1;
| ^~
triples.cpp: In function 'std::vector<int> construct_range(int, int)':
triples.cpp:50:1: warning: no return statement in function returning non-void [-Wreturn-type]
50 | }
| ^