제출 #1361485

#제출 시각아이디문제언어결과실행 시간메모리
1361485jalol250Triple Peaks (IOI25_triples)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

vector<int> construct_range(int M, int K){
    vector<int> H;

    int n = max(3, min(M, 1000)); // oddiy uzunlik

    for(int i = 0; i < n; i++){
        H.push_back(i+1);
    }

    return H;
}

컴파일 시 표준 에러 (stderr) 메시지

/usr/bin/ld: /tmp/ccNAG2bj.o: in function `main':
grader.cpp:(.text.startup+0x367): undefined reference to `count_triples(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status