Submission #1256706

#TimeUsernameProblemLanguageResultExecution timeMemory
1256706medmdgTriple Peaks (IOI25_triples)C++20
Compilation error
0 ms0 KiB
#include "triples.h"
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
vector<ll> H;
ll n;
bool check(ll i,ll j,ll k){
  if(i<0||j<0||k<0||i>=n||j>=n||k>=n)return 0;
  vector<ll> s1,s2;
  s1.insert(abs(j-i));
  s1.insert(abs(k-i));
  s1.insert(abs(j-k));
  sort(s1.begin(),s1.end());
  if(s1[0]==0)return 0;
  s2.insert(H[i]);
  s2.insert(H[j]);
  s2.insert(H[k]);
  sort(s2.begin(),s2.end());
  return s1==s2;
}
ll sub4(){
  ll ans=0;
  for(int i=n-1;i>1;i--){
    ll x2=i-H[i];
    ll x3=x2+H[x2],x4=i-H[x2];
    if(i-x3==H[x3])ans++;
    if(x3!=x4)
    if(x4-x2==H[x4])ans++;
  }
  return ans;
}
ll sub2(){
  return 0;
}
ll sub3(){
  return 0;
}
ll count_triples(vector<int> H) {
  n=H.size();
  sub4();
  return;
  if(n<2001)return sub3();
  else return sub2();
}

std::vector<int> construct_range(int M, int K) {
  return {1, 1, 1};
}

Compilation message (stderr)

triples.cpp: In function 'bool check(ll, ll, ll)':
triples.cpp:10:12: error: no matching function for call to 'std::vector<long long int>::insert(long long int)'
   10 |   s1.insert(abs(j-i));
      |   ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1379:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1379 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1379:9: note:   template argument deduction/substitution failed:
triples.cpp:10:12: note:   candidate expects 3 arguments, 1 provided
   10 |   s1.insert(abs(j-i));
      |   ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/vector.tcc:130:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
  130 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:130:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1293:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1293 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1293:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1310:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator]'
 1310 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1310:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1335:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1335 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1335:7: note:   candidate expects 3 arguments, 1 provided
triples.cpp:11:12: error: no matching function for call to 'std::vector<long long int>::insert(long long int)'
   11 |   s1.insert(abs(k-i));
      |   ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1379:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1379 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1379:9: note:   template argument deduction/substitution failed:
triples.cpp:11:12: note:   candidate expects 3 arguments, 1 provided
   11 |   s1.insert(abs(k-i));
      |   ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/vector.tcc:130:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
  130 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:130:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1293:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1293 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1293:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1310:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator]'
 1310 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1310:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1335:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1335 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1335:7: note:   candidate expects 3 arguments, 1 provided
triples.cpp:12:12: error: no matching function for call to 'std::vector<long long int>::insert(long long int)'
   12 |   s1.insert(abs(j-k));
      |   ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1379:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1379 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1379:9: note:   template argument deduction/substitution failed:
triples.cpp:12:12: note:   candidate expects 3 arguments, 1 provided
   12 |   s1.insert(abs(j-k));
      |   ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/vector.tcc:130:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
  130 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:130:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1293:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1293 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1293:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1310:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator]'
 1310 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1310:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1335:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1335 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1335:7: note:   candidate expects 3 arguments, 1 provided
triples.cpp:15:12: error: no matching function for call to 'std::vector<long long int>::insert(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)'
   15 |   s2.insert(H[i]);
      |   ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1379:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1379 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1379:9: note:   template argument deduction/substitution failed:
triples.cpp:15:12: note:   candidate expects 3 arguments, 1 provided
   15 |   s2.insert(H[i]);
      |   ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/vector.tcc:130:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
  130 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:130:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1293:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1293 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1293:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1310:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator]'
 1310 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1310:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1335:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1335 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1335:7: note:   candidate expects 3 arguments, 1 provided
triples.cpp:16:12: error: no matching function for call to 'std::vector<long long int>::insert(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)'
   16 |   s2.insert(H[j]);
      |   ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1379:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1379 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1379:9: note:   template argument deduction/substitution failed:
triples.cpp:16:12: note:   candidate expects 3 arguments, 1 provided
   16 |   s2.insert(H[j]);
      |   ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/vector.tcc:130:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
  130 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:130:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1293:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1293 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1293:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1310:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator]'
 1310 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1310:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1335:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1335 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1335:7: note:   candidate expects 3 arguments, 1 provided
triples.cpp:17:12: error: no matching function for call to 'std::vector<long long int>::insert(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)'
   17 |   s2.insert(H[k]);
      |   ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1379:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = long long int; _Alloc = std::allocator<long long int>]'
 1379 |         insert(const_iterator __position, _InputIterator __first,
      |         ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1379:9: note:   template argument deduction/substitution failed:
triples.cpp:17:12: note:   candidate expects 3 arguments, 1 provided
   17 |   s2.insert(H[k]);
      |   ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/vector.tcc:130:5: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
  130 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:130:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/11/vector:67,
                 from triples.h:1,
                 from triples.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1293:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1293 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1293:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1310:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator]'
 1310 |       insert(const_iterator __position, initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1310:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/11/bits/stl_vector.h:1335:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::iterator = std::vector<long long int>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<long long int>::const_iterator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = long long int]'
 1335 |       insert(const_iterator __position, size_type __n, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/11/bits/stl_vector.h:1335:7: note:   candidate expects 3 arguments, 1 provided
triples.cpp: In function 'll count_triples(std::vector<int>)':
triples.cpp:41:3: error: return-statement with no value, in function returning 'll' {aka 'long long int'} [-fpermissive]
   41 |   return;
      |   ^~~~~~