Submission #1250268

#TimeUsernameProblemLanguageResultExecution timeMemory
1250268kaloyanTriple Peaks (IOI25_triples)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; long long count_triples(std::vector<int> H) { int N = H.size(); long long counter = 0; for(int i = 0 ; i < N - 2 ; ++i) { for(int j = i + 1 ; j < N - 3 ; ++j) { for(int k = j + 1 ; k < N - 4 ; ++k) { vector<int> A = { j - i, k - i, k - j }; vector<int> B = { H[i], H[j], H[k] }; sort(A.begin(), A.end()); sort(B.begin(), B.end()); if(A == B) counter++; } } } return counter; } std::vector<int> construct_range(int M, int K);

Compilation message (stderr)

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