triples.cpp: In function 'long long int query13(std::vector<int>)':
triples.cpp:11:5: error: 'function' was not declared in this scope
11 | function<bool(int, int, int)> triple = [&](int a, int b, int c){
| ^~~~~~~~
triples.cpp:2:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
1 | #include <vector>
+++ |+#include <functional>
2 | #define ll long long
triples.cpp:11:32: error: expression list treated as compound expression in functional cast [-fpermissive]
11 | function<bool(int, int, int)> triple = [&](int a, int b, int c){
| ^
triples.cpp:11:14: error: expected primary-expression before 'bool'
11 | function<bool(int, int, int)> triple = [&](int a, int b, int c){
| ^~~~
triples.cpp:40:24: error: 'triple' was not declared in this scope
40 | ans += triple(i, j, i+H[j]);
| ^~~~~~
triples.cpp:44:24: error: 'triple' was not declared in this scope
44 | ans += triple(i, j, i+H[i]);
| ^~~~~~
triples.cpp: In function 'long long int count_triples(std::vector<int>)':
triples.cpp:55:1: warning: control reaches end of non-void function [-Wreturn-type]
55 | }
| ^