Submission #1249992

#TimeUsernameProblemLanguageResultExecution timeMemory
1249992liamislazyTriple Peaks (IOI25_triples)C++20
Compilation error
0 ms0 KiB
#include "triples.h" #include <bits/stdc++.h> using namespace std; typedef long long llo; long long count_triples(std::vector<int> H) { int n = H.size(); llo ans = 0; for(int i = 0; i < n; i++) for(int j = i+1; j < n; j++) for(int k = j+1; k < n; k++) { vector<int> h = {H[i], H[j], H[k]}; vector<int> d = {j - i, k - j, k - i}; sort(h.begin(), h.end()); sort(d.begin(), d.end()); if(h == d) ans++; } return ans; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccx8HjRh.o: in function `main':
grader.cpp:(.text.startup+0x18a): undefined reference to `construct_range(int, int)'
collect2: error: ld returned 1 exit status